Selva Compute API Reference - v2.1.0
    Preparing search index...
    Index

    Constructors

    • Parameters

      Returns Cylinder

    • Parameters

      • baseCircle: Circle
      • height: number

      Returns Cylinder

    Properties

    axis: number[]

    Gets the axis direction of the cylinder.

    center: number[]

    Gets the center point of the defining circle.

    height1: number

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

    height2: number

    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.

    isFinite: boolean

    true if the cylinder is finite (Height0 != Height1) false if the cylinder is infinite.

    isValid: boolean

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

    radius: number

    Gets or sets the radius of the cylinder.

    totalHeight: number

    Gets the height of the cylinder. Infinite cylinders have a height of zero, not Double.PositiveInfinity.

    Methods

    • Parameters

      • linearParameter: number

        Height parameter for circle section.

      Returns Circle

      Compute the circle at the given elevation parameter.

    • Parameters

      • capBottom: boolean

        If true, the bottom of the cylinder will be capped.

      • capTop: boolean

        If true, the top of the cylinder will be capped.

      Returns Brep

      A Brep representation of the cylinder or null.

      Constructs a Brep representation of this Cylinder. This is synonymous with calling NurbsSurface.CreateFromCylinder().

    • Returns NurbsSurface

      A Nurbs surface representation of the cylinder or null.

      Constructs a Nurbs surface representation of this cylinder. This is synonymous with calling NurbsSurface.CreateFromCylinder().