Part: fix ViewProviderExt::updateVisual() on incomplete mesh

This commit is contained in:
Zheng, Lei
2021-01-28 17:38:49 +01:00
committed by wwmayer
parent aa45875a2b
commit 1dddcd0b18
+4 -1
View File
@@ -1133,7 +1133,10 @@ void ViewProviderPartExt::updateVisual()
const TopoDS_Face &actFace = TopoDS::Face(faceMap(i));
// get the mesh of the shape
Handle (Poly_Triangulation) mesh = BRep_Tool::Triangulation(actFace,aLoc);
if (mesh.IsNull()) continue;
if (mesh.IsNull()) {
parts[ii] = 0;
continue;
}
// getting the transformation of the shape/face
gp_Trsf myTransf;