mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 02:58:02 +00:00
Correct test for when to reuse representation in iterator
This commit is contained in:
@@ -511,7 +511,7 @@ namespace IfcGeom {
|
|||||||
Logger::SetProduct(product);
|
Logger::SetProduct(product);
|
||||||
|
|
||||||
BRepElement<P>* element;
|
BRepElement<P>* element;
|
||||||
if (ifcproduct_iterator == ifcproducts->begin() || !settings.get(IteratorSettings::USE_WORLD_COORDS)) {
|
if (ifcproduct_iterator == ifcproducts->begin() || settings.get(IteratorSettings::USE_WORLD_COORDS)) {
|
||||||
element = kernel.create_brep_for_representation_and_product<P>(settings, representation, product);
|
element = kernel.create_brep_for_representation_and_product<P>(settings, representation, product);
|
||||||
} else {
|
} else {
|
||||||
element = kernel.create_brep_for_processed_representation(settings, representation, product, current_shape_model);
|
element = kernel.create_brep_for_processed_representation(settings, representation, product, current_shape_model);
|
||||||
|
|||||||
Reference in New Issue
Block a user