Add --no-normals

This commit is contained in:
Stinkfist0
2016-03-10 13:29:22 +02:00
parent 24e2aece0b
commit ce38854cff
4 changed files with 13 additions and 9 deletions
+4 -3
View File
@@ -181,8 +181,9 @@ namespace IfcGeom {
BRepGProp_Face prop(face);
std::map<int,int> dict;
// Vertex normals are only calculated if vertices are not welded
const bool calculate_normals = !settings().get(IteratorSettings::WELD_VERTICES);
// Vertex normals are only calculated if vertices are not welded and calculation is not disable explicitly.
const bool calculate_normals = !settings().get(IteratorSettings::WELD_VERTICES) &&
!settings().get(IteratorSettings::NO_NORMALS);
for( int i = 1; i <= nodes.Length(); ++ i ) {
coords.push_back(nodes(i).Transformed(loc).XYZ());
@@ -309,4 +310,4 @@ namespace IfcGeom {
}
}
#endif
#endif