
Mon, 04/11/2005 - 15:46
Forums:
Hello
I have again a problem:
I'd like to build a ruled surface from to curves;
the first curve is a Geom_BSplineCurve
the other is a Geom2d_BSplineCurve lying on a Geom_BSplineSurface
I don't manage to convert my second curve into Geom_BSplineCurve so as I can use GeomFill::Surface
Please, someone could help me?
MANU
Tue, 04/12/2005 - 13:56
Hello Manu,
Do you know the class CurveOnSurface? I think it is in GeomAdaptor package. You pass your 2d curve and the surface on which the curve lies. The resulting curve you now have is a 3d curve on that surface. Alternatively, if you are working with topologic entities, use the BRep package (BRepBuilderAPI_MakeEdge)to which you pass your 2d curve and the surface. The result will be an edge, from which if you want geometry you can query through the BRep package (see documentation on extracting geometry from topologic data).
In fact, more to it... In case you are using GeomFill, you find a class GeomFill_SimpleBoundary. You can use this quite well for the job you are working with. All these (essential GeomFill classes) have BRep_'foo' matches in BRep package, in case you wanna go the BRep way!!!
All the best,
axyl