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_length: set the unique key for the side_length positions. Thus, arguments of “key[i]” are expected to follow. The “[i]” is to be substituted for integer dimensions 0, 1, 2, … The “[i]” are also expected to be in order, starting from 0. Cannot be used in conjunction with cubic_side_length.
center: set the unique key for the center positions. Thus, arguments of “key[i]” are expected to follow. The “[i]” is to be substituted for integer dimensions 0, 1, 2, … The default value is 0 up to the same dimensions as (cubic_)side_length.
-
double nearest_distance(const Position &point) const