Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics

ais_shape not visible after upgrade from 6.2 to 6.5.3

ais_shape not visible after upgrade from 6.2 to 6.5.3
herbert 2012/06/08 20:31

i have a problem where code which used to display a 3D shape in 6.2, no longer does in 6.5.3. the objects are created, and they are selectable, yet only visible as the selection wireframes. otherwise only the new background gradient is visible, along with the moved trihedron. i have attached a picture of what is happening...

is there an api change that i am missing?

the code i was using is:

TopoDS_Shape shape = MakeNSided( ...params... );
Handle(AIS_Shape) aisShape = new AIS_Shape( shape );

theContext->SetMaterial( aisShape, Graphic3d_NOM_PLASTIC);
theContext->SetColor( aisShape, Quantity_NOC_ORANGERED );
theContext->Display( aisShape, 1, 1, Standard_True, Standard_True );

but clearly this produces different results in 6.5.3 than in 6.2?

my viewer is:

static Handle(Graphic3d_GraphicDevice) defaultdevice;
return new V3d_Viewer( defaultdevice, aName, aDomain,
ViewSize, V3d_XposYnegZpos, Quantity_NOC_BLUE3,

from Peter Dolbey's old QtOCC code...

any help would be great, thanks!

You have to be logged in to download the attached file
herbert 2012/06/08 20:56
i think i got it...

it seems that it is somehow a transparency issue, the shape appears if is comment out:

myView->setTransparency( Standard_True );

but won't that disable transparency completely? or do ais_shapes require a default transparency to be set at all times?

herbert 2012/06/08 20:58
sorry that should read:

"the shape appears if the following line is commented out"

can't edit posts here...     
Latest news
  • Open CASCADE CAD Assistant for iOS platform is available!
  • Open CASCADE Technology 6.9.0 is available for download!
  • JT Assistant for Android

  • © OPEN CASCADE 2000 - 2015  |  Search  |  Contacts   |  Site map