> On 5 Jul 2020, at 12:08, Keith Sloan <ke...@sloan-home.co.uk> wrote:
> 
> I am trying to add various gmsh facilities to a FreeCAD workbench.
> 
> One is a straight Tessellate of a FreeCAD shape or mesh.
> 
> I think I have the meshing correct as if I save the mesh of a Cube I get the 
> attached file.
> 
> But I am having problems recreating a visual mesh under FreeCAD.
> 
> To recreate the Facets I have a function that does
> 
> nodes, coordLst, pcords = gmsh.model.mesh.getNodes(2)
> 
> # should return nodes and coordinate
> 
> faceNodes = gmsh.model.mesh.getElementFaceNodes(2,3,-1,True)
>  # nodes, coords are numpy arrays
> 
> But don't seem to be retrieving the info for the triangular faces in the mesh 
> must
> be not understanding something.

With gmsh.model.mesh.getNodes(2) you will only get nodes classified on surfaces 
of the model. If you plan to use gmsh.model.mesh.getElementFaceNodes() you will 
need all the nodes (i.e. classified on model points, curves and volumes as 
well).

Christophe



> 
> 
> 
> 
> 
> <test.msh>_______________________________________________
> gmsh mailing list
> gmsh@onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine




_______________________________________________
gmsh mailing list
gmsh@onelab.info
http://onelab.info/mailman/listinfo/gmsh

Reply via email to