Get Coordinates and attributes from TopoDS_Shape

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.

TrEizE's picture

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..