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

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / 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

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

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,
V3d_ZBUFFER, V3d_GOURAUD,V3d_WAIT);

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
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

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