Skip to content

Commit 99abd3a

Browse files
committed
Fixed codacy issues
1 parent e8fde6c commit 99abd3a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/Tesselator/ShapeTesselator.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -325,21 +325,18 @@ std::vector<float> ShapeTesselator::GetVerticesPositionAsTuple()
325325
std::vector<float> vertices_position;
326326
vertices_position.reserve(tot_triangle_count);
327327
// loop over tertices
328-
int pID = 0;
329-
int qID = 0;
330-
int rID = 0;
331328
for (int i=0;i<tot_triangle_count;i++) {
332-
pID = locTriIndices[(i * 3) + 0] * 3;
329+
int pID = locTriIndices[(i * 3) + 0] * 3;
333330
vertices_position.push_back(locVertexcoord[pID]);
334331
vertices_position.push_back(locVertexcoord[pID+1]);
335332
vertices_position.push_back(locVertexcoord[pID+2]);
336333
// Second vertex
337-
qID = locTriIndices[(i * 3) + 1] * 3;
334+
int qID = locTriIndices[(i * 3) + 1] * 3;
338335
vertices_position.push_back(locVertexcoord[qID]);
339336
vertices_position.push_back(locVertexcoord[qID+1]);
340337
vertices_position.push_back(locVertexcoord[qID+2]);
341338
// Third vertex
342-
rID = locTriIndices[(i * 3) + 2] * 3;
339+
int rID = locTriIndices[(i * 3) + 2] * 3;
343340
vertices_position.push_back(locVertexcoord[rID]);
344341
vertices_position.push_back(locVertexcoord[rID+1]);
345342
vertices_position.push_back(locVertexcoord[rID+2]);
@@ -670,7 +667,7 @@ void ShapeTesselator::JoinPrimitives()
670667
tot_normal_count = tot_normal_count + myface->number_of_normals;
671668
tot_invalid_normal_count = tot_invalid_normal_count + myface->number_of_invalid_normals;
672669

673-
anIterator++;
670+
++anIterator;
674671
}
675672

676673
locTriIndices= new Standard_Integer[tot_triangle_count * 3 ];

0 commit comments

Comments
 (0)