Thomas, Sorry if my question was unclear. I want to take a shape that I have imported from an IGES file and discretize the boundaries of each entity. For instance, if I have a cylinder, I'd like to be able to discretize the circle that makes up the top and bottom and the two lines that make up its height. I'd like to be able to input a certain precision and have it approximate the boundaries with lines and return these lines as an array of 3D points.
I hope that makes more sense. Regards, Benjamin Turner bpltur...@gatech.edu On Thu, May 26, 2011 at 6:00 AM, <pythonocc-users-requ...@gna.org> wrote: > 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. Drawing Edges? (Benjamin Turner) > 2. Re: Drawing Edges? (Thomas Paviot) > 3. Re: Drawing Edges? (Fredric Dorothy) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 25 May 2011 23:36:19 -0400 > From: Benjamin Turner <bpltur...@gmail.com> > Subject: [Pythonocc-users] Drawing Edges? > To: pythonocc-users@gna.org > Message-ID: <banlktim9unlwg_vvufdvry8xgckaskt...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hello, > > I'm trying to create "edges" made of lines so I can display them in OpenGL > ES 2.0. Basically, I want to triangulate the edge splines into (x, y, z) > coordinates so I can approximate them with lines. However, I'm having > trouble figuring out exactly how I would go about doing this. I'm using > QuickMesh to make the triangles, vertexes, normals, etc. for display right > now, but I can't find something similar for the edges. I believe I have to > generate wires? > > I found this big of code: > > def make_edge(shape): > spline = BRepBuilderAPI_MakeEdge(shape) > spline.Build() > return spline.Shape() > > Is this the first step? Thank you for all of your help and for the > wonderful tool. > > Regards, > > Benjamin Turner > bpltur...@gatech.edu > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: </public/pythonocc-users/attachments/20110525/de3f78b5/attachment.htm> > > ------------------------------ > > Message: 2 > Date: Thu, 26 May 2011 06:25:32 +0200 > From: Thomas Paviot <tpav...@gmail.com> > Subject: Re: [Pythonocc-users] Drawing Edges? > To: "pythonOCC users mailing list." <pythonocc-users@gna.org> > Message-ID: <banlktinjvgyj05htd0frowb1ctxys9g...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > 2011/5/26 Benjamin Turner <bpltur...@gmail.com> > > > Hello, > > > > I'm trying to create "edges" made of lines so I can display them in > OpenGL > > ES 2.0. Basically, I want to triangulate the edge splines into (x, y, z) > > coordinates so I can approximate them with lines. However, I'm having > > trouble figuring out exactly how I would go about doing this. I'm using > > QuickMesh to make the triangles, vertexes, normals, etc. for display > right > > now, but I can't find something similar for the edges. I believe I have > to > > generate wires? > > > > I found this big of code: > > > > def make_edge(shape): > > spline = BRepBuilderAPI_MakeEdge(shape) > > spline.Build() > > return spline.Shape() > > > > Is this the first step? Thank you for all of your help and for the > > wonderful tool. > > > > Regards, > > > > Benjamin Turner > > bpltur...@gatech.edu > > > > > Hi Benjamin, > > I can' understant your question: you can only triangulate 2d topology (a > surface). Edges are 1d, you cannot use triangles to approximate the edge. I > have the feeling that you want to perform a linear interpolation of the > curve, right? > > So what is your problem? Creating edges? wires? interpolating edge? > > Thomas > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: </public/pythonocc-users/attachments/20110526/c9e107f9/attachment.htm> > > ------------------------------ > > Message: 3 > Date: Thu, 26 May 2011 05:07:17 -0400 > From: Fredric Dorothy <fredricdoro...@gmail.com> > Subject: Re: [Pythonocc-users] Drawing Edges? > To: "pythonOCC users mailing list." <pythonocc-users@gna.org> > Message-ID: <mr3f5fuxwb9x0do90aq2r9rl.1306400837...@email.android.com> > Content-Type: text/plain; charset=utf-8 > > > > Benjamin Turner <bpltur...@gmail.com> wrote: > > >Hello, > > > >I'm trying to create "edges" made of lines so I can display them in OpenGL > >ES 2.0. Basically, I want to triangulate the edge splines into (x, y, z) > >coordinates so I can approximate them with lines. However, I'm having > >trouble figuring out exactly how I would go about doing this. I'm using > >QuickMesh to make the triangles, vertexes, normals, etc. for display right > >now, but I can't find something similar for the edges. I believe I have > to > >generate wires? > > > >I found this big of code: > > > >def make_edge(shape): > > spline = BRepBuilderAPI_MakeEdge(shape) > > spline.Build() > > return spline.Shape() > > > >Is this the first step? Thank you for all of your help and for the > >wonderful tool. > > > >Regards, > > > >Benjamin Turner > >bpltur...@gatech.edu > > > >_______________________________________________ > >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 > > > End of Pythonocc-users Digest, Vol 30, Issue 13 > *********************************************** >
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users