JuliaGeometry / GeometryTypes.jl

Geometry types for Julia
Other
67 stars 41 forks source link

Pyramid is really a Square Pyramid #30

Open sjkelly opened 8 years ago

sjkelly commented 8 years ago

The naming nitpicking continues. I was sitting in a lecture on tetrahedral packing today and learned a pyramid can actually have an arbitrary polygonal base. See: https://en.wikipedia.org/wiki/Pyramid_%28geometry%29

SimonDanisch commented 8 years ago

Interesting! So should we let the pyramid have a field base which can take the value of a polygon or rectangle?

loicspace commented 7 years ago

That would be cool, as far as my selfish needs are concerned, the simple ability to define the base with length and width rather than width only (square -> rectangle) would be sweet. Also, it could also be extended to a cone primitive (cylinder and cone workaround in #71) -- a pyramid with a circular base (or a pyramid is a cone with a polygon base, whichever way one might prefer)