
Mon, 06/09/2008 - 18:57
Forums:
I have imported a STEP file with annular shape (ring) and converted into a TopoDS_Shape.
I want to find the boundaries of this surface/
I can find out the outer boundary using bounding box function, Is there a function to also find out the inner boundary of the imported ring surface?
TIA
Tue, 06/10/2008 - 07:47
TRY TO USE this sample
//explore the face from shape
TopExplorer_Exp exp;
for(exp.Init(shape, TopAbs_FACE);exp.More();exp.Next())
{
TopoDS_Face face=TopoDS::Face(exp.Current());
//get the Geometric Surface
Handle_Geom_Surface surf=BRep_Tool::Surface(face);
//get the bounds of surface
surf.BOUNDS( umin,umax,vmin,vmax);
}