Skip to content

Commit

Permalink
const and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and wonder-sk committed Apr 1, 2021
1 parent b90bbc9 commit 3b3ca8d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/3d/mesh/qgsmesh3dgeometry_p.cpp
Expand Up @@ -40,7 +40,7 @@ static QByteArray createTerrainVertexData(
{
const int nVerts = mesh.vertices().count();

QVector<QVector3D> normals = mesh.vertexNormals( vertScale );
const QVector<QVector3D> normals = mesh.vertexNormals( vertScale );

// Populate a buffer with the interleaved per-vertex data with
// vec3 pos, vec3 normal
Expand Down Expand Up @@ -79,14 +79,14 @@ static QByteArray createDatasetVertexData(
{
const int nVerts = mesh.vertices().count();

QVector<double> verticalMagnitude =
const QVector<double> verticalMagnitude =
QgsMeshLayerUtils::calculateMagnitudeOnVertices( nativeMesh, data.verticalGroupMetadata, data.verticalData, data.activeFaceFlagValues );

QVector<double> scalarMagnitude =
const QVector<double> scalarMagnitude =
QgsMeshLayerUtils::calculateMagnitudeOnVertices( nativeMesh, data.scalarGroupMetadata, data.scalarData, data.activeFaceFlagValues );

//Calculate normales with Z value equal to verticaleMagnitude
QVector<QVector3D> normals = QgsMeshLayerUtils::calculateNormals( mesh, verticalMagnitude, data.isVerticalMagnitudeRelative );
const QVector<QVector3D> normals = QgsMeshLayerUtils::calculateNormals( mesh, verticalMagnitude, data.isVerticalMagnitudeRelative );

// Populate a buffer with the interleaved per-vertex data with
// vec3 pos, vec3 normal, float magnitude
Expand Down Expand Up @@ -146,7 +146,7 @@ static QByteArray createDatasetIndexData( const QgsTriangularMesh &mesh, QgsMesh
{
int activeFaceCount = 0;

// First we nned to know about the cunt of active faces
// First we need to know about the count of active faces
if ( mActiveFaceFlagValues.active().isEmpty() )
activeFaceCount = mesh.triangles().count();
else
Expand Down

0 comments on commit 3b3ca8d

Please sign in to comment.