放样操作我的理解是将两个线进行缝合联通的操作。
比如我可以通过三条线来创建一个曲面,三个线的坐标如下所示
通过放样操作形成的曲面如上所示
#include <BRepOffsetAPI_ThruSections.hxx>
BRepOffsetAPI_ThruSections loftGenerator;
//获取要操作的edges
std::list<TopoDS_Edge> edges = getEdges();
//把要操作的TopoDS_Shape都转换成wire放进BRepOffsetAPI_ThruSections中
//在这里就是对这三条边进行操作
for(...) {
//把edge合成wire
std::vector<TopoDS_Wire> wires = GeoCommandTool::bulidWire(edges);
loftGenerator.AddWire(wire);
}
loftGenerator.Build();
TopoDS_Shape resShape = loftGenerator.Shape();