MeshPart: modernize C++: use default member init
This commit is contained in:
@@ -476,8 +476,7 @@ class _VertexCompare
|
||||
return clP1.X() < clP2.X();
|
||||
}
|
||||
|
||||
_VertexCompare () : dE(1.0e-5) {}
|
||||
double dE;
|
||||
double dE = 1.0e-5;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -127,11 +127,11 @@ namespace MeshPart {
|
||||
struct Vertex {
|
||||
static const double deflection;
|
||||
Standard_Real x,y,z;
|
||||
Standard_Integer i;
|
||||
Standard_Integer i = 0;
|
||||
mutable MeshCore::MeshPoint p;
|
||||
|
||||
Vertex(Standard_Real X, Standard_Real Y, Standard_Real Z)
|
||||
: x(X),y(Y),z(Z),i(0)
|
||||
: x(X),y(Y),z(Z)
|
||||
{
|
||||
p.x = static_cast<float>(x);
|
||||
p.y = static_cast<float>(y);
|
||||
@@ -306,26 +306,6 @@ public:
|
||||
|
||||
Mesher::Mesher(const TopoDS_Shape& s)
|
||||
: shape(s)
|
||||
, method(None)
|
||||
, maxLength(0)
|
||||
, maxArea(0)
|
||||
, localLength(0)
|
||||
, deflection(0)
|
||||
, angularDeflection(0.5)
|
||||
, minLen(0)
|
||||
, maxLen(0)
|
||||
, relative(false)
|
||||
, regular(false)
|
||||
, segments(false)
|
||||
#if defined (HAVE_NETGEN)
|
||||
, fineness(5)
|
||||
, growthRate(0)
|
||||
, nbSegPerEdge(0)
|
||||
, nbSegPerRadius(0)
|
||||
, secondOrder(false)
|
||||
, optimize(true)
|
||||
, allowquad(false)
|
||||
#endif
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -142,24 +142,24 @@ private:
|
||||
|
||||
private:
|
||||
const TopoDS_Shape& shape;
|
||||
Method method;
|
||||
double maxLength;
|
||||
double maxArea;
|
||||
double localLength;
|
||||
double deflection;
|
||||
double angularDeflection;
|
||||
double minLen, maxLen;
|
||||
bool relative;
|
||||
bool regular;
|
||||
bool segments;
|
||||
Method method{None};
|
||||
double maxLength{0};
|
||||
double maxArea{0};
|
||||
double localLength{0};
|
||||
double deflection{0};
|
||||
double angularDeflection{0.5};
|
||||
double minLen{0}, maxLen{0};
|
||||
bool relative{false};
|
||||
bool regular{false};
|
||||
bool segments{false};
|
||||
#if defined (HAVE_NETGEN)
|
||||
int fineness;
|
||||
double growthRate;
|
||||
double nbSegPerEdge;
|
||||
double nbSegPerRadius;
|
||||
bool secondOrder;
|
||||
bool optimize;
|
||||
bool allowquad;
|
||||
int fineness{5};
|
||||
double growthRate{0};
|
||||
double nbSegPerEdge{0};
|
||||
double nbSegPerRadius{0};
|
||||
bool secondOrder{false};
|
||||
bool optimize{true};
|
||||
bool allowquad{false};
|
||||
#endif
|
||||
std::vector<uint32_t> colors;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user