Skip to content

Commit fe80737

Browse files
committed
remove unbound typevars
1 parent 6d56229 commit fe80737

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/meshes.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ end
206206
Calculate the signed volume of one tetrahedron. Be sure the orientation of your
207207
surface is right.
208208
"""
209-
function volume(triangle::Triangle) where {VT,FT}
209+
function volume(triangle::Triangle)
210210
v1, v2, v3 = triangle
211211
sig = sign(orthogonal_vector(v1, v2, v3) v1)
212212
return sig * abs(v1 (v2 × v3)) / 6
@@ -218,7 +218,7 @@ end
218218
Calculate the signed volume of all tetrahedra. Be sure the orientation of your
219219
surface is right.
220220
"""
221-
function volume(mesh::Mesh) where {VT,FT}
221+
function volume(mesh::Mesh)
222222
return sum(volume, mesh)
223223
end
224224

src/primitives/rectangles.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ Base.isequal(b1::Rect, b2::Rect) = b1 == b2
512512

513513
centered(R::Type{Rect{N,T}}) where {N,T} = R(Vec{N,T}(-0.5), Vec{N,T}(1))
514514
centered(R::Type{Rect{N}}) where {N} = R(Vec{N,Float32}(-0.5), Vec{N,Float32}(1))
515-
centered(R::Type{Rect}) where {N} = R(Vec{2,Float32}(-0.5), Vec{2,Float32}(1))
515+
centered(R::Type{Rect}) = R(Vec{2,Float32}(-0.5), Vec{2,Float32}(1))
516516

517517
##
518518
# Rect2 decomposition

0 commit comments

Comments
 (0)