clean : Remove the debug print

debug : don't display the name of the element in unity anymore
This commit is contained in:
Balleux Benjamin
2017-04-19 16:38:35 +02:00
parent 195979d4f0
commit 8e4febecc0
3 changed files with 6 additions and 27 deletions
+1 -6
View File
@@ -268,7 +268,7 @@ int main(int argc, char** argv)
"Use material names instead of unique IDs for naming materials upon serialization. "
"Applicable for OBJ and DAE output.")
("use-element-types",
"Use element types and names instead of unique IDs for naming elements upon serialization. "
"Use element types instead of unique IDs for naming elements upon serialization. "
"Applicable for DAE output.")
("use-element-hierarchy",
"Order the elements using their IfcBuildingStorey parent. "
@@ -596,7 +596,6 @@ int main(int argc, char** argv)
try { parent_object = context_iterator.getObject(geom_object->parent_id()); }
catch (std::exception e)
{
std::cout << e.what() << '\n';
hasParent = false;
}
@@ -605,15 +604,11 @@ int main(int argc, char** argv)
try { parent_object = context_iterator.getObject(parent_object->parent_id()); }
catch (std::exception e)
{
std::cout << e.what() << '\n';
hasParent = false;
}
hasParent = hasParent && parent_object->parent_id() != 1;
}
//Debug
//if (parent_object != NULL) std::cout << '\n' << "obj " << geom_object->unique_id() << " parent = " << parent_object->name() << " of type " << parent_object->type() << '\n';
//else std::cout << "No parent found : " << geom_object->unique_id() << " of type : " << geom_object->type();
if (parent_object != NULL) serializer->write(static_cast<const IfcGeom::TriangulationElement<real_t>*>(geom_object), parent_object);
else serializer->write(static_cast<const IfcGeom::TriangulationElement<real_t>*>(geom_object));