From 28685c8ff4997e4317e3fa6e678ad036d20c7781 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Mon, 12 Oct 2015 07:32:30 +0200 Subject: [PATCH] [MGTL] Reformating. --- MeshGeoToolsLib/GeoMapper.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MeshGeoToolsLib/GeoMapper.cpp b/MeshGeoToolsLib/GeoMapper.cpp index a4553e7ec40..56d38473223 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) { -- GitLab