Q: 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).
A: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"<<endl;
etc.
It is possible to get the location and intrinsic characteristic (diameter for a cylindrical surface, apex for a conical surface) of a TopoDS_Shape.
But, in order to deduce the equation : it is up to you !!!
Good luck,