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 / error in getting surface doefficients in STEP file.

Forum

error in getting surface doefficients in STEP file.
UlikeM2010/03/08 13:05
Hi, folks.

During retrieving entities from STEP, access error erupted when i access a surface to get a coefficient of it.

i got the Handle_Geom_Surface from a shape which is a part of assembly in Step file format.

here procedure for this work.

1. find a shape using Handle(XCAFDoc_ShapeTool) from STEP file.

2. access to a surface using TopExp_Explorer

3. specifing the type of the surface then access the surface coefficient.


if (H_faces[i]->IsKind(STANDARD_TYPE(Geom_Plane))) {
Handle(Geom_Plane) Hplane;
Hplane.DownCast(H_faces[i]);


gp_Ax1 axis = Hplane->Axis(); // right here, i got the access violation


can anyone help me ?

thanks in advance.



          }


 
 
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