mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +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:
@@ -539,7 +539,8 @@ void GeometryStreamer::run(const std::string& path, int num_threads) {
|
||||
do {
|
||||
if (cancel_requested_.load()) break;
|
||||
|
||||
const ifcopenshell::geom::element* elem = iterator->get();
|
||||
auto element = iterator->get();
|
||||
const ifcopenshell::geom::element* elem = element.get();
|
||||
if (!elem) continue;
|
||||
|
||||
const auto* tri_elem = dynamic_cast<const ifcopenshell::geom::triangulation_element*>(elem);
|
||||
|
||||
Reference in New Issue
Block a user