Brep trim information is stored in BrepTrim classes. Brep.Trims is an array of all the trims in the brep. A BrepTrim is derived from CurveProxy so the trim can supply easy to use evaluation tools via the Curve virtual member functions. Note well that the domains and orientations of the curve m_C2[trim.m_c2i] and the trim as a curve may not agree.

Hierarchy (view full)

Constructors

Properties

degree: number

Gets the maximum algebraic degree of any span or a good estimate if curve spans are not algebraic.

dimension: number

Gets the dimension of the object.

The dimension is typically three. For parameter space trimming curves the dimension is two. In rare cases the dimension can be one or greater than three.

domain: Interval

Gets or sets the domain of the curve.

edge: BrepEdge

Brep edge this trim belongs to. This will be null for singular trims

endVertex: BrepVertex

BrepVertex at end of trim

face: BrepFace

Brep face this trim belongs to

hasBrepForm: boolean

Returns true if the Brep.TryConvertBrep function will be successful for this object

hasUserData: boolean

Gets true if this class has any custom information attached to it through UserData.

isClosed: boolean

Gets a value indicating whether or not this curve is a closed curve.

isDeformable: boolean

true if object can be accurately modified with "squishy" transformations like projections, shears, and non-uniform scaling.

isoStatus: IsoStatus
isPeriodic: boolean

Gets a value indicating whether or not this curve is considered to be Periodic.

isValid: boolean

Tests an object to see if it is valid.

loop: BrepLoop

Loop that this trim belongs to

objectType: ObjectType

Useful for switch statements that need to differentiate between basic object types like points, curves, surfaces, and so on.

pointAtEnd: Point3d

Evaluates point at the end of the curve.

pointAtStart: Point3d

Evaluates point at the start of the curve.

proxyCurveIsReversed: boolean

True if "this" is a curve is reversed from the "real" curve geometry

spanCount: number

Gets the number of non-empty smooth (c-infinity) spans in the curve.

startVertex: BrepVertex

BrepVertex at start of trim

tangentAtEnd: Vector3d

Evaluate unit tangent vector at the end of the curve.

No error handling.

Unit tangent vector of the curve at the end point.

tangentAtStart: Vector3d

Evaluates the unit tangent vector at the start of the curve.

No error handling.

Unit tangent vector of the curve at the start point.

trimCurveIndex: number

Gets the Brep.Curves2D 2d curve index of the 2d curve geometry used by this trim, or -1.

trimIndex: number

Gets the index of this trim in the Brep.Trims collection.

trimType: BrepTrimType

Type of trim

userStringCount: number

Gets the amount of user strings.

