Fixes #3452363 Fail to create meshes of parametric curves when no angular unit information is present in the IFC file

This commit is contained in:
Thomas Krijnen
2011-12-07 14:07:22 +00:00
parent bc56aa3397
commit 9d88d75b3b
3 changed files with 25 additions and 0 deletions
+2
View File
@@ -672,6 +672,7 @@ bool Ifc::Init(IfcParse::File* f) {
Ifc::LengthUnit = value;
} else if ( type == Ifc2x3::IfcUnitEnum::PLANEANGLEUNIT ) {
Ifc::PlaneAngleUnit = value;
Ifc::hasPlaneAngleUnit = true;
}
}
}
@@ -765,6 +766,7 @@ unsigned int Ifc::lastId = 0;
Tokens* Ifc::tokens = 0;
float Ifc::LengthUnit = 1.0f;
float Ifc::PlaneAngleUnit = 1.0f;
bool Ifc::hasPlaneAngleUnit = false;
int Ifc::CircleSegments = 32;
MapEntitiesByType Ifc::bytype;
MapEntityById Ifc::byid;