The class represeting both full circles and circular arcs in 3d space. The ellipse arc is defined by a center point, radius, start angle, end angle, a normal vector, and a reference vector. If start angle is equal to 0 and end angle is equal to 2 * Math.PI, it represents a full circle.

Hierarchy

  • AcGeCurve3d
    • AcGeCircArc3d

Constructors

  • Create a 3d circular arc.

    Parameters

    • center: AcGeVectorLike

      The center point of the arc.

    • radius: number

      The radius of the arc.

    • startAngle: number

      The start angle of the arc.

    • endAngle: number

      The end angle of the arc.

    • normal: AcGeVector3dLike

      The normal vector of the plane in which the arc lies.

    • OptionalrefVec: AcGeVector3dLike

      The reference vector from which angles are measured. Default value is x axis.

    Returns AcGeCircArc3d

Properties

_boundingBoxNeedsUpdate: boolean

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 center(): AcGePoint3d
  • Center of circular arc

    Returns AcGePoint3d

  • set center(value: AcGeVectorLike): void
  • Parameters

    Returns void

  • get clockwise(): boolean
  • Return true if the arc is clockwise from startAngle to endAngle

    Returns boolean

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

    Returns boolean

  • get deltaAngle(): number
  • Return angle between endAngle and startAngle in range 0 to 2*PI

    Returns number

  • get endAngle(): number
  • End angle in radians of circular arc in the range 0 to 2 * PI.

    Returns number

  • set endAngle(value: number): void
  • Parameters

    • value: number

    Returns void

  • get endPoint(): AcGePoint3d
  • The end point of circular arc

    Returns AcGePoint3d

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

    Returns 0 | 1

  • get length(): number
  • Returns number

  • get normal(): AcGeVector3d
  • Normal vector defining the plane of the circular arc

    Returns AcGeVector3d

  • set normal(value: AcGeVector3dLike): void
  • Parameters

    Returns void

  • get plane(): AcGePlane
  • Return the plane in which the circular arc lies.

    Returns AcGePlane

  • get radius(): number
  • Radius of circular arc

    Returns number

  • set radius(value: number): void
  • Parameters

    • value: number

    Returns void

  • get refVec(): AcGeVector3d
  • The unit reference vector of circular arc

    Returns AcGeVector3d

  • set refVec(value: AcGeVector3dLike): void
  • Parameters

    Returns void

  • get startAngle(): number
  • Start angle in radians of circular arc in the range 0 to 2 * PI.

    Returns number

  • set startAngle(value: number): void
  • Parameters

    • value: number

    Returns void

  • get startPoint(): AcGePoint3d
  • The start point of circular arc

    Returns AcGePoint3d

Methods

  • Returns AcGeBox3d

  • Parameters

    Returns this

  • Calculate angle between the specified vec and the reference vector of this arc.

    Parameters

    Returns number

    Return angle between the specified vec and the reference vector of this arc.

  • Returns the point on the arc at a specific angle.

    Parameters

    • angle: number

      The angle at which to get the point.

    Returns AcGePoint3d

  • Divide this arc into the specified nubmer of points those points as an array of points.

    Parameters

    • numPoints: number

      Input the nubmer of points returned

    Returns AcGePoint3d[]

    Return an array of point

  • Parameters

    Returns this

  • Return new shape translated by given vector. Translation vector may be also defined by a pair of numbers.

    Parameters

    Returns AcGeShape3d