Commit f8d8f7a8 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Set constant parameter to const.

parent 1a1b52cb
......@@ -172,12 +172,10 @@ circumCenterMean(const vec3 &v0, const vec3 &v1, const vec3 &v2)
{
/*
v0, v1, v2: the coordinates of the three triangle vertices (unit vectors) in
counter clockwise order center: the coordinates of the circumcenter unless
co-linear
counter clockwise order center: the coordinates of the circumcenter unless co-linear
*/
// cu0, cu1, cu2: vector product of center: e1 x e2
vec3 e1, e2; // edges of the underlying planar triangle: v1-v0 ands v2-v0,
// respectively
vec3 e1, e2; // edges of the underlying planar triangle: v1-v0 ands v2-v0, respectively
e1 = subVector(v1, v0);
e2 = subVector(v2, v0);
......@@ -224,7 +222,7 @@ genIcosphereCoords(int subdivisions, bool lbounds, std::vector<double> &xvals, s
}
size_t i = 0;
for (Triangle &t : triangles)
for (const Triangle &t : triangles)
{
vec3 center = circumCenterMean(vertices[t[0]], vertices[t[1]], vertices[t[2]]);
cc2gc(&center[0], &xvals[i], &yvals[i]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment