changing the line aspect for an AIS_Shape changes the line aspect of all other shapes

guidovanhilst's picture

Best OCC developers,

It seems when changing the line aspect for an AIS_Shape, causes to changes the line-aspect of all other shapes and even the grid of the view? (see attached images)

myDrawer = new Prs3d_Drawer();
myDrawer->SetLineAspect(Prs3d_LineAspect(...));
myDrawer->SetWireAspect(Prs3d_LineAspect(...));
myInteractiveObject->SetAttributes( myDrawer );

Best regards, Guido

kgv's picture

Dear Guido, the best way to

Dear Guido,

the best way to report bugs is to register issue on Bugtracker, providing all necessary information (including OCCT version):
http://tracker.dev.opencascade.org

I can not reproduce the problem on current master with the following DRaw Harness script (note that option -setLineType has been added within #0025305 and will be available in OCCT 7.0.0):

pload MODELING VISUALIZATION
box b1 0 0 0 1 2 3
box b2 3 0 0 2 3 1
vclear
vclose ALL
vinit View1
vaxo
vdisplay b1 b2
vfit
vaspects b1 -setcolor RED
vaspects b2 -setcolor RED
vaspects b1 -setLineType dotDash

www.opencascade.com

Copyright 2011-2017
OPEN CASCADE SAS
Contact us