A few consistency tweaks
This commit is contained in:
parent
ac3fb84055
commit
c92b933254
@ -127,7 +127,7 @@ namespace PolyVox
|
|||||||
matrix[rows][1] = normal.getY();
|
matrix[rows][1] = normal.getY();
|
||||||
matrix[rows][2] = normal.getZ();
|
matrix[rows][2] = normal.getZ();
|
||||||
|
|
||||||
Vector3DFloat p = vertices[i] - massPoint;
|
const Vector3DFloat p = vertices[i] - massPoint;
|
||||||
const Vector3DFloat product = normal * p;
|
const Vector3DFloat product = normal * p;
|
||||||
|
|
||||||
vector[rows] = product.getX() + product.getY() + product.getZ();
|
vector[rows] = product.getX() + product.getY() + product.getZ();
|
||||||
@ -137,7 +137,7 @@ namespace PolyVox
|
|||||||
++rows;
|
++rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto vertexPosition = evaluateQEF(matrix, vector, rows) + massPoint;
|
const auto& vertexPosition = evaluateQEF(matrix, vector, rows) + massPoint;
|
||||||
|
|
||||||
if(cellVertexNormal.lengthSquared() > 0.000001f)
|
if(cellVertexNormal.lengthSquared() > 0.000001f)
|
||||||
{
|
{
|
||||||
|
@ -35,7 +35,7 @@ Vector3DFloat evaluateQEF(
|
|||||||
double x[3];
|
double x[3];
|
||||||
solveSVD(u, v, d, vec, x, rows);
|
solveSVD(u, v, d, vec, x, rows);
|
||||||
|
|
||||||
return Vector3DFloat((float)x[0], (float)x[1], (float)x[2]);
|
return {(float)x[0], (float)x[1], (float)x[2]};
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user