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
[email protected]

On Thu, May 26, 2011 at 6:00 AM, <[email protected]> wrote:

> Send Pythonocc-users mailing list submissions to
>        [email protected]
>
> 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
>        [email protected]
>
> You can reach the person managing the list at
>        [email protected]
>
> 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 <[email protected]>
> Subject: [Pythonocc-users] Drawing Edges?
> To: [email protected]
> Message-ID: <[email protected]>
> 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
> [email protected]
> -------------- 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 <[email protected]>
> Subject: Re: [Pythonocc-users] Drawing Edges?
> To: "pythonOCC users mailing list." <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 2011/5/26 Benjamin Turner <[email protected]>
>
> > 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
> > [email protected]
> >
> >
> 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 <[email protected]>
> Subject: Re: [Pythonocc-users] Drawing Edges?
> To: "pythonOCC users mailing list." <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=utf-8
>
>
>
> Benjamin Turner <[email protected]> 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
> >[email protected]
> >
> >_______________________________________________
> >Pythonocc-users mailing list
> >[email protected]
> >https://mail.gna.org/listinfo/pythonocc-users
>
> ------------------------------
>
> _______________________________________________
> Pythonocc-users mailing list
> [email protected]
> https://mail.gna.org/listinfo/pythonocc-users
>
>
> End of Pythonocc-users Digest, Vol 30, Issue 13
> ***********************************************
>
_______________________________________________
Pythonocc-users mailing list
[email protected]
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to