Cylinder

Cylinder

Cylinder

Constructor

new Cylinder(baseCircle)

Constructs a new cylinder with infinite height.
Parameters:
Name Type Description
baseCircle Circle Base circle for infinite cylinder.

Members

axis :Array.<x, y, z>

Gets the axis direction of the cylinder.
Type:
  • Array.<x, y, z>

center :Array.<x, y, z>

Gets the center point of the defining circle.
Type:
  • Array.<x, y, z>

height1 :double

Gets or sets the start height of the cylinder. The center of bottom cap is: BasePlane.Origin + Height1 * BasePlane.ZAxis.
Type:
  • double

height2 :double

Gets or sets the end height of the cylinder. If the end height equals the start height, the cylinder is presumed to be infinite. The center of top cap is: BasePlane.Origin + Height2 * BasePlane.ZAxis.
Type:
  • double

isFinite :bool

true if the cylinder is finite (Height0 != Height1) false if the cylinder is infinite.
Type:
  • bool

isValid :bool

Gets a boolean value indicating whether this cylinder is valid. A valid cylinder is represented by a valid circle and two valid heights.
Type:
  • bool

radius :double

Gets or sets the radius of the cylinder.
Type:
  • double

totalHeight :double

Gets the height of the cylinder. Infinite cylinders have a height of zero, not Double.PositiveInfinity.
Type:
  • double

Methods

circleAt(linearParameter)

Compute the circle at the given elevation parameter.
Parameters:
Name Type Description
linearParameter double Height parameter for circle section.

toBrep(capBottom, capTop) → {Brep}

Constructs a Brep representation of this Cylinder. This is synonymous with calling NurbsSurface.CreateFromCylinder().
Parameters:
Name Type Description
capBottom bool If true, the bottom of the cylinder will be capped.
capTop bool If true, the top of the cylinder will be capped.
Returns:
A Brep representation of the cylinder or null.
Type
Brep

toNurbsSurface() → {NurbsSurface}

Constructs a Nurbs surface representation of this cylinder. This is synonymous with calling NurbsSurface.CreateFromCylinder().
Returns:
A Nurbs surface representation of the cylinder or null.
Type
NurbsSurface