From b0cc2cc70e866506e42aa8a638a2dc1850cbc04d Mon Sep 17 00:00:00 2001 From: Charlie Hewitt Date: Fri, 14 Jan 2022 19:36:56 +0000 Subject: [PATCH] Update Zernike.jl (#348) --- src/Geometry/Primitives/Zernike.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Geometry/Primitives/Zernike.jl b/src/Geometry/Primitives/Zernike.jl index b3df4a5d5..542df665c 100644 --- a/src/Geometry/Primitives/Zernike.jl +++ b/src/Geometry/Primitives/Zernike.jl @@ -297,7 +297,7 @@ function AcceleratedParametricSurface(surf::T, numsamples::Int = 17; interface:: end function BoundingBox(surf::ZernikeSurface{T,3,P,Q,M}) where {T<:Real,P,Q,M} - bb = BoundingBox(z.asp) + bb = BoundingBox(surf.asp) # zernike terms have condition than |Zᵢ| <= 1 # so this gives us a (loose) bounding box ak = P > 0 ? sum(abs.(Zernike.normalisation(T, n, m) * k for (n, m, k) in surf.coeffs)) : zero(T)