Skip to content
Snippets Groups Projects
Commit 36497ec0 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix

parent fd8e8641
No related branches found
No related tags found
No related merge requests found
......@@ -852,9 +852,10 @@ void OCC_Internals::addPlaneSurface(int tag, const std::vector<int> &wireTags)
computeMeanPlaneSimple(points, meanPlane);
try{
gp_Pln aPlane(meanPlane.a, meanPlane.b, meanPlane.c, -meanPlane.d);
BRepBuilderAPI_MakeFace f(aPlane);
for(unsigned int i = 0; i < wires.size(); i++)
BRepBuilderAPI_MakeFace f(aPlane, wires[0]);
for(unsigned int i = 1; i < wires.size(); i++){
f.Add(wires[i]);
}
f.Build();
if(!f.IsDone()){
Msg::Error("Could not create face");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment