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

About CurveOnSurface on cylindrical surface

gpsunjp's picture

When I use the following codes to find a projected curve on a cylindrical surface, the Function CurveOnSurface always return NULL Geom2d_Curve. I have made sure that the 3d circle curve is on the cylindrical curve.

Could anyone tell me why?

Thanks in advace.

gp_Cylinder cylinder(axis3, radius);
GC_MakeCylindricalSurface mcyl(cylinder);
Handle(Geom_CylindricalSurface) cylSurface = mcyl.Value();

gp_Ax2 axis2(center, xaxis, yaxis);
GC_MakeCircle mc(axis2, radius);
BRepBuilderAPI_MakeEdge me;

TopLoc_Location loc;
Standard_Real first, last;
Handle(Geom2d_Curve) paraCurve = BRep_Tool::CurveOnSurface
(me.Edge(), cylSurface, loc, first, last);


gpsunjp's picture

I resolved this problem using ShapeFix_Edge::FixAddPCurve()

G.P. Sun

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.