Forum archiveIssue archiveOther usage issues

Archived discussion

Bspline surface with least square method

Other usage issuesMon, 02/19/2007 - 13:471 reply

Browse this forum
QuestionAuthor

Hello everybody,

I need to create Bspline surface from data point with least square method or any method that keep the curvature as minimum as possible. Can anybody help with that.

Thanks in advance,
Abraham

Discussion

1 archived reply

Posts are displayed in their archived order.

01Author

I have managed with that using the sample code "11_Plate" but actually I am not aware of the parameters that will help to minimize the curvature as much as possible. any help will be appreciated.

A snap of the code I have wrote:
.
.
.
TColgp_SequenceOfXYZ
.
myPlate.SolveTI(2, 1.);// resolution
.
Handle(Geom_Plane) myPlane = new Geom_Plane(Or, Norm);// Plane of normal Oz
Handle(GeomPlate_Surface) myPlateSurf = new GeomPlate_Surface( myPlane, myPlate);//plate surface
GeomPlate_MakeApprox aMKS(myPlateSurf, Precision::Approximation(), 100, 7,0.001, 0);//bspline surface
Handle_Geom_BSplineSurface myGround = aMKS.Surface();
.
.
.