Hi,

Is everythin ok if you don't insert the edge related code? Can you please
attach your modified code in order to reproduce the issue?

Regards,

Thomas

2011/11/23 Engelbert Tijskens <engelbert.tijsk...@biw.kuleuven.be>

> I tried the advise of Thomas to modify
> examples/level1/mesh/simple_mesh.py. I modified the code so that during
> every iteration in the "while ex.More():" loop, the added edges are drawn
> on the screen.  Though that works to a certain extent, the code crashes
> after 114 iterations in this loop. At that point the drawing seems pretty
> much complete. For some reason the object returned by facing =
> (BRep_Tool_Triangulation(F,L)).GetObject() is invalid. If I make the
> execution of the body of the while loop dependent on the condition that the
> iteration number is smaller than 114, than the code does not crash
> immediately, but it keeps running for millions of iterations... My guess is
> that at some point ex.Next() and or ex.More() do not function correctly.
> Anyone a clue?
>
> -----Original Message-----
> From: pythonocc-users-boun...@gna.org [mailto:
> pythonocc-users-boun...@gna.org] On Behalf Of
> pythonocc-users-requ...@gna.org
> Sent: woensdag 23 november 2011 12:00
> To: pythonocc-users@gna.org
> Subject: Pythonocc-users Digest, Vol 36, Issue 16
>
> 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. Re: 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: Tue, 22 Nov 2011 21:36:57 +0100
> From: Engelbert Tijskens <engelbert.tijsk...@biw.kuleuven.be>
> Subject: Re: [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"
>
> 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
> ***********************************************
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 22 Nov 2011 22:26:07 +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:
>        <CABc2Abx7x6a+bAz5pkQXxJETHGK7QdXxca=r2vr217gtmny...@mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Have a look at:
> https://github.com/tpaviot/pythonocc/blob/master/src/addons/MSH/Mesh.py
>
> Thomas
>
> 2011/11/22 Engelbert Tijskens <engelbert.tijsk...@biw.kuleuven.be>
>
> > 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.kuleuve
> > n.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
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: </public/pythonocc-users/attachments/20111122/ba4f6e99/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 16
> ***********************************************
>
> _______________________________________________
> 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

Reply via email to