DiscussionsIssue archiveOther usage issues

Archived discussion

HLR with hidden edges ???

Other usage issuesThu, 01/28/2010 - 06:335 replies

Browse this forum
QuestionAuthor

Hi

Please find attched a snapshot from a Cad system which shows
some 'edges' with solid/dashed i.e partially visible/hidden.
Is similar output possible in OCC HLR API's ?
I checked in Testharness and only FULLY hidden edges are shown as hidden.
pl. clarify.
regards
PG

Discussion

5 archived replies

Posts are displayed in their archived order.

01Author

Strange - looks like nobody is using OCC HLR display capabilities !!!

02Commenter-1

Hello PG

try :

anAISContext->EnableDrawHiddenLine();

This will enable the drawing of the hidden lines, but you will not be able to have shaded surfaces at the same time.

Commenter-1

03Author

This looks true if we need to draw FULLY hidden line, but instances
of partially hidden is not possible. Am I right ?

- PG

04Commenter-1

Internally the visualization package is using the HLRBRep_PolyAlgo class which uses a simplified way to create a hidden line 2d object (projection).If you want something more accurate you can always try to use HLRBRep_Algo and embed it in occ visualization scheme or your own system.Reading the documentation of the last class you will see that it mentions the drawbacks and advantages of each method.

Commenter-1

05Author

Thanks Fotis.

HLRBrep_algo class is giving desired display.

- PG