mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 11:57:05 +00:00
Filter by context id, not using curves or solids. See #1674.
This commit is contained in:
committed by
Thomas Krijnen
parent
37bddc25ca
commit
514c5eb790
@@ -342,6 +342,11 @@ namespace IfcGeom {
|
||||
// WR31: The parent context shall not be another geometric representation sub context.
|
||||
}
|
||||
|
||||
for (auto context_id : settings.context_ids()) {
|
||||
IfcSchema::IfcGeometricRepresentationContext* context = ifc_file->instance_by_id(context_id)->as<IfcSchema::IfcGeometricRepresentationContext>();
|
||||
representations->push(context->RepresentationsInContext());
|
||||
}
|
||||
|
||||
if (any_precision_encountered) {
|
||||
// Some arbitrary factor that has proven to work better for the models in the set of test files.
|
||||
lowest_precision_encountered *= kernel.getValue(IfcGeom::Kernel::GV_PRECISION_FACTOR);
|
||||
|
||||
Reference in New Issue
Block a user