Skip to content
Snippets Groups Projects
Commit 28685c8f authored by Tom Fischer's avatar Tom Fischer
Browse files

[MGTL] Reformating.

parent 8e7c8dfb
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment