Slab

class Slab : public feasst::Shape

A slab is the intersection of two half spaces.

Public Functions

Slab(const argtype &args = argtype())

Parameters
  • args: dimension : The slab surface is perpendicular to this dimensional axis.

    bound0 : Set a lower or upper value of the slab.

    bound1 : Set the second bound, upper or lower, respectively.

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.