For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Accessing tessellated data of standalone Edge displayed by AIS_Shape

Hoong Dang's picture
Forums: 

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,
Hoong

Attachments: 
Hoong Dang's picture

Any help, guys?

Guido van Hilst not specified's picture

Hy Hoong,

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

Or you can use: GCPnts_UniformDeflection(..)

Hoong Dang's picture

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,
Hoong

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.