Option to disable boolean results (sets result to first operand)

This commit is contained in:
Thomas Krijnen
2020-11-24 16:58:05 +01:00
parent dd4902be18
commit b1c4481795
7 changed files with 35 additions and 2 deletions
+10
View File
@@ -229,6 +229,8 @@ private:
const IfcParse::declaration* placement_rel_to;
faceset_helper* faceset_helper_;
double disable_boolean_result;
gp_Vec offset = gp_Vec{0.0, 0.0, 0.0};
gp_Quaternion rotation = gp_Quaternion{};
gp_Trsf offset_and_rotation = gp_Trsf();
@@ -252,6 +254,8 @@ public:
, dimensionality(1.)
, placement_rel_to(nullptr)
, faceset_helper_(nullptr)
, layerset_first(-1.)
, disable_boolean_result(-1.)
{}
MAKE_TYPE_NAME(Kernel)(const MAKE_TYPE_NAME(Kernel)& other)
@@ -265,6 +269,9 @@ public:
, placement_rel_to(other.placement_rel_to)
// @nb faceset_helper_ always initialized to 0
, faceset_helper_(nullptr)
, layerset_first(other.layerset_first)
, disable_boolean_result(other.disable_boolean_result)
, offset(other.offset)
, rotation(other.rotation)
, offset_and_rotation(other.offset_and_rotation)
@@ -279,6 +286,9 @@ public:
modelling_precision = other.modelling_precision;
dimensionality = other.dimensionality;
placement_rel_to = other.placement_rel_to;
layerset_first = other.layerset_first;
disable_boolean_result = other.disable_boolean_result;
offset = other.offset;
rotation = other.rotation;
offset_and_rotation = other.offset_and_rotation;