mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -247,6 +247,7 @@ public:
|
||||
static bool Init(IfcParse::File* f);
|
||||
static std::string GetLog();
|
||||
static void Dispose();
|
||||
static bool hasPlaneAngleUnit;
|
||||
static float LengthUnit;
|
||||
static float PlaneAngleUnit;
|
||||
static int CircleSegments;
|
||||
|
||||
Reference in New Issue
Block a user