mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +00:00
Position() != nullptr
This commit is contained in:
@@ -494,7 +494,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcRectangleProfileDef* l, TopoDS
|
|||||||
gp_Trsf2d trsf2d;
|
gp_Trsf2d trsf2d;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
||||||
@@ -517,7 +517,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcRoundedRectangleProfileDef* l,
|
|||||||
gp_Trsf2d trsf2d;
|
gp_Trsf2d trsf2d;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
||||||
@@ -551,7 +551,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcRectangleHollowProfileDef* l,
|
|||||||
gp_Trsf2d trsf2d;
|
gp_Trsf2d trsf2d;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
||||||
@@ -601,7 +601,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcTrapeziumProfileDef* l, TopoDS
|
|||||||
gp_Trsf2d trsf2d;
|
gp_Trsf2d trsf2d;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
||||||
@@ -652,7 +652,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcIShapeProfileDef* l, TopoDS_Sh
|
|||||||
gp_Trsf2d trsf2d;
|
gp_Trsf2d trsf2d;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
||||||
@@ -691,7 +691,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcZShapeProfileDef* l, TopoDS_Sh
|
|||||||
gp_Trsf2d trsf2d;
|
gp_Trsf2d trsf2d;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
||||||
@@ -724,7 +724,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcCShapeProfileDef* l, TopoDS_Sh
|
|||||||
gp_Trsf2d trsf2d;
|
gp_Trsf2d trsf2d;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
||||||
@@ -799,7 +799,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcLShapeProfileDef* l, TopoDS_Sh
|
|||||||
gp_Trsf2d trsf2d;
|
gp_Trsf2d trsf2d;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
||||||
@@ -847,7 +847,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcUShapeProfileDef* l, TopoDS_Sh
|
|||||||
gp_Trsf2d trsf2d;
|
gp_Trsf2d trsf2d;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
||||||
@@ -936,7 +936,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcTShapeProfileDef* l, TopoDS_Sh
|
|||||||
gp_Trsf2d trsf2d;
|
gp_Trsf2d trsf2d;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
||||||
@@ -958,7 +958,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcCircleProfileDef* l, TopoDS_Sh
|
|||||||
gp_Trsf2d trsf2d;
|
gp_Trsf2d trsf2d;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
||||||
@@ -994,7 +994,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcCraneRailAShapeProfileDef* l,
|
|||||||
gp_Trsf2d trsf2d;
|
gp_Trsf2d trsf2d;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
||||||
@@ -1033,7 +1033,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcCircleHollowProfileDef* l, Top
|
|||||||
gp_Trsf2d trsf2d;
|
gp_Trsf2d trsf2d;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
||||||
@@ -1071,7 +1071,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcEllipseProfileDef* l, TopoDS_S
|
|||||||
gp_Trsf2d trsf2d;
|
gp_Trsf2d trsf2d;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
IfcGeom::Kernel::convert(l->Position(), trsf2d);
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcExtrudedAreaSolid* l, TopoDS_S
|
|||||||
gp_Trsf trsf;
|
gp_Trsf trsf;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcSweptAreaSolid_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcSweptAreaSolid_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf);
|
IfcGeom::Kernel::convert(l->Position(), trsf);
|
||||||
@@ -206,7 +206,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcExtrudedAreaSolidTapered* l, T
|
|||||||
gp_Trsf trsf;
|
gp_Trsf trsf;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcSweptAreaSolid_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcSweptAreaSolid_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf);
|
IfcGeom::Kernel::convert(l->Position(), trsf);
|
||||||
@@ -308,7 +308,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcSurfaceOfLinearExtrusion* l, T
|
|||||||
gp_Trsf trsf;
|
gp_Trsf trsf;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcSweptSurface_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcSweptSurface_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf);
|
IfcGeom::Kernel::convert(l->Position(), trsf);
|
||||||
@@ -343,7 +343,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcSurfaceOfRevolution* l, TopoDS
|
|||||||
gp_Trsf trsf;
|
gp_Trsf trsf;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcSweptSurface_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcSweptSurface_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf);
|
IfcGeom::Kernel::convert(l->Position(), trsf);
|
||||||
@@ -372,7 +372,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcRevolvedAreaSolid* l, TopoDS_S
|
|||||||
gp_Trsf trsf;
|
gp_Trsf trsf;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcSweptAreaSolid_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcSweptAreaSolid_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf);
|
IfcGeom::Kernel::convert(l->Position(), trsf);
|
||||||
@@ -1092,7 +1092,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcSurfaceCurveSweptAreaSolid* l,
|
|||||||
gp_Trsf trsf;
|
gp_Trsf trsf;
|
||||||
bool has_position = true;
|
bool has_position = true;
|
||||||
#ifdef SCHEMA_IfcSweptAreaSolid_Position_IS_OPTIONAL
|
#ifdef SCHEMA_IfcSweptAreaSolid_Position_IS_OPTIONAL
|
||||||
has_position = l->hasPosition();
|
has_position = l->Position() != nullptr;
|
||||||
#endif
|
#endif
|
||||||
if (has_position) {
|
if (has_position) {
|
||||||
IfcGeom::Kernel::convert(l->Position(), trsf);
|
IfcGeom::Kernel::convert(l->Position(), trsf);
|
||||||
|
|||||||
Reference in New Issue
Block a user