Hi Thomas, Dave, This discussion needs some precision: the SMESH* modules are there to create FEM meshes. I think what Dave is looking for is meshes the represent the BREP geometry, right?
Here's a snippet how you can access the triangulation of a face. Note that triangulation are build in OCC on a per-face basis. -jelle T = BRep_Tool().Triangulation(face, face.Location()).GetObject() nodes, uv_nodes, triangles = T.Nodes(), T.UVNodes(), T.Triangles() print 'Number of Triangles:', triangles.Length() On Mar 19, 2010, at 8:47 AM, Thomas Paviot wrote: > Hi Dave, > > The meshing features for SMESH are available from the following python > modules: SMESH, SMDS, SMDSAbs, SMEHSDS, StdMeshers, DriverDAT, DriverUNV. The > api documentation can be browsed at: > http://api.pythonocc.org/toc-OCC.SMESH-module.html > http://api.pythonocc.org/toc-OCC.StdMeshers-module.html > etc... > > 2010/3/19 Dave Cowden <dave.cow...@gmail.com> > Ok, nevermind this question, i found a starting point in the Level1\SMESH > samples. > > However, I cannnot seem to find any documentation to help me understand these > objects. I looked at the website, apidoc. Is the API published somewhere? > > > On Thu, Mar 18, 2010 at 8:08 PM, Dave Cowden <dave.cow...@gmail.com> wrote: > Hi, everyone: > > I have a qq about meshing. I have been struggling for several weeks now > with a filling algorithm. I have an idea I might be able to use a mesh of a > face to make my algo easier. > > I investigated the built-in BRepMesh functionality, but realized quickly that > those triangulate surfaces with only the number of triangles necessary: IE, a > square face would have exactly two triangles. > > What i need is a mesher that will let me triangulate (or, better, use > quadrilateral polygons ) to mesh a face , but with arbitrarily selected mesh > size. > > I looked briefly at salome docs and i'm completely swamped. Could someone > point me to a starting point for meshing with salome? > > thanks kindly! > > > _______________________________________________ > Pythonocc-users mailing list > Pythonocc-users@gna.org > https://mail.gna.org/listinfo/pythonocc-users > > > _______________________________________________ > Pythonocc-users mailing list > Pythonocc-users@gna.org > https://mail.gna.org/listinfo/pythonocc-users
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users