Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Commit

Permalink
Update Zernike.jl (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
friggog authored Jan 14, 2022
1 parent 05d4200 commit b0cc2cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Geometry/Primitives/Zernike.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b0cc2cc

Please sign in to comment.