mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 10:23:41 +00:00
#2080 Don't allow parameterless Kernel constructor
This commit is contained in:
@@ -299,7 +299,7 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
MAKE_TYPE_NAME(Kernel)()
|
MAKE_TYPE_NAME(Kernel)()
|
||||||
: IfcGeom::Kernel(0)
|
: IfcGeom::Kernel()
|
||||||
, deflection_tolerance(0.001)
|
, deflection_tolerance(0.001)
|
||||||
, max_faces_to_orient(-1.0)
|
, max_faces_to_orient(-1.0)
|
||||||
, ifc_length_unit(1.0)
|
, ifc_length_unit(1.0)
|
||||||
@@ -321,7 +321,7 @@ public:
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
MAKE_TYPE_NAME(Kernel)(const MAKE_TYPE_NAME(Kernel)& other)
|
MAKE_TYPE_NAME(Kernel)(const MAKE_TYPE_NAME(Kernel)& other)
|
||||||
: IfcGeom::Kernel(0)
|
: IfcGeom::Kernel()
|
||||||
, deflection_tolerance(other.deflection_tolerance)
|
, deflection_tolerance(other.deflection_tolerance)
|
||||||
, max_faces_to_orient(other.max_faces_to_orient)
|
, max_faces_to_orient(other.max_faces_to_orient)
|
||||||
, ifc_length_unit(other.ifc_length_unit)
|
, ifc_length_unit(other.ifc_length_unit)
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ namespace IfcGeom {
|
|||||||
private:
|
private:
|
||||||
Kernel* implementation_;
|
Kernel* implementation_;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
Kernel() {};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// Tolerances and settings for various geometrical operations:
|
// Tolerances and settings for various geometrical operations:
|
||||||
enum GeomValue {
|
enum GeomValue {
|
||||||
@@ -80,7 +83,7 @@ namespace IfcGeom {
|
|||||||
GV_BOOLEAN_ATTEMPT_2D
|
GV_BOOLEAN_ATTEMPT_2D
|
||||||
};
|
};
|
||||||
|
|
||||||
Kernel(IfcParse::IfcFile* file_ = 0);
|
Kernel(IfcParse::IfcFile* file_);
|
||||||
|
|
||||||
virtual ~Kernel() {}
|
virtual ~Kernel() {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user