JuliaGeometry / GeometryTypes.jl

Geometry types for Julia
Other
67 stars 41 forks source link

Parallelepiped? #157

Open wsrinin opened 5 years ago

wsrinin commented 5 years ago

Hi,

Is there a way to create parallelepiped aside from define vertices individually? I would like to use it to define my simulation box.

Best

rdeits commented 5 years ago

Is your parallelpiped rectangular? If so, I think the HyperRectangle type should just work. If not, perhaps you could store a HyperRectangle and a transformation function, perhaps using CoordinateTransformations.jl ?