Methods

  • If this curve is closed, then modify it so that the start/end point is at curve parameter t.

    Parameters

    • t: number

      Curve parameter of new start/end point. The returned curves domain will start at t.

    Returns boolean

    true on success, false on failure.

  • Changes the dimension of a curve.

    Parameters

    • desiredDimension: number

      The desired dimension.

    Returns boolean

    true if the curve's dimension was already desiredDimension or if the curve's dimension was successfully changed to desiredDimension; otherwise false.

  • Determines the orientation (counterclockwise or clockwise) of a closed, planar curve. Only works with simple (no self intersections) closed, planar curves.

    Parameters

    • xform: Transform

      Transformation to map the curve to the world XY plane.

    Returns CurveOrientation

    The orientation of this curve in the world XY-plane.

  • Determines the orientation (counterclockwise or clockwise) of a closed, planar curve in the world XY plane. Only works with simple (no self intersections) closed, planar curves.

    Returns CurveOrientation

    The orientation of this curve with respect to world XY plane.

  • Determines the orientation (counterclockwise or clockwise) of a closed, planar curve in a given plane. Only works with simple (no self intersections) closed, planar curves.

    Parameters

    • plane: Plane

      The plane in which to solve the orientation.

    Returns CurveOrientation

    The orientation of this curve in the given plane.

  • Determines the orientation (counterclockwise or clockwise) of a closed, planar curve in a given plane. Only works with simple (no self intersections) closed, planar curves.

    Parameters

    • upDirection: Vector3d

      A vector that is considered "up".

    Returns CurveOrientation

    The orientation of this curve with respect to a defined up direction.

  • If this piece of geometry is a component in something larger, like a BrepEdge in a Brep, then this function returns the component index.

    Returns ComponentIndex

    This object's component index. If this object is not a sub-piece of a larger geometric entity, then the returned index has m_type = ComponentIndex.InvalidType and m_index = -1.

  • Evaluate the curvature vector at a curve parameter.

    No error handling.

    Parameters

    • t: number

      Evaluation parameter.

    Returns Vector3d

    Curvature vector of the curve at the parameter t.

  • Returns a CRC calculated from the information that defines the object. This CRC can be used as a quick way to see if two objects are not identical.

    Parameters

    • currentRemainder: number

      The current remainder value.

    Returns number

    CRC of the information the defines the object.

  • Evaluate the derivatives at the specified curve parameter.

    Parameters

    • t: number

      Curve parameter to evaluate.

    • derivativeCount: number

      Number of derivatives to evaluate, must be at least 0.

    • side: CurveEvaluationSide

      Side of parameter to evaluate. If the parameter is at a kink, it makes a big difference whether the evaluation is from below or above.

    Returns Vector3d[]

    An array of vectors that represents all the derivatives starting at zero.

  • Evaluate the derivatives at the specified curve parameter.

    Parameters

    • t: number

      Curve parameter to evaluate.

    • derivativeCount: number

      Number of derivatives to evaluate, must be at least 0.

    Returns Vector3d[]

    An array of vectors that represents all the derivatives starting at zero.

  • Constructs an exact duplicate of this curve.

    Returns Curve

    An exact copy of this curve.

  • This object as a JSON-compatible dict (rhino3dm only; inverse: Decode).

    Returns Record<string, any>

    A dict of numbers and strings: geometry and other objects are stored as their 3dm archive, base64 encoded, with the archive version.

  • Returns a 3d frame at a parameter.

    Parameters

    • t: number

      Evaluation parameter.

    Returns [boolean, Plane]

    true on success, false on failure.

  • Aligned Bounding box solver. Gets the world axis aligned bounding box for the transformed geometry.

    Parameters

    • xform: Transform

      Transformation to apply to object prior to the BoundingBox computation. The geometry itself is not modified.

    Returns BoundingBox

    The accurate bounding box of the transformed geometry in world coordinates or BoundingBox.Empty if not bounding box could be found.

  • Aligned Bounding box solver. Gets the plane aligned bounding box.

    Parameters

    • plane: Plane

      Orientation plane for BoundingBox.

    Returns BoundingBox

    A BoundingBox in plane coordinates.

  • Bounding box solver. Gets the world axis aligned bounding box for the geometry.

    Parameters

    • accurate: boolean

      If true, a physically accurate bounding box will be computed. If not, a bounding box estimate will be computed. For some geometry types there is no difference between the estimate and the accurate bounding box. Estimated bounding boxes can be computed much (much) faster than accurate (or "tight") bounding boxes. Estimated bounding boxes are always similar to or larger than accurate bounding boxes.

    Returns BoundingBox

    The bounding box of the geometry in world coordinates or BoundingBox.Empty if not bounding box could be found.

  • Convert a NURBS curve parameter to a curve parameter.

    If HasNurbForm returns 2, this function converts the curve parameter to the NURBS curve parameter.

    Parameters

    • nurbsParameter: number

      NURBS form parameter.

    Returns [boolean, number]

    true on success, false on failure.

  • Searches for a derivative, tangent, or curvature discontinuity.

    Parameters

    • continuityType: Continuity

      Type of continuity to search for.

    • t0: number

      Search begins at t0. If there is a discontinuity at t0, it will be ignored. This makes it possible to repeatedly call GetNextDiscontinuity() and step through the discontinuities.

    • t1: number

      (t0 != t1) If there is a discontinuity at t1 it will be ignored unless continuityType is a locus discontinuity type and t1 is at the start or end of the curve.

    • cosAngleTolerance: number

      default = cos(1 degree) Used only when continuity is G1_continuous or G2_continuous. If the cosine of the angle between two tangent vectors is <= cosAngleTolerance, then a G1 discontinuity is reported. For G2, values tighter than cos(1 degree) are treated as cos(1 degree), and angles less than about 18 degrees are doubled for the curvature direction test. With the default, a G2 discontinuity is reported if the curvature vectors differ by more than 2 degrees.

    • curvatureTolerance: number

      (default = RhinoMath.SqrtEpsilon) Used only when continuity is G2_continuous. If K0 and K1 are curvatures evaluated from above and below and |K0 - K1| <= curvatureTolerance, then the curvature is considered continuous. Otherwise, a curvature discontinuity is reported if the curvature direction test fails or ||K0| - |K1|| > 0.05 * max(|K0|, |K1|). Increasing curvatureTolerance can only loosen the test.

    Returns [boolean, number]

    Parametric continuity tests c = (C0_continuous, ..., G2_continuous): true if a parametric discontinuity was found strictly between t0 and t1. Note well that all curves are parametrically continuous at the ends of their domains. Locus continuity tests c = (C0_locus_continuous, ...,G2_locus_continuous): true if a locus discontinuity was found strictly between t0 and t1 or at t1 is the at the end of a curve. Note well that all open curves (IsClosed()=false) are locus discontinuous at the ends of their domains. All closed curves (IsClosed()=true) are at least C0_locus_continuous at the ends of their domains.

  • Searches for a derivative, tangent, or curvature discontinuity.

    G1 uses a 1 degree tangent angle tolerance. G2 reports a discontinuity if the curvature vectors differ in direction by more than 2 degrees or in magnitude by more than 5%. These tolerances do not depend on the document's angle tolerance.

    Parameters

    • continuityType: Continuity

      Type of continuity to search for.

    • t0: number

      Search begins at t0. If there is a discontinuity at t0, it will be ignored. This makes it possible to repeatedly call GetNextDiscontinuity() and step through the discontinuities.

    • t1: number

      (t0 != t1) If there is a discontinuity at t1 it will be ignored unless continuityType is a locus discontinuity type and t1 is at the start or end of the curve.

    Returns [boolean, number]

    Parametric continuity tests c = (C0_continuous, ..., G2_continuous): true if a parametric discontinuity was found strictly between t0 and t1. Note well that all curves are parametrically continuous at the ends of their domains. Locus continuity tests c = (C0_locus_continuous, ...,G2_locus_continuous): true if a locus discontinuity was found strictly between t0 and t1 or at t1 is the at the end of a curve. Note well that all open curves (IsClosed()=false) are locus discontinuous at the ends of their domains. All closed curves (IsClosed()=true) are at least C0_locus_continuous at the ends of their domains.

  • Convert a curve parameter to a NURBS curve parameter.

    If GetNurbForm returns 2, this function converts the curve parameter to the NURBS curve parameter.

    Parameters

    • curveParameter: number

      Curve parameter.

    Returns [boolean, number]

    true on success, false on failure.

  • Gets user string from this geometry.

    Parameters

    • key: string

      id used to retrieve the string.

    Returns string

    string associated with the key if successful. null if no key was found.

  • Gets a copy of all (user key string, user value string) pairs attached to this geometry.

    Returns any[]

    A new collection.

  • Does a NURBS curve representation of this curve exist?

    Returns number

    0 unable to create NURBS representation with desired accuracy. 1 success - NURBS parameterization matches the curve's to the desired accuracy 2 success - NURBS point locus matches the curve's and the domain of the NURBS curve is correct. However, This curve's parameterization and the NURBS curve parameterization may not match. This situation happens when getting NURBS representations of curves that have a transcendental parameterization like circles.

  • Test a curve to see if it can be represented by an arc or circle within the given tolerance.

    Parameters

    • tolerance: number

      Tolerance to use when checking.

    Returns boolean

    true if the curve can be represented by an arc or a circle within tolerance.

  • Test a curve to see if it can be represented by an arc or circle within RhinoMath.ZeroTolerance.

    Returns boolean

    true if the curve can be represented by an arc or a circle within tolerance.

  • Test a curve to see if it can be represented by a circle within the given tolerance.

    Parameters

    • tolerance: number

      Tolerance to use when checking.

    Returns boolean

    true if the curve can be represented by a circle to within tolerance.

  • Test a curve to see if it can be represented by a circle within RhinoMath.ZeroTolerance.

    Returns boolean

    true if the Curve can be represented by a circle within tolerance.

  • Decide if it makes sense to close off this curve by moving the endpoint to the start based on start-end gap size and length of curve as approximated by chord defined by 6 points.

    Parameters

    • tolerance: number

      Maximum allowable distance between start and end. If start - end gap is greater than tolerance, this function will return false.

    • minimumAbsoluteSize: number

      If greater than 0.0 and none of the interior sampled points are at least minimumAbsoluteSize from start, this function will return false.

    • minimumRelativeSize: number

      If greater than 1.0 and chord length is less than minimumRelativeSize*gap, this function will return false.

    Returns boolean

    true if start and end points are close enough based on above conditions.

  • Decide if it makes sense to close off this curve by moving the endpoint to the start based on start-end gap size and length of curve as approximated by chord defined by 6 points.

    Parameters

    • tolerance: number

      Maximum allowable distance between start and end. If start - end gap is greater than tolerance, this function will return false.

    Returns boolean

    true if start and end points are close enough based on above conditions.

  • Test continuity at a curve parameter value.

    G1 uses a 1 degree tangent angle tolerance. G2 reports a discontinuity if the curvature vectors differ in direction by more than 2 degrees or in magnitude by more than 5%. These tolerances do not depend on the document's angle tolerance.

    Parameters

    • continuityType: Continuity

      Type of continuity to test for.

    • t: number

      Parameter to test.

    Returns boolean

    true if the curve has at least the c type continuity at the parameter t.

  • Test a curve to see if it can be represented by an ellipse within a given tolerance.

    Parameters

    • tolerance: number

      Tolerance to use for checking.

    Returns boolean

    true if the Curve can be represented by an ellipse within tolerance.

  • Test a curve to see if it can be represented by an ellipse within RhinoMath.ZeroTolerance.

    Returns boolean

    true if the Curve can be represented by an ellipse within tolerance.

  • Test a curve to see if it lies in a specific plane.

    Parameters

    • testPlane: Plane

      Plane to test for.

    • tolerance: number

      Tolerance to use when checking.

    Returns boolean

    true if the maximum distance from the curve to the testPlane is <= tolerance.

  • Test a curve to see if it lies in a specific plane.

    Parameters

    • testPlane: Plane

      Plane to test for.

    Returns boolean

    true if the maximum distance from the curve to the testPlane is <= RhinoMath.ZeroTolerance.

  • Test a curve to see if it is linear to within the custom tolerance.

    Parameters

    • tolerance: number

      Tolerance to use when checking linearity.

    Returns boolean

    true if the ends of the curve are farther than tolerance apart and the maximum distance from any point on the curve to the line segment connecting the curve ends is <= tolerance.

  • Test a curve to see if it is linear to within RhinoMath.ZeroTolerance units (1e-12).

    Returns boolean

    true if the curve is linear.

  • Test a curve for planarity.

    Parameters

    • tolerance: number

      Tolerance to use when checking.

    Returns boolean

    true if there is a plane such that the maximum distance from the curve to the plane is <= tolerance.

  • Test a curve for planarity.

    Returns boolean

    true if the curve is planar (flat) to within RhinoMath.ZeroTolerance units (1e-12).

  • Several types of Curve can have the form of a polyline including a degree 1 NurbsCurve, a PolylineCurve, and a PolyCurve all of whose segments are some form of polyline. IsPolyline tests a curve to see if it can be represented as a polyline.

    Returns boolean

    true if this curve can be represented as a polyline; otherwise, false.

  • Get orientation of trim with respect to it's corresponding edge.

    Returns boolean

    true if the 2d trim and 3d edge have opposite orientations

  • Determines if an object is valid. Also provides a report on errors if this object happens not to be valid.

    Returns [boolean, string]

    true if this object is valid; false otherwise.

  • If possible, converts the object into a form that can be accurately modified with "squishy" transformations like projections, shears, an non-uniform scaling.

    Returns boolean

    false if object cannot be converted to a deformable object. true if object was already deformable or was converted into a deformable object.

  • Computes an estimate of the number of bytes that this object is using in memory.

    Returns number

    An estimated memory footprint.

  • Evaluates point at a curve parameter.

    No error handling.

    Parameters

    • t: number

      Evaluation parameter.

    Returns Point3d

    Point (location of curve at the parameter t).

  • The object's render data (RDK) as XML (rhino3dm only).

    Returns string

    The XML text, empty when the object has none.

  • Reverses the direction of the curve.

    If reversed, the domain changes from [a,b] to [-b,-a]

    Returns boolean

    true on success, false on failure.

  • Rotates the object about the specified axis. A positive rotation angle results in a counter-clockwise rotation about the axis (right hand rule).

    Parameters

    • angleRadians: number

      Angle of rotation in radians.

    • rotationAxis: Vector3d

      Direction of the axis of rotation.

    • rotationCenter: Point3d

      Point on the axis of rotation.

    Returns boolean

    true if geometry successfully rotated.

  • Scales the object by the specified factor. The scale is centered at the origin.

    Parameters

    • scaleFactor: number

      The uniform scaling factor.

    Returns boolean

    true if geometry successfully scaled.

  • Forces the curve to end at a specified point. Not all curve types support this operation.

    Some end points cannot be moved. Be sure to check return code

    Parameters

    • point: Point3d

      New end point of curve.

    Returns boolean

    true on success, false on failure.

  • Forces the curve to start at a specified point. Not all curve types support this operation.

    Some start points cannot be moved. Be sure to check return code.

    Parameters

    • point: Point3d

      New start point of curve.

    Returns boolean

    true on success, false on failure.

  • The values in tolerance[] record the accuracy of the parameter space trimming curves.

    tolerance[0] = accuracy of parameter space curve in first ("u") parameter

    tolerance[1] = accuracy of parameter space curve in second ("v") parameter

    A value of RhinoMath.UnsetValue indicates that the tolerance should be computed. If the value >= 0.0, then the tolerance is set. If the value is RhinoMath.UnsetValue, then the tolerance needs to be computed.

    If the trim is not singular, then the trim must have an edge. If P is a 3d point on the edge's curve and surface(u,v) = Q is the point on the surface that is closest to P, then there must be a parameter t in the interval [m_t[0], m_t[1]] such that |u - curve2d(t)[0]| <= tolerance[0] and |v - curve2d(t)[1]| <= tolerance[1]

    If P is the 3d point for the vertex brep.m_V[m_vi[k]] and (uk,vk) is the corresponding end of the trim's parameter space curve, then there must be a surface parameter (u,v) such that:

    • the distance from the 3d point surface(u,v) to P is <= brep.m_V[m_vi[k]].m_tolerance, - |u-uk| <= tolerance[0]. - |v-vk| <= tolerance[1].

    Parameters

    • toleranceU: number
    • toleranceV: number

    Returns void

  • Set 2d curve geometry used by a b-rep trim.

    Parameters

    • curve2dIndex: number

      index of 2d curve in m_C2[] array

    • subDomain: Interval

    Returns boolean

    true if successful

  • Attach a user string (key,value combination) to this geometry.

    Parameters

    • key: string

      id used to retrieve this string.

    • value: string

      string associated with key.

    Returns boolean

    true on success.

  • Get the domain of the curve span with the given index. Use the SpanCount property to test how many spans there are.

    Parameters

    • spanIndex: number

      Index of span.

    Returns Interval

    Interval of the span with the given index.

  • Returns the vector of span division parameters for this curve.

    Returns any[]

    An array of parameter values that mark the boundaries between spans of the curve.

  • Splits (divides) the curve at a series of specified parameters. The parameter must be in the interior of the curve domain.

    Parameters

    • t: number

      Parameters to split the curve at in the interval returned by Domain().

    Returns Curve[]

    Multiple curves on success, null on failure.

  • Evaluates the unit tangent vector at a curve parameter.

    No error handling.

    Parameters

    • t: number

      Evaluation parameter.

    Returns Vector3d

    Unit tangent vector of the curve at the parameter t.

  • encode()'s object, for JSON.stringify (JS only).

    Parameters

    • Optionalkey: any

    Returns Record<string, any>

  • Constructs a NURBS curve representation of this curve.

    Returns NurbsCurve

    NURBS representation of the curve on success, null on failure.

  • Constructs a NURBS curve representation of this curve.

    Parameters

    • subdomain: Interval

      The NURBS representation for this portion of the curve is returned.

    Returns NurbsCurve

    NURBS representation of the curve on success, null on failure.

  • Evaluate the torsion of a curve at a parameter. Sometimes also called the "second curvature", torsion is the rate of change of a curve's osculating plane.

    See Barrett O'Neill, Elementary Differential Geometry, page 69.

    Parameters

    • t: number

      The evaluation parameter.

    Returns number

    The torsion if successful.

  • Transforms the geometry. If the input Transform has a SimilarityType of OrientationReversing, you may want to consider flipping the transformed geometry after calling this function when it makes sense. For example, you may want to call Flip() on a Brep after transforming it.

    Parameters

    • xform: Transform

      Transformation to apply to geometry.

    Returns boolean

    true if geometry successfully transformed.

  • Translates the object along the specified vector.

    Parameters

    • translationVector: Vector3d

      A moving vector.

    Returns boolean

    true if geometry successfully translated.

  • Translates the object along the specified vector.

    Parameters

    • x: number

      The X component.

    • y: number

      The Y component.

    • z: number

      The Z component.

    Returns boolean

    true if geometry successfully translated.

  • Removes portions of the curve outside the specified interval.

    If curve is open, then trimming interval must be an increasing interval. If curve is closed, and trimming interval is a decreasing interval, then the portion of the curve across the start/end is returned.

    Parameters

    • t0: number

      Start of the trimming interval.

    • t1: number

      End of the trimming interval.

    Returns Curve

    Trimmed portion of this curve is successful, null on failure.

  • Removes portions of the curve outside the specified interval.

    If curve is open, then trimming interval must be an increasing interval. If curve is closed, and trimming interval is a decreasing interval, then the portion of the curve across the start/end is returned.

    Parameters

    Returns Curve

    Trimmed curve if successful, null on failure.

  • Trims the curve in-place by removing portions of the curve outside the specified interval.

    Portions of the curve before curve(domain[0]) and after curve(domain[1]) are removed.

    Parameters

    • t0: number

      Start of the trimming interval.

    • t1: number

      End of the trimming interval.

    Returns boolean

    True if successful, false otherwise.

  • Trims the curve in-place by removing portions of the curve outside the specified interval.

    Portions of the curve before curve(domain[0]) and after curve(domain[1]) are removed.

    Parameters

    Returns boolean

    True if successful, false otherwise.

  • Try to convert this curve into an Arc using a custom tolerance.

    Parameters

    • plane: Plane

      Plane in which the comparison is performed.

    • tolerance: number

      Tolerance to use when checking.

    Returns [boolean, Arc]

    true if the curve could be converted into an arc within the given plane.

  • Try to convert this curve into an Arc using a custom tolerance.

    Parameters

    • tolerance: number

      Tolerance to use when checking.

    Returns [boolean, Arc]

    true if the curve could be converted into an arc.

  • Try to convert this curve into an Arc using RhinoMath.ZeroTolerance.

    Parameters

    • plane: Plane

      Plane in which the comparison is performed.

    Returns [boolean, Arc]

    true if the curve could be converted into an arc within the given plane.

  • Try to convert this curve into an Arc using RhinoMath.ZeroTolerance.

    Returns [boolean, Arc]

    true if the curve could be converted into an arc.

  • Try to convert this curve into a Circle using a custom tolerance.

    Parameters

    • tolerance: number

      Tolerance to use when checking.

    Returns [boolean, Circle]

    true if the curve could be converted into a Circle within tolerance.

  • Try to convert this curve into a circle using RhinoMath.ZeroTolerance.

    Returns [boolean, Circle]

    true if the curve could be converted into a Circle.

  • Try to convert this curve into an Ellipse using a custom tolerance.

    Parameters

    • plane: Plane

      Plane in which the comparison is performed.

    • tolerance: number

      Tolerance to use when checking.

    Returns [boolean, Ellipse]

    true if the curve could be converted into an Ellipse within the given plane.

  • Try to convert this curve into an Ellipse using a custom tolerance.

    Parameters

    • tolerance: number

      Tolerance to use when checking.

    Returns [boolean, Ellipse]

    true if the curve could be converted into an Ellipse.

  • Try to convert this curve into an Ellipse within RhinoMath.ZeroTolerance.

    Parameters

    • plane: Plane

      Plane in which the comparison is performed.

    Returns [boolean, Ellipse]

    true if the curve could be converted into an Ellipse within the given plane.

  • Try to convert this curve into an Ellipse within RhinoMath.ZeroTolerance.

    Returns [boolean, Ellipse]

    true if the curve could be converted into an Ellipse.

  • Test a curve for planarity and return the plane.

    Parameters

    • tolerance: number

      Tolerance to use when checking.

    Returns [boolean, Plane]

    true if there is a plane such that the maximum distance from the curve to the plane is <= tolerance.

  • Test a curve for planarity and return the plane.

    Returns [boolean, Plane]

    true if there is a plane such that the maximum distance from the curve to the plane is <= RhinoMath.ZeroTolerance.

  • Several types of Curve can have the form of a polyline including a degree 1 NurbsCurve, a PolylineCurve, and a PolyCurve all of whose segments are some form of polyline. IsPolyline tests a curve to see if it can be represented as a polyline.

    Returns [boolean, Polyline]

    true if this curve can be represented as a polyline; otherwise, false.

  • Computes an estimate of the number of bytes that this object is using in memory.

    This is the same as calling GeometryBase.MemoryEstimate, but works for all CommonObject derived classes.

    Parameters

    Returns number

    An estimated memory footprint.

  • Constructs a curve from a set of control-point locations.

    Parameters

    • points: Point3d[]

      Control points.

    • degree: number

      Degree of curve. The number of control points must be at least degree+1.

    Returns Curve

  • Constructs a control-point of degree=3 (or less).

    Parameters

    • points: Point3d[]

      Control points of curve.

    Returns Curve

  • The object a dict from Encode describes (rhino3dm only).

    Parameters

    • jsonObject: Record<string, any>

      A dict as Encode returns it.

    Returns CommonObject