Cylinder

class Cylinder : public feasst::Shape

A cylinder is given by an axis of rotational symmetry and a radius. The axis is described by two points.

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.

Arguments

  • radius: radius of the cylinder.

  • first_point: comma-separated values for the positions in each dimension.

  • second_point: as described for first_point.