mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
Update IfcGeomFunctions.cpp
Changing comment to be suitable for the code change
This commit is contained in:
@@ -1418,8 +1418,8 @@ const IfcSchema::IfcMaterial* IfcGeom::Kernel::get_single_material_association(c
|
|||||||
IfcSchema::IfcMaterialSelect* associated_material = (*associated_materials->begin())->RelatingMaterial();
|
IfcSchema::IfcMaterialSelect* associated_material = (*associated_materials->begin())->RelatingMaterial();
|
||||||
single_material = associated_material->as<IfcSchema::IfcMaterial>();
|
single_material = associated_material->as<IfcSchema::IfcMaterial>();
|
||||||
|
|
||||||
// NB: Single-layer layersets are also considered, regardless of --enable-layerset-slicing, this
|
// NB: IfcMaterialLayerSets are also considered, regardless of --enable-layerset-slicing. Picking
|
||||||
// in accordance with other viewers.
|
// the first material (in accordance with other viewers) when layerset-slicing is disabled.
|
||||||
if (!single_material && associated_material->as<IfcSchema::IfcMaterialLayerSetUsage>()) {
|
if (!single_material && associated_material->as<IfcSchema::IfcMaterialLayerSetUsage>()) {
|
||||||
IfcSchema::IfcMaterialLayerSet* layerset = associated_material->as<IfcSchema::IfcMaterialLayerSetUsage>()->ForLayerSet();
|
IfcSchema::IfcMaterialLayerSet* layerset = associated_material->as<IfcSchema::IfcMaterialLayerSetUsage>()->ForLayerSet();
|
||||||
if (layerset->MaterialLayers()->size() >= 1) {
|
if (layerset->MaterialLayers()->size() >= 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user