
 |
| 3D modeling & numerical simulation |
|
|
 |
Forum |
| error in getting surface doefficients in STEP file. |
 |
| UlikeM | 2010/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.
}
|  |
|
| | |
|
 |
|