
Thu, 01/28/2010 - 06:33
Forums:
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:
Mon, 02/08/2010 - 10:56
Strange - looks like nobody is using OCC HLR display capabilities !!!
Mon, 02/08/2010 - 11:21
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
Mon, 02/08/2010 - 14:04
This looks true if we need to draw FULLY hidden line, but instances
of partially hidden is not possible. Am I right ?
- PG
Mon, 02/08/2010 - 14:52
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
Fri, 02/12/2010 - 08:31
Thanks Fotis.
HLRBrep_algo class is giving desired display.
- PG