Skip to content

Commit 3904d85

Browse files
committed
format
1 parent c727f3f commit 3904d85

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mesh/src/main/java/mesh/modifier/deform/SmoothModifier.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ private Vector3f getSmoothedVertex(Vector3f v, List<Integer> neighbors) {
3535
for (Integer index : neighbors) {
3636
Vector3f neighbor = mesh.getVertexAt(index);
3737
float distance = v.distance(neighbor);
38-
// float weight = 1.0f / (distance + 1e-6f); // Avoid division by zero
38+
// float weight = 1.0f / (distance + 1e-6f); // Avoid division by zero
3939
float weight = 1;
4040
smoothed.addLocal(neighbor.mult(weight));
4141
totalWeight += weight;
4242
}
4343

4444
smoothed.divideLocal(totalWeight);
45-
// return smoothed.lerpLocal(v, 1.0f - factor);
45+
// return smoothed.lerpLocal(v, 1.0f - factor);
4646
return smoothed.mult(factor).add(v.mult(1f - factor));
4747
}
4848

0 commit comments

Comments
 (0)