For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

The problem of converting Geom_SurfaceOfRevolution to Geom_BSplineSurface

Wang Yue's picture

As the following code shown, I use SurfaceToBSplineSurface method to convert a revolution surface to a B-Spline surface.
... ...
Handle(Geom_SurfaceOfRevolution) s1 = new Geom_SurfaceOfRevolution( Point_to_C, aAxis);
Handle(Geom_BSplineSurface) _s1 = GeomConvert::SurfaceToBSplineSurface(s1);
aSurface = _s1;
if(_s1->IsUClosed()) cout ... ...

The following is the compiling information:
... ...
occtest.cxx error£ºinvalid use of undefined type ¡®struct Geom_BSplineSurface¡¯
Handle_Geom_BSplineSurface.hxx:39: error£ºforward declaration of ¡®struct Geom_BSplineSurface¡¯
... ...

I have already include and .
I don't know whether _s1 can access Geom_BSplineSruface's functions.

Thanks a lot
wang yue

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.