# fit a curve on a surface

How to fit a curve passing through a set of points on a surface, such that the curve
lies on the surface

Hi,
try using the package GeomPlate, you can define GeomPlate_PointConstraint and GeomPlate_CurveConstraint. Look at the samples and pdf manual to see how to use it.

Good Luck,
Francois.

Hi,

you can try to use the class "Geom2dAPI_PointsToBSpline" to fit the U V parameters, then utilizing the fitting U and V to compute the points, it means the computing points lie on the surface.

Regards,

Du