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

    Constructors

    • Parameters

      • circle: Circle
      • angleRadians: number

      Returns Arc

    • Parameters

      • center: number[]
      • radius: number
      • angleRadians: number

      Returns Arc

    Properties

    angleDegrees: number

    Gets or sets the sweep -or subtended- angle (in Degrees) for this arc segment.

    angleDomain: number[]

    Gets or sets the angle domain (in Radians) of this arc.

    angleRadians: number

    Gets or sets the sweep -or subtended- angle (in Radians) for this arc segment.

    center: number[]

    Gets or sets the center point for this arc.

    circumference: number

    Gets the circumference of the circle that is coincident with this arc.

    diameter: number

    Gets or sets the Diameter of this arc.

    endAngle: number

    Gets or sets the end angle (in Radians) for this arc segment.

    endAngleDegrees: number

    Gets or sets the end angle (in Degrees) for this arc segment.

    endPoint: number[]

    Gets the end point of the arc.

    isCircle: boolean

    Gets a value indicating whether or not this arc is a complete circle.

    isValid: boolean

    Gets a value indicating whether or not this arc is valid. Detail: Radius>0 and 0<AngleRadians()<=2*Math.Pi.

    length: number

    Gets the length of the arc. (Length = Radius * (subtended angle in radians)).

    midPoint: number[]

    Gets the mid-point of the arc.

    plane: Plane

    Gets or sets the plane in which this arc lies.

    radius: number

    Gets or sets the radius of this arc.

    startAngle: number

    Gets or sets the start angle (in Radians) for this arc segment.

    startAngleDegrees: number

    Gets or sets the start angle (in Degrees) for this arc segment.

    startPoint: number[]

    Gets the start point of the arc.

    Methods

    • Returns BoundingBox

      Bounding box of arc.

      Computes the 3D axis aligned bounding box for this arc.

    • Parameters

      • testPoint: number[]

        Point to get close to.

      Returns number

      Parameter (in radians) of the point on the arc that is closest to the test point. If testPoint is the center of the arc, then the starting point of the arc is (arc.Domain()[0]) returned. If no parameter could be found, RhinoMath.UnsetValue is returned.

      Gets parameter on the arc closest to a test point.

    • Parameters

      • testPoint: number[]

        Point to get close to.

      Returns number[]

      The point on the arc that is closest to testPoint. If testPoint is the center of the arc, then the starting point of the arc is returned. UnsetPoint on failure.

      Computes the point on an arc that is closest to a test point.

    • Parameters

      • t: number

        Arc parameter to evaluate.

      Returns number[]

      The point at the given parameter.

      Gets the point at the given arc parameter.

    • Returns void

      Reverses the orientation of the arc. Changes the domain from [a,b] to [-b,-a].

    • Parameters

      • t: number

        Parameter of tangent to evaluate.

      Returns number[]

      The tangent at the arc at the given parameter.

      Gets the tangent at the given parameter.

    • Returns NurbsCurve

      A nurbs curve representation of this arc or null if no such representation could be made.

      Initializes a nurbs curve representation of this arc. This amounts to the same as calling NurbsCurve.CreateFromArc().

    • Parameters

      • xform: Transform

        Transformations to apply. Note that arcs cannot handle non-euclidean transformations.

      Returns boolean

      true on success, false on failure.

      Transforms the arc using a Transformation matrix.

    • Parameters

      • domain: number[]

        0 < domain[1] - domain[0] <= 2.0 * RhinoMath.Pi.

      Returns boolean

      true on success, false on failure.

      Sets arc's angle domain (in Radians) as a sub-domain of the circle.

    • Parameters

      • startPoint: number[]

        Start point of arc.

      • pointOnInterior: number[]

        Point on arc interior.

      • endPoint: number[]

        End point of arc.

      Returns Arc

      Initializes a new arc through three points. If the points are coincident or co-linear, this will result in an Invalid arc.