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

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
Forum
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 / Forum / STEPCAFControl_Writer doesn't write my layers

Forum

STEPCAFControl_Writer doesn't write my layers
Tilman Leune2010/03/03 17:11
I defined my layers using

TDF_Label lblBaseLayer = myLayers->AddLayer("Solid");
TDF_Label lblTranspLayer = myLayers->AddLayer("Transparent");

built my assembly
aLabel = myAssembly->AddShape(obj->Shape(), makeAssembly);

and assigned layers with

if(obj->Transparency() != 0.0)
               {
                    //Transparente objekte kommen in ein anderes Layer     
                    myLayers->SetLayer(aLabel, lblTranspLayer);
               }
               else
               {
                    myLayers->SetLayer(aLabel, lblBaseLayer);
               }

i also activated

STEPCAFControl_Writer writer;
     writer.SetColorMode(true);
     writer.SetLayerMode(true);

But still, my file shows no trace of layers when opened in a step file viewer

any inside what i am missing?
 
 
Latest news
  • FAQ section updated
  • OPEN CASCADE Uses Intel ® Parallel Studio XE to Introduce Parallelism into SALOME SMESH Module
  • Open CASCADE Technology 6.5.2 is available for download!

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