Skip to content

Commit 1b2d4d5

Browse files
committed
enforce geometrybasics points
1 parent 4036e52 commit 1b2d4d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/distmeshnd.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ function distmesh(fdist::Function,
2424
fix=nothing,
2525
stats=false) where {VertType}
2626
# TODO: tetgen only handles Float64
27+
VT = GeometryBasics.Point{3,Float64}
2728
if isa(fix, Nothing)
28-
VT = promote_type(typeof(origin), typeof(widths))
2929
fp = nothing
3030
else
31-
VT = promote_type(typeof(origin), typeof(widths), eltype(fix))
3231
fp = convert(Vector{VT}, fix)
3332
end
3433
o = VT(origin...)

0 commit comments

Comments
 (0)