Question on Mesh Facet

Need help, or want to share a macro? Post here!
keithsloan52
Posts: 1445
Joined: Mon Feb 27, 2012 5:31 pm

Question on Mesh Facet

Postby keithsloan52 » Wed Mar 25, 2020 7:53 pm

Can one have a Mesh Facet with four points i.e. a quad or are they restricted to three points?
onekk
Posts: 400
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Question on Mesh Facet

Postby onekk » Fri Mar 27, 2020 7:33 am

From the source code seem that the facet vertex are hard coded as 3:

in FreeCAD/src/Mod/Mesh/App/Facet.cpp

Code: Select all

    for (int i=0; i<3; i++) {
        PIndex[i] = face._aulPoints[i];
        NIndex[i] = face._aulNeighbours[i];
    }
Regards

Carlo D.
keithsloan52
Posts: 1445
Joined: Mon Feb 27, 2012 5:31 pm

Re: Question on Mesh Facet

Postby keithsloan52 » Fri Mar 27, 2020 8:06 am

Thanks