mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
only fetch style for some set of kinds
This commit is contained in:
@@ -9,7 +9,10 @@
|
|||||||
if (item != nullptr) { \
|
if (item != nullptr) { \
|
||||||
item->instance = l; \
|
item->instance = l; \
|
||||||
try { \
|
try { \
|
||||||
if (l->as<IfcSchema::IfcRepresentationItem>() && !l->as<IfcSchema::IfcStyledItem>()) { \
|
if (l->as<IfcSchema::IfcRepresentationItem>() && !l->as<IfcSchema::IfcStyledItem>() && \
|
||||||
|
/* @todo */ \
|
||||||
|
(item->kind() == taxonomy::SHELL || item->kind() == taxonomy::COLLECTION || item->kind() == taxonomy::EXTRUSION) \
|
||||||
|
) { \
|
||||||
auto style = find_style(l->as<IfcSchema::IfcRepresentationItem>()); \
|
auto style = find_style(l->as<IfcSchema::IfcRepresentationItem>()); \
|
||||||
if (style) { \
|
if (style) { \
|
||||||
((taxonomy::geom_item*)item)->surface_style = (taxonomy::style*) map(style); \
|
((taxonomy::geom_item*)item)->surface_style = (taxonomy::style*) map(style); \
|
||||||
|
|||||||
Reference in New Issue
Block a user