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

Cylinder(const argtype &args, const Position point0, const Position point1)

Parameters
  • args: radius : Set the radius of the cylinder.

  • point0: one point on the cylinder’s axis of symmetry

  • point1: a second point on the cylinder’s axis of symmetry

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.