ostenl Thu, 04/02/2009 - 22:29 Forums: Other usage issuesHow do I trim a BSPlineCurve? Marco Matt Fri, 04/03/2009 - 12:21 Maybe you can give some more details... try BRepAdaptor_Curve::Trim(...) or GeomAdaptor_Curve::Trim(...) Log in to post comments ostenl Fri, 04/03/2009 - 12:55 The problem I had turned out to be in the visualization, not in the geometry. I use: ... Handle(Geom_BSplineCurve) sc = new Geom_BSplineCurve(poles, weights, knots, multiplicities, degree, periodic); Handle(Geom_TrimmedCurve) crv = new Geom_TrimmedCurve(sc, trim1, trim2); ... /Östen Log in to post comments Marco Matt Fri, 04/03/2009 - 13:14 Do you display with something like yourAISContext->Display(new AIS_Shape(BRepBuilderAPI_MakeEdge(crv).Edge()))? Log in to post comments ostenl Fri, 04/03/2009 - 15:05 I don't use OCC for display, I am using OpenSceneGraph in my application. Log in to post comments
Fri, 04/03/2009 - 12:21
Maybe you can give some more details...
try
BRepAdaptor_Curve::Trim(...) or GeomAdaptor_Curve::Trim(...)
Fri, 04/03/2009 - 12:55
The problem I had turned out to be in the visualization, not in the geometry.
I use:
...
Handle(Geom_BSplineCurve) sc = new Geom_BSplineCurve(poles, weights, knots, multiplicities, degree, periodic);
Handle(Geom_TrimmedCurve) crv = new Geom_TrimmedCurve(sc, trim1, trim2);
...
/Östen
Fri, 04/03/2009 - 13:14
Do you display with something like
yourAISContext->Display(new AIS_Shape(BRepBuilderAPI_MakeEdge(crv).Edge()))?
Fri, 04/03/2009 - 15:05
I don't use OCC for display, I am using OpenSceneGraph in my application.