More explicit constructors
This commit is contained in:
@@ -88,7 +88,7 @@ class ModAspectRatioT: public ModBaseT<MeshT> {
|
|||||||
typedef typename Mesh::Point Point;
|
typedef typename Mesh::Point Point;
|
||||||
|
|
||||||
/// constructor
|
/// constructor
|
||||||
ModAspectRatioT(MeshT& _mesh, float _min_aspect = 5.0, bool _is_binary =
|
explicit ModAspectRatioT(MeshT& _mesh, float _min_aspect = 5.0, bool _is_binary =
|
||||||
true) :
|
true) :
|
||||||
Base(_mesh, _is_binary), mesh_(Base::mesh()), min_aspect_(
|
Base(_mesh, _is_binary), mesh_(Base::mesh()), min_aspect_(
|
||||||
1.f / _min_aspect) {
|
1.f / _min_aspect) {
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ class ModEdgeLengthT: public ModBaseT<MeshT> {
|
|||||||
;
|
;
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
ModEdgeLengthT(MeshT& _mesh, float _edge_length = FLT_MAX,
|
explicit ModEdgeLengthT(MeshT& _mesh, float _edge_length = FLT_MAX,
|
||||||
bool _is_binary = true);
|
bool _is_binary = true);
|
||||||
|
|
||||||
/// get edge_length
|
/// get edge_length
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ class ModHausdorffT: public ModBaseT<MeshT> {
|
|||||||
typedef std::vector<Point> Points;
|
typedef std::vector<Point> Points;
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
ModHausdorffT(MeshT& _mesh, Scalar _error_tolerance = FLT_MAX) :
|
explicit ModHausdorffT(MeshT& _mesh, Scalar _error_tolerance = FLT_MAX) :
|
||||||
Base(_mesh, true), mesh_(Base::mesh()), tolerance_(_error_tolerance) {
|
Base(_mesh, true), mesh_(Base::mesh()), tolerance_(_error_tolerance) {
|
||||||
mesh_.add_property(points_);
|
mesh_.add_property(points_);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user