Skip to content

Commit 2ae804a

Browse files
committed
Smoother norm
1 parent 5c8ccd8 commit 2ae804a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/filament.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ Compute cross product of 3D vectors in-place.
322322
nothing
323323
end
324324

325-
@inline smooth_norm3(a) = sqrt(a[1]*a[1] + a[2]*a[2] + a[3]*a[3] + 1e-18)
325+
@inline smooth_norm3(a) = sqrt(a[1]*a[1] + a[2]*a[2] + a[3]*a[3] + 1e-12)
326326
@inline dot3(a, b) = a[1]*b[1] + a[2]*b[2] + a[3]*b[3]
327327
@inline function smooth_normalize3!(v)
328328
n = smooth_norm3(v)

0 commit comments

Comments
 (0)