DiscussionsIssue archiveDraw Harness and Samples

Archived discussion

Accessing tessellated data of standalone Edge displayed by AIS_Shape

Draw Harness and SamplesTue, 10/03/2017 - 09:423 replies

Browse this forum
QuestionAuthor

Hi guys,

I know that there's BRep_Tool:Triangulation that can be used to access tessellated triangular data of a face. 
But how can I access the tessellated segments of a standalone Edge which is displayed by an AIS_Shape? 

In attachment image: I have a rendered Arc (using AIS_Shape), I would like to access those 5 line segments.

I appreciate for any help.
Thank you.

Yours,
Author

Discussion

3 archived replies

Posts are displayed in their archived order.

01Author

Any help, guys?

02Commenter-1

Hy Author,

You can use: BRep_Tool.Polygon3D(edge, location;)

Or you can use: GCPnts_UniformDeflection(..)

03Author

Hi Guido,

Thanks for your message. I tried those classes before posting this question.
- Polygon3D: it doesn't work, output is NULL
- Pnts_UniformDeflection, GCPnts_QuasiUniformDeflection or even UV computing: are too heavy because they do computation again. We know the tessellated data exits somewhere already in Visualization Layer and want to obtain it instead of recomputing.

Yours,
Author