mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 13:46:54 +00:00
Re-enable force_close in profile curve handling
This commit is contained in:
@@ -229,6 +229,8 @@ OpenCascadeKernel::curve_creation_visitor_result_type OpenCascadeKernel::convert
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include "../../../ifcparse/IfcFile.h"
|
||||||
|
|
||||||
bool OpenCascadeKernel::convert(const taxonomy::loop::ptr loop, TopoDS_Wire& wire) {
|
bool OpenCascadeKernel::convert(const taxonomy::loop::ptr loop, TopoDS_Wire& wire) {
|
||||||
TopTools_ListOfShape converted_segments;
|
TopTools_ListOfShape converted_segments;
|
||||||
|
|
||||||
@@ -272,12 +274,13 @@ bool OpenCascadeKernel::convert(const taxonomy::loop::ptr loop, TopoDS_Wire& wir
|
|||||||
|
|
||||||
TopTools_ListIteratorOfListOfShape it(converted_segments);
|
TopTools_ListIteratorOfListOfShape it(converted_segments);
|
||||||
|
|
||||||
/*
|
bool force_close = false;
|
||||||
@todo
|
if (loop->instance && loop->instance->as<IfcUtil::IfcBaseEntity>() && loop->instance->as<IfcUtil::IfcBaseEntity>()->file_) {
|
||||||
IfcEntityList::ptr profile = l->data().getInverse(&IfcSchema::IfcProfileDef::Class(), -1);
|
auto* inst = loop->instance->as<IfcUtil::IfcBaseEntity>();
|
||||||
const bool force_close = profile && profile->size() > 0;
|
auto* file = loop->instance->as<IfcUtil::IfcBaseEntity>()->file_;
|
||||||
*/
|
auto profile = file->getInverse(inst->id(), file->schema()->declaration_by_name("IfcProfileDef"), -1);
|
||||||
const bool force_close = false;
|
force_close = profile && profile->size() > 0;
|
||||||
|
}
|
||||||
|
|
||||||
wire_builder bld(precision_, loop->instance ? loop->instance->as<IfcUtil::IfcBaseEntity>() : nullptr);
|
wire_builder bld(precision_, loop->instance ? loop->instance->as<IfcUtil::IfcBaseEntity>() : nullptr);
|
||||||
shape_pair_enumerate(it, bld, force_close);
|
shape_pair_enumerate(it, bld, force_close);
|
||||||
|
|||||||
Reference in New Issue
Block a user