Skip to content

Commit

Permalink
further in-lining for the implicit triangulation
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-tierny committed Sep 21, 2023
1 parent 53e2e58 commit a53067d
Show file tree
Hide file tree
Showing 4 changed files with 1,273 additions and 1,357 deletions.
2 changes: 1 addition & 1 deletion core/base/connectedComponents/ConnectedComponents.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace ttk {
TID id = seed;

float size = 0;
float x, y, z;
float x = 0, y = 0, z = 0;
float center[3] = {0, 0, 0};

while(!stack.empty()) {
Expand Down
2 changes: 1 addition & 1 deletion core/base/fiberSurface/FiberSurface.h
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ inline int ttk::FiberSurface::computeCase0(
Geometry::computeBarycentricCoordinates(
p0.data(), p1.data(), p.data(), baryCentrics, 2);

float pA[3], pB[3];
float pA[3] = {0, 0, 0}, pB[3] = {0, 0, 0};
if(triangulation) {
triangulation->getVertexPoint(vertexId0, pA[0], pA[1], pA[2]);
triangulation->getVertexPoint(vertexId1, pB[0], pB[1], pB[2]);
Expand Down
Loading

0 comments on commit a53067d

Please sign in to comment.