Class representing a 3d ellipse arc defined by center, normal, majorAxis, majorAxisRadius, minorAxisRadius, startAngle, and endAngle.

  • The majorAxis vector represents half the major axis of the ellipse (that is, from the center point to the start point of the ellipse) and is the zero angle for startAngle and endAngle.
  • Positive angles are counter-clockwise when looking down the normal vector (that is, right-hand rule). A startAngle of 0 and endAngle of 2pi will produce a closed Ellipse.
  • If startAngle is equal to 0 and endAngle is equal to 2 * Math.PI, it represents a full 3d ellipse.

Hierarchy

  • AcGeCurve3d
    • AcGeEllipseArc3d

Constructors

  • Construct an instance of the ellipse arc.

    Parameters

    • center: AcGeVectorLike

      Center point of the ellipse.

    • normal: AcGeVector3dLike

      Normal vector defining the plane of the ellipse

    • majorAxis: AcGeVector3dLike

      Major axis vector (in WCS coordinates) of the ellipse.

    • majorAxisRadius: number

      Major axis radius of the ellipse.

    • minorAxisRadius: number

      Minor axis radius of the ellipse.

    • startAngle: number = 0

      Start angle of the ellipse arc in radians.

    • endAngle: number = TAU

      End angle of the ellipse arc in radians.

    Returns AcGeEllipseArc3d

Properties

_boundingBoxNeedsUpdate: boolean = false

Accessors

  • get boundingBoxNeedUpdate(): boolean
  • When this is set, it calculates the bounding box of this shape and resets this property to false. Default is false.

    Returns boolean

  • get box(): AcGeBox3d
  • The bounding box of this shape. Because it is a time-consuming operation to calculate the bounding box of one shape, the bounding box value is cached. It will be calculated again lazily once there are any changes to properties of this shape.

    Returns AcGeBox3d

  • get closed(): boolean
  • Return true if its start point is identical to its end point. Otherwise, return false.

    Returns boolean

  • get isCircular(): boolean
  • Check if this ellipse arc is actually a circular arc (major and minor radii are equal)

    Returns boolean

    True if the ellipse arc is circular

  • get isLargeArc(): 0 | 1
  • Return true if the arc is a large arc whose delta angle value is greater than PI.

    Returns 0 | 1

Methods

  • Compute the bounding box of the 3D ellipse arc. The bounding box is defined by its minimum and maximum x, y, and z coordinates.

    Returns AcGeBox3d

    Return bounding box containing the min and max coordinates

  • Calculate a point on the ellipse at a given angle.

    Parameters

    • angle: number

      Input the angle in radians where the point is to be calculated.

    Returns AcGePoint3d

    Return the 3d coordinates of the point on the ellipse.