Fix compilation errors for mfc samples.
[occt.git] / samples / mfc / standard / 01_Geometry / src / GeometryDoc.cpp
index 0376c6b..0a70fb4 100755 (executable)
@@ -1304,7 +1304,7 @@ void CGeometryDoc::simplify(const TopoDS_Shape& aShape)
     //and all the polygons on the triangulations of the edges
     BRepTools::Clean(aShape);
     // adds a triangulation of the shape aShape with the deflection aDeflection
-    BRepMesh::Mesh(aShape,aDeflection);
+    BRepMesh_IncrementalMesh(aShape,aDeflection);
 
     Standard_Integer aIndex = 1, nbNodes = 0;