For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

ais_shape not visible after upgrade from 6.2 to 6.5.3

herbert's picture


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!

herbert's picture

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's picture

sorry that should read:

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

can't edit posts here...

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.