Hi Thomas, thanks for your quick reply. By a surface mesh I mean a mesh of the surface of the shape (which is actually a volume with some holes). The simple_mesh.py example seems to be what I need. I could extend the example to get the coordinates of the vertices of the triangulation. Where can I find information about the internals of the BRepMesh_Mesh function?
-----Original Message----- From: pythonocc-users-boun...@gna.org [mailto:pythonocc-users-boun...@gna.org] On Behalf Of pythonocc-users-requ...@gna.org Sent: dinsdag 22 november 2011 12:00 To: pythonocc-users@gna.org Subject: Pythonocc-users Digest, Vol 36, Issue 15 Send Pythonocc-users mailing list submissions to pythonocc-users@gna.org To subscribe or unsubscribe via the World Wide Web, visit https://mail.gna.org/listinfo/pythonocc-users or, via email, send a message with subject or body 'help' to pythonocc-users-requ...@gna.org You can reach the person managing the list at pythonocc-users-ow...@gna.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Pythonocc-users digest..." Today's Topics: 1. creating a surface mesh of a TopoDS_Shape (Engelbert Tijskens) 2. Re: creating a surface mesh of a TopoDS_Shape (Thomas Paviot) ---------------------------------------------------------------------- Message: 1 Date: Mon, 21 Nov 2011 20:09:59 +0100 From: Engelbert Tijskens <engelbert.tijsk...@biw.kuleuven.be> Subject: [Pythonocc-users] creating a surface mesh of a TopoDS_Shape To: "pythonocc-users@gna.org" <pythonocc-users@gna.org> Message-ID: <ae1d6787c88fb143862f16441b42493cc2fe423...@icts-s-exc2-ca.luna.kuleuven.be> Content-Type: text/plain; charset="us-ascii" I need to make a surface mesh from TopoDS_Shape objects which I could extract from step files using pythonocc with relatively little effort :-). I was hoping to create surface meshes from those objects with a little more effort. Can someone give some hints where to start? I took a look at pythonOCC\0.5\examples\Level1\SMESH but I find not enough explanation to become productive... Dr Bert Tijskens Industrial research manager DEM Research Group Dept Biosystems, Div. MeBioS, K.U.Leuven Kasteelpark Arenberg 30, B3001 Leuven www.dem-research-group.com<http://www.dem-research-group.com> phone: ++32-16-328595 fax: ++32-16-328590 mobile: ++32-479-983854 -------------- next part -------------- An HTML attachment was scrubbed... URL: </public/pythonocc-users/attachments/20111121/a516bc23/attachment.htm> ------------------------------ Message: 2 Date: Mon, 21 Nov 2011 22:42:00 +0100 From: Thomas Paviot <tpav...@gmail.com> Subject: Re: [Pythonocc-users] creating a surface mesh of a TopoDS_Shape To: "pythonOCC users mailing list." <pythonocc-users@gna.org> Message-ID: <CABc2AbyjiKf5jJjSXM2Te68NN6jYtmZcT=28_pndpa5vh4_...@mail.gmail.com> Content-Type: text/plain; charset="windows-1252" 2011/11/21 Engelbert Tijskens <engelbert.tijsk...@biw.kuleuven.be> > I need to make a surface mesh from TopoDS_Shape objects which I could > extract from step files using pythonocc with relatively little effort :-). > I was hoping to create surface meshes from those objects with a little > more effort. Can someone give some hints where to start? I took a look > at pythonOCC\0.5\examples\Level1\SMESH but I find not enough > explanation to become productive?**** > > ** ** > > Dr Bert Tijskens**** > > Industrial research manager**** > > DEM Research Group**** > > Dept Biosystems, Div. MeBioS, K.U.Leuven**** > > > Hi Bert, What is exactly your need? I'm not sure I clearly understand what you described. What do you call a "surface mesh"? If your need it to import a STEP file, convert it to a TopoDS_Shape and then mesh this shape in order to get vertices/vertex index/faces, it is possible with blending the SETPImport samples and the src/examples/Level1/Mesh/simple_mesh.py example. You should have a look at the latter. Please feel free to post here a sample STEP file as well as the python source code. Regards, Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: </public/pythonocc-users/attachments/20111121/468d7075/attachment.htm> ------------------------------ _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users End of Pythonocc-users Digest, Vol 36, Issue 15 *********************************************** _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users