Skip to content

Commit a127ea9

Browse files
committed
[GB] remove unneed meta call
1 parent d4c7fa9 commit a127ea9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/geometrybasics_api.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function GB.Mesh(df::GT.SignedDistanceField{3,ST,FT},
55

66
h = df.bounds
77
vts, fcs = isosurface(df.data, method, pointtype, facetype, origin=pointtype(GB.origin(h)), widths=pointtype(GB.widths(h)))
8-
return GB.Mesh(GB.meta(vts), fcs)
8+
return GB.Mesh(vts, fcs)
99
end
1010

1111
function GB.Mesh(f::Function,
@@ -17,7 +17,7 @@ function GB.Mesh(f::Function,
1717
vts, fcs = isosurface(f, method, pointtype, facetype; samples=samples,
1818
origin=pointtype(GB.origin(h)), widths=pointtype(GB.widths(h)))
1919

20-
return GB.Mesh(GB.meta(vts), fcs)
20+
return GB.Mesh(vts, fcs)
2121
end
2222

2323
function GB.Mesh(f::Function, h::GB.Rect, method::AbstractMeshingAlgorithm;
@@ -35,5 +35,5 @@ function GB.Mesh(volume::AbstractArray{T, 3},
3535
kwargs...) where {T}
3636

3737
vts, fcs = isosurface(volume, method, pointtype, facetype; kwargs...)
38-
return GB.Mesh(GB.meta(vts), fcs)
38+
return GB.Mesh(vts, fcs)
3939
end

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ end
349349
@testset "GeometryBasics API" begin
350350
@testset "vararg passing" begin
351351
A = rand(20,20,20)
352-
m = GB.mesh(A,MarchingTetrahedra(1.0),origin=Point(Float32(0),Float32(0),Float32(0)),widths=Point(Float32(1),Float32(1),Float32(1)))
352+
m = GB.Mesh(A,MarchingTetrahedra(1.0),origin=Point(Float32(0),Float32(0),Float32(0)),widths=Point(Float32(1),Float32(1),Float32(1)))
353353
@test m isa GB.Mesh
354354
end
355355
end

0 commit comments

Comments
 (0)