Cuboid

class Cuboid : public feasst::Shape

A cuboid is given by a center point and side lengths in each dimension. Not fully implemented. Implement as the intersection of 3 perpendicular slabs

Public Functions

double nearest_distance(const Position &point) const

Return the distance from the point to the nearest point on the surface. The distance is negative if the point is inside of the shape and positive if it is outside.

double surface_area() const

Return the surface area (if implemented).

double volume() const

Return the volume (if implemented).

Arguments

  • cubic_side_length: side length of cube.

  • side_lengths: comma-separated values for the length in each dimension. Cannot be used in conjunction with cubic_side_length.

  • center: comma-separated values for the positions in each dimension. (default: origin).