Filter by context id, not using curves or solids. See #1674.

This commit is contained in:
Dion Moult
2021-09-22 10:56:49 +10:00
committed by Thomas Krijnen
parent 37bddc25ca
commit 514c5eb790
4 changed files with 20 additions and 15 deletions
@@ -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);