fixes #0001906: add Parameters isRelative, theAngDeflection of BRepMesh_IncrementalMesh in MeshFromShape Gui command

This commit is contained in:
wmayer
2017-09-30 16:15:24 +02:00
parent c60bad3304
commit f8728a008f
5 changed files with 84 additions and 30 deletions

View File

@@ -148,6 +148,7 @@ Mesher::Mesher(const TopoDS_Shape& s)
, angularDeflection(0.5)
, minLen(0)
, maxLen(0)
, relative(false)
, regular(false)
, segments(false)
#if defined (HAVE_NETGEN)
@@ -172,7 +173,7 @@ Mesh::MeshObject* Mesher::createMesh() const
if (method == Standard) {
if (!shape.IsNull()) {
BRepTools::Clean(shape);
BRepMesh_IncrementalMesh aMesh(shape, deflection, Standard_False, angularDeflection);
BRepMesh_IncrementalMesh aMesh(shape, deflection, relative, angularDeflection);
}
std::vector<Part::TopoShape::Domain> domains;