HLR with hidden edges ???

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

Attachments: 
PG's picture

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

Fotis Sioutis's picture

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.

Fotis

PG's picture

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

- PG

Fotis Sioutis's picture

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.

Fotis

PG's picture

Thanks Fotis.

HLRBrep_algo class is giving desired display.

- PG