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 / TopoDS_Shell.ShapeType() returns Random numbers

TopoDS_Shell.ShapeType() returns Random numbers

TopoDS_Shell.ShapeType() returns Random numbers
Tobias 2013/04/05 19:12
Hi,

I am new to OpenCascade and created a new Box by using BRepPrimAPI_MakeBox.
The box is constructed correct ( tested with STEP output ).

When accessing the ShapeType() method (Box.ShapeType()) it will give me random numbers and when accessing the second time the program crashes (Segmentation fault , is trying to access 0x00 ).

Can you give me some hints which could cause this?

Cheers Tobias
Yogesh Sajanikar 2013/04/05 20:59
Check if Box.IsNull is false. If it is true, the box is not created.
Tobias 2013/04/08 10:46
Box.IsNull is false
 
 
Latest news
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!

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