fixes #0001302: crash in model refine.
This commit is contained in:
parent
09fe84abbf
commit
1464cf413b
|
@ -371,7 +371,10 @@ TopoDS_Face FaceTypedPlane::buildFace(const FaceVectorType &faces) const
|
||||||
|
|
||||||
std::sort(wires.begin(), wires.end(), ModelRefine::WireSort());
|
std::sort(wires.begin(), wires.end(), ModelRefine::WireSort());
|
||||||
|
|
||||||
TopoDS_Face current = BRepLib_MakeFace(wires.at(0), Standard_True);
|
BRepLib_MakeFace faceMaker(wires.at(0), Standard_True);
|
||||||
|
if (faceMaker.Error() != BRepLib_FaceDone)
|
||||||
|
return TopoDS_Face();
|
||||||
|
TopoDS_Face current = faceMaker.Face();
|
||||||
if (wires.size() > 1)
|
if (wires.size() > 1)
|
||||||
{
|
{
|
||||||
ShapeFix_Face faceFix(current);
|
ShapeFix_Face faceFix(current);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user