- std::list<boost::shared_ptr<GeomAPI_Shape> > aFaces;
- GeomAlgoAPI_SketchBuilder::createFaces(aWirePtr->origin(), aWirePtr->dirX(),
- aWirePtr->dirY(), aWirePtr->norm(), aWirePtr, aFaces);
-
- BRep_Builder aBuilder;
- TopoDS_Shape aShape = aWirePtr->impl<TopoDS_Shape>();
- std::list<boost::shared_ptr<GeomAPI_Shape>>::const_iterator aIt;
- for (aIt = aFaces.cbegin(); aIt != aFaces.cend(); ++aIt) {
- TopoDS_Shape aFace = (*aIt)->impl<TopoDS_Shape>();
- aBuilder.Add(aShape, aFace);
- }
- Set(aShape);