Thu, 10/23/2014 - 13:07
Forums:
Hello,
I try to trim a curve at a given parameter value. I try to do that with the following code:
> Handle(Geom_Curve) myC = ...
> GeomAdaptor_Curve gac( Handle(Geom_Curve)::DownCast(myC->Copy()) );
> Handle_Adaptor3d_HCurve ha = gac.Trim( _u0, _u1, Precision::Confusion() );
> Handle(Geom_BSplineCurve) bS = ha->BSpline();
If I check the end points of the new curve after the operations, it is not trimmed.
What is my mistake?
Thu, 10/23/2014 - 13:55
Hello!
Check out the class Geom_TrimmedCurve.
Thu, 10/23/2014 - 14:26
Hi Alex,
thanks for your help. But I tried to trim a Geom_BSplineCurve that was an instance of Geom_TrimmedCurve. So the underlying curve was already a not trimmed Geom_BSplineCurve.
But I think I solve my Problem.
I trim the curve by using: GeomConvert::SplitBSplineCurve
Many thanks anyway.
Fri, 10/24/2014 - 13:38
Geom_BSplineCurve::Segment.
Regards.
Mauro