diff --git a/MeshGeoToolsLib/GeoMapper.cpp b/MeshGeoToolsLib/GeoMapper.cpp index a4553e7ec40ff10696ace5f6a9dfa00de0f99b10..56d384732232832f204d1feb37d1a08952caa5cf 100644 --- a/MeshGeoToolsLib/GeoMapper.cpp +++ b/MeshGeoToolsLib/GeoMapper.cpp @@ -214,12 +214,12 @@ std::unique_ptr<std::vector<GeoLib::Polyline*>> copyPolylinesVector( void GeoMapper::advancedMapOnMesh( MeshLib::Mesh const* mesh, std::string const& new_geo_name) { - const std::vector<GeoLib::Point*> *points (this->_geo_objects.getPointVec(this->_geo_name)); - const std::vector<GeoLib::Polyline*> *org_lines (this->_geo_objects.getPolylineVec(this->_geo_name)); + const std::vector<GeoLib::Point*> *points(_geo_objects.getPointVec(_geo_name)); + const std::vector<GeoLib::Polyline*> *org_lines(_geo_objects.getPolylineVec(_geo_name)); const GeoLib::AABB aabb(points->begin(), points->end()); const double eps = sqrt(std::numeric_limits<float>::epsilon()) * - sqrt( MathLib::sqrDist(aabb.getMinPoint(),aabb.getMaxPoint())) ; + sqrt(MathLib::sqrDist(aabb.getMinPoint(),aabb.getMaxPoint())) ; // copy geometry (and set z=0 for all points) auto new_points = std::unique_ptr<std::vector<GeoLib::Point*>>( @@ -232,7 +232,7 @@ void GeoMapper::advancedMapOnMesh( *_geo_objects.getPolylineVec(this->_geo_name), *new_points); GeoLib::Grid<GeoLib::Point> grid(new_points->begin(), new_points->end()); - double max_segment_length (this->getMaxSegmentLength(*new_lines)); + double max_segment_length(getMaxSegmentLength(*new_lines)); // squared so it can be compared to the squared distances calculated later max_segment_length *= max_segment_length; @@ -253,7 +253,7 @@ void GeoMapper::advancedMapOnMesh( } // store for each point the line segment to which it was added. - const std::size_t nLines (new_lines->size()); + const std::size_t nLines(new_lines->size()); std::vector< std::vector<unsigned> > line_segment_map(nLines); for (std::size_t i=0; i<nLines; ++i) {