mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 19:07:57 +00:00
Own iterator geometry results
Return independent geometry copies with unique ownership, preserve parent lifetimes, and teach the Python wrapper to own derived results. Keep serializer inputs non-owning and replace Collada's deferred object with copied triangulation elements.\n\nGenerated with the assistance of an AI coding tool.
This commit is contained in:
@@ -151,7 +151,8 @@ void ifcopenshell::geom::tree::add_file(ifcopenshell::geom::iterator& iterator)
|
||||
}
|
||||
|
||||
do {
|
||||
add_element(iterator.get());
|
||||
auto element = iterator.get();
|
||||
add_element(element.get());
|
||||
} while (iterator.next());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user