We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
extremum
Polygon
1 parent 3436c02 commit ce2e2eaCopy full SHA for ce2e2ea
1 file changed
src/ConstructiveSolidGeometry/SurfacePrimitives/Polygon.jl
@@ -55,7 +55,8 @@ function sample(p::Polygon{N,T}, spacing::T)::Vector{CartesianPoint{T}} where {N
55
end
56
57
function extremum(p::Polygon{N,T})::T where {N,T}
58
- c = sum(p.points)/N
+ c = cartesian_zero + mean(reinterpret(CartesianVector{T}, p.points))
59
+ # c = mean(p.points)
60
m = maximum([norm(point - c) for point in p.points])
61
62
0 commit comments