mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
ColladaSerializer::differentiateSlabTypes: IfcSlab.PredefinedType is optional so check for its existence.
https://github.com/Tridify/IfcOpenShell/commit/c4f426392cfc021b8a9c617f21d258759b289d6a#diff-cca49440331fb4c1363204028192c459
This commit is contained in:
committed by
Thomas Krijnen
parent
505d234ea2
commit
9f03a78652
@@ -413,8 +413,11 @@ void ColladaSerializer::ColladaExporter::write(const IfcGeom::TriangulationEleme
|
||||
|
||||
std::string ColladaSerializer::differentiateSlabTypes(const IfcSchema::IfcSlab* slab)
|
||||
{
|
||||
switch (slab->PredefinedType())
|
||||
{
|
||||
if (!slab->hasPredefinedType()) {
|
||||
return "_Unknown";
|
||||
}
|
||||
|
||||
switch (slab->PredefinedType()) {
|
||||
case IfcSlabTypeEnum::IfcSlabType_FLOOR: return "_Floor";
|
||||
case IfcSlabTypeEnum::IfcSlabType_ROOF: return "_Roof";
|
||||
case IfcSlabTypeEnum::IfcSlabType_LANDING: return "_Landing";
|
||||
|
||||
Reference in New Issue
Block a user