
Thu, 06/17/2004 - 22:28
Forums:
Hello All,
Does anybody know how to get the coordinates and attributes from
a TopoDS_Shape Say I have:
BRepPrimAPI_MakeBox mkBox( gp_Pnt(0, 0 ,0), 1, 2 ,3);
TopoDS_Shape ResultShape = mkBox.Shape();
how would I get the gp_Pnt(0, 0 ,0), 1, 2 ,3 from the TopoDS_Shape.
It would help out a lot.
Thanks,
Andy O.
Fri, 06/18/2004 - 19:36
Use TopExp_Explorer from TopExp package as follow :
TopoDS_Shape S;
TopExp_Explorer Ex;
TopExp_Explorer Ex(S, TopAbs_Vertex);
while(Ex.More())
{
Process_The_Vertex_Convert_It_In_Geometric_format_See_Geom_Package
Ex.Next();¨
}
Hope this helps..