mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
further optional type changes
This commit is contained in:
@@ -927,11 +927,11 @@ bool IfcGeom::Kernel::convert_openings_fast(const IfcSchema::IfcProduct* entity,
|
|||||||
IfcSchema::IfcRelVoidsElement* v = *it;
|
IfcSchema::IfcRelVoidsElement* v = *it;
|
||||||
IfcSchema::IfcFeatureElementSubtraction* fes = v->RelatedOpeningElement();
|
IfcSchema::IfcFeatureElementSubtraction* fes = v->RelatedOpeningElement();
|
||||||
if ( fes->declaration().is(IfcSchema::IfcOpeningElement::Class()) ) {
|
if ( fes->declaration().is(IfcSchema::IfcOpeningElement::Class()) ) {
|
||||||
if (!fes->hasRepresentation()) continue;
|
if (!fes->Representation()) continue;
|
||||||
|
|
||||||
// Convert the IfcRepresentation of the IfcOpeningElement
|
// Convert the IfcRepresentation of the IfcOpeningElement
|
||||||
gp_Trsf opening_trsf;
|
gp_Trsf opening_trsf;
|
||||||
if (fes->hasObjectPlacement()) {
|
if (fes->ObjectPlacement()) {
|
||||||
try {
|
try {
|
||||||
convert(fes->ObjectPlacement(),opening_trsf);
|
convert(fes->ObjectPlacement(),opening_trsf);
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
|
|||||||
@@ -1666,7 +1666,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcTriangulatedFaceSet* l, TopoDS
|
|||||||
faceset_helper<
|
faceset_helper<
|
||||||
std::vector<double>,
|
std::vector<double>,
|
||||||
std::vector<int>
|
std::vector<int>
|
||||||
> helper(this, coord_list, indices, l->hasClosed() ? l->Closed() : false);
|
> helper(this, coord_list, indices, l->Closed().get_value_or(false));
|
||||||
|
|
||||||
TopTools_ListOfShape faces;
|
TopTools_ListOfShape faces;
|
||||||
|
|
||||||
@@ -1722,7 +1722,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcPolygonalFaceSet* pfs, TopoDS_
|
|||||||
faceset_helper<
|
faceset_helper<
|
||||||
std::vector<double>,
|
std::vector<double>,
|
||||||
std::vector<int>
|
std::vector<int>
|
||||||
> helper(this, coord_list, indices, pfs->hasClosed() ? pfs->Closed() : false);
|
> helper(this, coord_list, indices, pfs->Closed().get_value_or(false));
|
||||||
|
|
||||||
TopTools_ListOfShape faces;
|
TopTools_ListOfShape faces;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user