Skip to content

Commit 752cce2

Browse files
committed
boundbox -> boundingbox
1 parent 90a7245 commit 752cce2

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/GeometryBasics.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export min_euclideansq, minmax_dist_dim, minmax_euclidean, minmax_euclideansq
7676
export self_intersections, split_intersections
7777

7878
# bounding boxes
79-
export boundbox
79+
export boundingbox
8080

8181
if Base.VERSION >= v"1.4.2"
8282
include("precompile.jl")

src/boundingboxes.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"""
2-
boundbox(geometry)
2+
boundingbox(geometry)
33
44
Axis-aligned bounding box of the `geometry`.
55
"""
6-
boundbox(geom) = boundbox(coordinates(geom))
6+
boundingbox(geom) = boundingbox(coordinates(geom))
77

88
# fallback implementation treats geometry as
99
# a set of points (i.e. coordinates)
10-
function boundbox(geometry::AbstractArray{<:AbstractPoint{N,T}}) where {N,T}
10+
function boundingbox(geometry::AbstractArray{<:AbstractPoint{N,T}}) where {N,T}
1111
vmin = Point{N,T}(typemax(T))
1212
vmax = Point{N,T}(typemin(T))
1313
for p in geometry
@@ -20,16 +20,16 @@ end
2020
# SPECIAL CASES
2121
# --------------
2222

23-
boundbox(a::Rect) = a
23+
boundingbox(a::Rect) = a
2424

25-
function boundbox(a::Pyramid{T}) where {T}
25+
function boundingbox(a::Pyramid{T}) where {T}
2626
w = a.width / 2
2727
h = a.length
2828
m = a.middle
2929
Rect{3,T}(m - Point{3,T}(w, w, 0), m + Point{3,T}(w, w, h))
3030
end
3131

32-
function boundbox(a::Sphere{T}) where {T}
32+
function boundingbox(a::Sphere{T}) where {T}
3333
mini, maxi = extrema(a)
3434
Rect{3,T}(mini, maxi .- mini)
3535
end

src/interfaces.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ end
151151
function decompose(UVT::Union{UV{T},UVW{T}},
152152
positions::AbstractVector{<:Point}) where {T}
153153
N = length(T)
154-
bb = boundbox(positions) # Make sure we get this as points
154+
bb = boundingbox(positions) # Make sure we get this as points
155155
return map(positions) do p
156156
return (p .- minimum(bb)) ./ widths(bb)
157157
end

test/geometrytypes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ end
8686
@test m isa GLNormalMesh
8787

8888
muv = uv_mesh(s)
89-
@test boundbox(Point.(texturecoordinates(muv))) == Rect(0.0f0, 0.0f0, 0.0f0, 1.0f0, 1.0f0, 1.0f0)
89+
@test boundingbox(Point.(texturecoordinates(muv))) == Rect(0.0f0, 0.0f0, 0.0f0, 1.0f0, 1.0f0, 1.0f0)
9090
end
9191
end
9292

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ end
465465
r3 = Rect3D(0.0, 0.0, 1.0, 1.0, 2.0, 2.0)
466466
@test iterate(texturecoordinates(r3)) == ([0, 0, 0], 2)
467467
uv = decompose_uv(m)
468-
@test boundbox(Point.(uv)) == Rect(0, 0, 0, 1, 1, 1)
468+
@test boundingbox(Point.(uv)) == Rect(0, 0, 0, 1, 1, 1)
469469

470470
points = decompose(Point2f0, Circle(Point2f0(0), 1))
471471
m = GeometryBasics.mesh(points)

0 commit comments

Comments
 (0)