Mod: modernize C++: use equals default
This commit is contained in:
@@ -140,8 +140,6 @@ public:
|
||||
initialize("This module is the MeshPart module."); // register with Python
|
||||
}
|
||||
|
||||
~Module() override {}
|
||||
|
||||
private:
|
||||
Py::Object invoke_method_varargs(void *method_def, const Py::Tuple &args) override
|
||||
{
|
||||
|
||||
@@ -672,10 +672,6 @@ MeshProjection::MeshProjection(const MeshKernel& rMesh)
|
||||
{
|
||||
}
|
||||
|
||||
MeshProjection::~MeshProjection()
|
||||
{
|
||||
}
|
||||
|
||||
void MeshProjection::discretize(const TopoDS_Edge& aEdge, std::vector<Base::Vector3f>& polyline, std::size_t minPoints) const
|
||||
{
|
||||
BRepAdaptor_Curve clCurve(aEdge);
|
||||
|
||||
@@ -52,7 +52,7 @@ class MeshPartExport CurveProjector
|
||||
{
|
||||
public:
|
||||
CurveProjector(const TopoDS_Shape &aShape, const MeshKernel &pMesh);
|
||||
virtual ~CurveProjector() {}
|
||||
virtual ~CurveProjector() = default;
|
||||
|
||||
struct FaceSplitEdge
|
||||
{
|
||||
@@ -89,7 +89,7 @@ class MeshPartExport CurveProjectorShape: public CurveProjector
|
||||
{
|
||||
public:
|
||||
CurveProjectorShape(const TopoDS_Shape &aShape, const MeshKernel &pMesh);
|
||||
~CurveProjectorShape() override {}
|
||||
~CurveProjectorShape() override = default;
|
||||
|
||||
void projectCurve(const TopoDS_Edge& aEdge,
|
||||
std::vector<FaceSplitEdge> &vSplitEdges);
|
||||
@@ -110,7 +110,7 @@ class MeshPartExport CurveProjectorSimple: public CurveProjector
|
||||
{
|
||||
public:
|
||||
CurveProjectorSimple(const TopoDS_Shape &aShape, const MeshKernel &pMesh);
|
||||
~CurveProjectorSimple() override {}
|
||||
~CurveProjectorSimple() override = default;
|
||||
|
||||
/// helper to discredicice a Edge...
|
||||
void GetSampledCurves( const TopoDS_Edge& aEdge, std::vector<Base::Vector3f>& rclPoints, unsigned long ulNbOfPoints = 30);
|
||||
@@ -139,7 +139,7 @@ public:
|
||||
};
|
||||
|
||||
CurveProjectorWithToolMesh(const TopoDS_Shape &aShape, const MeshKernel &pMesh,MeshKernel &rToolMesh);
|
||||
~CurveProjectorWithToolMesh() override {}
|
||||
~CurveProjectorWithToolMesh() override = default;
|
||||
|
||||
|
||||
void makeToolMesh(const TopoDS_Edge& aEdge,std::vector<MeshGeomFacet> &cVAry );
|
||||
@@ -174,10 +174,7 @@ public:
|
||||
std::vector<Base::Vector3f> points;
|
||||
};
|
||||
|
||||
/// Construction
|
||||
explicit MeshProjection(const MeshKernel& rMesh);
|
||||
/// Destruction
|
||||
~MeshProjection();
|
||||
|
||||
/**
|
||||
* @brief findSectionParameters
|
||||
|
||||
@@ -55,7 +55,7 @@ std::vector<ColMat<double, 3>> getBoundaries(ColMat<double, 3> vertices, ColMat<
|
||||
class FaceUnwrapper{
|
||||
nurbs::NurbsBase2D nu;
|
||||
public:
|
||||
FaceUnwrapper(){}
|
||||
FaceUnwrapper() = default;
|
||||
FaceUnwrapper(const TopoDS_Face & face);
|
||||
FaceUnwrapper(ColMat<double, 3> xyz_nodes, ColMat<long, 3> tris);
|
||||
void findFlatNodes(int steps, double val);
|
||||
|
||||
@@ -89,7 +89,7 @@ private:
|
||||
Eigen::MatrixXd get_nullspace();
|
||||
|
||||
public:
|
||||
LscmRelax() {}
|
||||
LscmRelax() = default;
|
||||
LscmRelax(
|
||||
RowMat<double, 3> vertices,
|
||||
RowMat<long, 3> triangles,
|
||||
|
||||
@@ -36,7 +36,7 @@ using spMat = Eigen::SparseMatrix<double>;
|
||||
struct NurbsBase2D
|
||||
{
|
||||
//
|
||||
NurbsBase2D(){}
|
||||
NurbsBase2D() = default;
|
||||
NurbsBase2D(Eigen::VectorXd u_knots, Eigen::VectorXd v_knots,
|
||||
Eigen::VectorXd weights,
|
||||
int degree_u=3, int degree_v=3);
|
||||
@@ -81,7 +81,7 @@ struct NurbsBase2D
|
||||
|
||||
struct NurbsBase1D
|
||||
{
|
||||
NurbsBase1D(){}
|
||||
NurbsBase1D() = default;
|
||||
NurbsBase1D(Eigen::VectorXd u_knots, Eigen::VectorXd weights, int degree_u=3);
|
||||
int degree_u;
|
||||
Eigen::VectorXd u_knots;
|
||||
|
||||
@@ -329,9 +329,7 @@ Mesher::Mesher(const TopoDS_Shape& s)
|
||||
{
|
||||
}
|
||||
|
||||
Mesher::~Mesher()
|
||||
{
|
||||
}
|
||||
Mesher::~Mesher() = default;
|
||||
|
||||
Mesh::MeshObject* Mesher::createStandard() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user