Skip to main content

rhomboid

Function rhomboid 

Source
pub fn rhomboid<T: Number>(
    a: Vector3<T>,
    b: Vector3<T>,
    c: Vector3<T>,
) -> Csg<T>
Expand description

Create a parallelepiped (rhomboid) centered at the origin, defined by three edge vectors.

This is the 3D analog of a parallelogram — a box with potentially non-orthogonal faces. For an axis-aligned box, use [cuboid] instead.

The three vectors define the edges meeting at one corner. The shape is centered at the origin, so it extends from -(a+b+c)/2 to +(a+b+c)/2.