Forum archiveIssue archiveOther usage issues

Archived discussion

Annular Ring

Other usage issuesMon, 06/09/2008 - 18:571 reply

Browse this forum
QuestionAuthor

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

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

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);
}