
Sat, 04/12/2008 - 02:15
Forums:
HI;
How to use adaptor3d_surface to get type and equation of surface.
i would like to know the type(plan,cylinder,sphère,bspline, bezier...) and the equation of surface (geometric surface of the face expolred from shape).
i used the adaptor3d_Surface but i not understand the thèorie of this method.
can you help me for this i needed for my project.
i need an exemple for what i do that.
think you .................think you
Sat, 04/12/2008 - 17:50
You can do as follows to detect the type :
TopoDS_Face FaceElement1=TopoDS::Face(ShapeElement1);
BRepAdaptor_Surface FaceElementAdaptor1(FaceElement1,Standard_True);
GeomAbs_SurfaceType theTypeElement1=FaceElementAdaptor1.GetType();
if(theTypeElement1==GeomAbs_Torus) cout<<"torus"<