Click or drag to resize

Curve Class

Represents a base class that is common to most RhinoCommon curve types.

A curve represents an entity that can be all visited by providing a single parameter, usually called t.

Inheritance Hierarchy

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
Syntax
[SerializableAttribute]
public class Curve : GeometryBase

The Curve type exposes the following members.

Constructors
  NameDescription
Protected methodCurve
Protected serialization constructor for internal use.
Top
Properties
  NameDescription
Public propertyDegree
Gets the maximum algebraic degree of any span or a good estimate if curve spans are not algebraic.
Public propertyDimension
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.

Public propertyDisposed
Indicates if this object has been disposed or the document it originally belonged to has been disposed.
(Inherited from CommonObject.)
Public propertyDomain
Gets or sets the domain of the curve.
Public propertyHasBrepForm
Returns true if the Brep.TryConvertBrep function will be successful for this object
(Inherited from GeometryBase.)
Public propertyHasUserData
Gets true if this class has any custom information attached to it through UserData.
(Inherited from CommonObject.)
Public propertyIsClosed
Gets a value indicating whether or not this curve is a closed curve.
Public propertyIsDeformable
true if object can be accurately modified with "squishy" transformations like projections, shears, and non-uniform scaling.
(Inherited from GeometryBase.)
Public propertyIsDocumentControlled
If true this object may not be modified. Any properties or functions that attempt to modify this object when it is set to "IsReadOnly" will throw a NotSupportedException.
(Inherited from GeometryBase.)
Public propertyIsPeriodic
Gets a value indicating whether or not this curve is considered to be Periodic.
Public propertyIsValid
Tests an object to see if it is valid.
(Inherited from CommonObject.)
Public propertyObjectType
Useful for switch statements that need to differentiate between basic object types like points, curves, surfaces, and so on.
(Inherited from GeometryBase.)
Public propertyPointAtEnd
Evaluates point at the end of the curve.
Public propertyPointAtStart
Evaluates point at the start of the curve.
Public propertySpanCount
Gets the number of non-empty smooth (c-infinity) spans in the curve.
Public propertyTangentAtEnd
Evaluate unit tangent vector at the end of the curve.
Public propertyTangentAtStart
Evaluates the unit tangent vector at the start of the curve.
Public propertyUserData
List of custom information that is attached to this class.
(Inherited from CommonObject.)
Public propertyUserDictionary
Dictionary of custom information attached to this class. The dictionary is actually user data provided as an easy to use sharable set of information.
(Inherited from CommonObject.)
Public propertyUserStringCount
Gets the amount of user strings.
(Inherited from GeometryBase.)
Top
Methods
  NameDescription
Public methodChangeClosedCurveSeam
If this curve is closed, then modify it so that the start/end point is at curve parameter t.
Public methodChangeDimension
Changes the dimension of a curve.
Public methodClosedCurveOrientation
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.
Public methodClosedCurveOrientation(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.
Public methodClosedCurveOrientation(Transform)
Determines the orientation (counterclockwise or clockwise) of a closed, planar curve. Only works with simple (no self intersections) closed, planar curves.
Public methodClosedCurveOrientation(Vector3d)
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.
Public methodClosestPoint(Point3d, Double)
Finds parameter of the point on a curve that is closest to testPoint. If the maximumDistance parameter is > 0, then only points whose distance to the given point is <= maximumDistance will be returned. Using a positive value of maximumDistance can substantially speed up the search.
Public methodClosestPoint(Point3d, Double, Double)
Finds the parameter of the point on a curve that is closest to testPoint. If the maximumDistance parameter is > 0, then only points whose distance to the given point is <= maximumDistance will be returned. Using a positive value of maximumDistance can substantially speed up the search.
Public methodClosestPoints(Curve, Point3d, Point3d)
Gets closest points between this and another curves.
Public methodClosestPoints(IEnumerableGeometryBase, Point3d, Point3d, Int32)
Finds the object (and the closest point in that object) that is closest to this curve.

Breps, surfaces, curves and point clouds are examples of objects that can be passed to this function.

Public methodClosestPoints(IEnumerableGeometryBase, Point3d, Point3d, Int32, Double)
Finds the object (and the closest point in that object) that is closest to this curve.

Breps, surfaces, curves and point clouds are examples of objects that can be passed to this function.

Public methodComponentIndex
If this piece of geometry is a component in something larger, like a BrepEdge in a Brep, then this function returns the component index.
(Inherited from GeometryBase.)
Protected methodConstructConstObject
Assigns a parent object and a subobject index to this.
(Inherited from CommonObject.)
Public methodContains(Point3d) Obsolete.
Computes the relationship between a point and a closed curve region. This curve must be closed or the return value will be Unset. Both curve and point are projected to the World XY plane.
Public methodContains(Point3d, Plane) Obsolete.
Computes the relationship between a point and a closed curve region. This curve must be closed or the return value will be Unset.
Public methodContains(Point3d, Plane, Double)
Computes the relationship between a point and a closed curve region. This curve must be closed or the return value will be Unset.
Public methodStatic memberCreateBlendCurve(Curve, Curve, BlendContinuity)
Create a Blend curve between two existing curves.
Public methodStatic memberCreateBlendCurve(Curve, Curve, BlendContinuity, Double, Double)
Create a Blend curve between two existing curves.
Public methodStatic memberCreateBlendCurve(Curve, Double, Boolean, BlendContinuity, Curve, Double, Boolean, BlendContinuity)
Makes a curve blend between 2 curves at the parameters specified with the directions and continuities specified
Public methodStatic memberCreateBooleanDifference(Curve, Curve) Obsolete.
Calculates the boolean difference between two closed, planar curves. Note, curves must be co-planar.
Public methodStatic memberCreateBooleanDifference(Curve, IEnumerableCurve) Obsolete.
Calculates the boolean difference between a closed planar curve, and a list of closed planar curves. Note, curves must be co-planar.
Public methodStatic memberCreateBooleanDifference(Curve, Curve, Double)
Calculates the boolean difference between two closed, planar curves. Note, curves must be co-planar.
Public methodStatic memberCreateBooleanDifference(Curve, IEnumerableCurve, Double)
Calculates the boolean difference between a closed planar curve, and a list of closed planar curves. Note, curves must be co-planar.
Public methodStatic memberCreateBooleanIntersection(Curve, Curve) Obsolete.
Calculates the boolean intersection of two closed, planar curves. Note, curves must be co-planar.
Public methodStatic memberCreateBooleanIntersection(Curve, Curve, Double)
Calculates the boolean intersection of two closed, planar curves. Note, curves must be co-planar.
Public methodStatic memberCreateBooleanUnion(IEnumerableCurve) Obsolete.
Calculates the boolean union of two or more closed, planar curves. Note, curves must be co-planar.
Public methodStatic memberCreateBooleanUnion(IEnumerableCurve, Double)
Calculates the boolean union of two or more closed, planar curves. Note, curves must be co-planar.
Public methodStatic memberCreateControlPointCurve(IEnumerablePoint3d)
Constructs a control-point of degree=3 (or less).
Public methodStatic memberCreateControlPointCurve(IEnumerablePoint3d, Int32)
Constructs a curve from a set of control-point locations.
Public methodStatic memberCreateCurve2View
Creates a third curve from two curves that are planar in different construction planes. The new curve looks the same as each of the original curves when viewed in each plane.
Public methodStatic memberCreateFillet
Computes the fillet arc for a curve filleting operation.
Public methodStatic memberCreateFilletCornersCurve
Rounds the corners of a kinked curve with arcs of a single, specified radius.
Public methodStatic memberCode exampleCreateFilletCurves
Creates a tangent arc between two curves and trims or extends the curves to the arc.
Public methodStatic memberCreateInterpolatedCurve(IEnumerablePoint3d, Int32)
Interpolates a sequence of points. Used by InterpCurve Command This routine works best when degree=3.
Public methodStatic memberCreateInterpolatedCurve(IEnumerablePoint3d, Int32, CurveKnotStyle)
Interpolates a sequence of points. Used by InterpCurve Command This routine works best when degree=3.
Public methodStatic memberCreateInterpolatedCurve(IEnumerablePoint3d, Int32, CurveKnotStyle, Vector3d, Vector3d)
Interpolates a sequence of points. Used by InterpCurve Command This routine works best when degree=3.
Public methodStatic memberCreateMeanCurve(Curve, Curve)
Constructs a mean, or average, curve from two curves.
Public methodStatic memberCreateMeanCurve(Curve, Curve, Double)
Constructs a mean, or average, curve from two curves.
Public methodStatic memberCreatePeriodicCurve(Curve)
Removes kinks from a curve. Periodic curves deform smoothly without kinks.
Public methodStatic memberCreatePeriodicCurve(Curve, Boolean)
Removes kinks from a curve. Periodic curves deform smoothly without kinks.
Public methodStatic memberCreateSoftEditCurve
Creates a soft edited curve from an exising curve using a smooth field of influence.
Public methodStatic memberCreateTextOutlines
Creates outline curves created from a text string. The functionality is similar to what you find in Rhino's TextObject command or TextEntity.Explode() in RhinoCommon.
Public methodStatic memberCreateTweenCurves(Curve, Curve, Int32) Obsolete.
Creates curves between two open or closed input curves. Uses the control points of the curves for finding tween curves. That means the first control point of first curve is matched to first control point of the second curve and so on. There is no matching of curves direction. Caller must match input curves direction before calling the function.
Public methodStatic memberCreateTweenCurves(Curve, Curve, Int32, Double)
Creates curves between two open or closed input curves. Uses the control points of the curves for finding tween curves. That means the first control point of first curve is matched to first control point of the second curve and so on. There is no matching of curves direction. Caller must match input curves direction before calling the function.
Public methodStatic memberCreateTweenCurvesWithMatching(Curve, Curve, Int32) Obsolete.
Creates curves between two open or closed input curves. Make the structure of input curves compatible if needed. Refits the input curves to have the same structure. The resulting curves are usually more complex than input unless input curves are compatible and no refit is needed. There is no matching of curves direction. Caller must match input curves direction before calling the function.
Public methodStatic memberCreateTweenCurvesWithMatching(Curve, Curve, Int32, Double)
Creates curves between two open or closed input curves. Make the structure of input curves compatible if needed. Refits the input curves to have the same structure. The resulting curves are usually more complex than input unless input curves are compatible and no refit is needed. There is no matching of curves direction. Caller must match input curves direction before calling the function.
Public methodStatic memberCreateTweenCurvesWithSampling(Curve, Curve, Int32, Int32) Obsolete.
Creates curves between two open or closed input curves. Use sample points method to make curves compatible. This is how the algorithm workd: Divides the two curves into an equal number of points, finds the midpoint between the corresponding points on the curves and interpolates the tween curve through those points. There is no matching of curves direction. Caller must match input curves direction before calling the function.
Public methodStatic memberCreateTweenCurvesWithSampling(Curve, Curve, Int32, Int32, Double)
Creates curves between two open or closed input curves. Use sample points method to make curves compatible. This is how the algorithm workd: Divides the two curves into an equal number of points, finds the midpoint between the corresponding points on the curves and interpolates the tween curve through those points. There is no matching of curves direction. Caller must match input curves direction before calling the function.
Public methodCode exampleCurvatureAt
Evaluate the curvature vector at a curve parameter.
Public methodDerivativeAt(Double, Int32)
Evaluate the derivatives at the specified curve parameter.
Public methodDerivativeAt(Double, Int32, CurveEvaluationSide)
Evaluate the derivatives at the specified curve parameter.
Public methodDispose
Actively reclaims unmanaged resources that this instance uses.
(Inherited from CommonObject.)
Protected methodDispose(Boolean)
For derived class implementers.

This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.

You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.

Also, you must call the base virtual method within your overriding method.

(Overrides GeometryBaseDispose(Boolean).)
Public methodDivideAsContour
Divides this curve at fixed steps along a defined contour line.
Public methodDivideByCount(Int32, Boolean)
Divide the curve into a number of equal-length segments.
Public methodDivideByCount(Int32, Boolean, Point3d)
Divide the curve into a number of equal-length segments.
Public methodCode exampleDivideByLength(Double, Boolean)
Divide the curve into specific length segments.
Public methodCode exampleDivideByLength(Double, Boolean, Point3d)
Divide the curve into specific length segments.
Public methodCode exampleDivideByLength(Double, Boolean, Boolean)
Divide the curve into specific length segments.
Public methodCode exampleDivideByLength(Double, Boolean, Boolean, Point3d)
Divide the curve into specific length segments.
Public methodDivideEquidistant
Calculates 3d points on a curve where the linear distance between the points is equal.
Public methodStatic memberDoDirectionsMatch
Determines whether two curves travel more or less in the same direction.
Public methodDuplicate
Constructs an exact duplicate of this Curve.
(Overrides GeometryBaseDuplicate.)
Public methodCode exampleDuplicateCurve
Constructs an exact duplicate of this curve.
Public methodDuplicateSegments
Polylines will be exploded into line segments. ExplodeCurves will return the curves in topological order.
Public methodDuplicateShallow
Constructs a light copy of this object. By "light", it is meant that the same underlying data is used until something is done to attempt to change it. For example, you could have a shallow copy of a very heavy mesh object and the same underlying data will be used when doing things like inspecting the number of faces on the mesh. If you modify the location of one of the mesh vertices, the shallow copy will create a full duplicate of the underlying mesh data and the shallow copy will become a deep copy.
(Inherited from GeometryBase.)
Public methodEnsurePrivateCopy
If you want to keep a copy of this class around by holding onto it in a variable after a command completes, call EnsurePrivateCopy to make sure that this class is not tied to the document. You can call this function as many times as you want.
(Inherited from CommonObject.)
Public methodEquals (Inherited from Object.)
Public methodExtend(Interval)
Where possible, analytically extends curve to include the given domain. This will not work on closed curves. The original curve will be identical to the restriction of the resulting curve to the original curve domain.
Public methodExtend(Double, Double)
Where possible, analytically extends curve to include the given domain. This will not work on closed curves. The original curve will be identical to the restriction of the resulting curve to the original curve domain.
Public methodExtend(CurveEnd, CurveExtensionStyle, Point3d)
Extends a curve to a point.
Public methodCode exampleExtend(CurveEnd, CurveExtensionStyle, IEnumerableGeometryBase)
Extends a curve until it intersects a collection of objects.
Public methodExtend(CurveEnd, Double, CurveExtensionStyle)
Extends a curve by a specific length.
Public methodExtendByArc
Extends a curve by an Arc until it intersects a collection of objects.
Public methodExtendByLine
Extends a curve by a line until it intersects a collection of objects.
Public methodExtendOnSurface(CurveEnd, BrepFace)
Extends a curve on a surface.
Public methodExtendOnSurface(CurveEnd, Surface)
Extends a curve on a surface.
Public methodExtremeParameters
Returns the parameter values of all local extrema. Parameter values are in increasing order so consecutive extrema define an interval on which each component of the curve is monotone. Note, non-periodic curves always return the end points.
Public methodFair
Fairs a curve object. Fair works best on degree 3 (cubic) curves. Attempts to remove large curvature variations while limiting the geometry changes to be no more than the specified tolerance.
Protected methodFinalize
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
(Inherited from CommonObject.)
Public methodFit
Fits a new curve through an existing curve.
Public methodFrameAt
Returns a 3d frame at a parameter.
Public methodCode exampleGetBoundingBox(Boolean)
Boundingbox solver. Gets the world axis aligned boundingbox for the geometry.
(Inherited from GeometryBase.)
Public methodCode exampleGetBoundingBox(Plane)
Aligned Boundingbox solver. Gets the plane aligned boundingbox.
(Inherited from GeometryBase.)
Public methodGetBoundingBox(Transform)
Aligned Boundingbox solver. Gets the world axis aligned boundingbox for the transformed geometry.
(Inherited from GeometryBase.)
Public methodGetBoundingBox(Plane, Box)
Aligned Boundingbox solver. Gets the plane aligned boundingbox.
(Inherited from GeometryBase.)
Public methodGetConicSectionType
Returns the type of conic section based on the curve's shape.
Public methodGetConicSectionType(Point3d, Point3d, Point3d)
Returns the type of conic section based on the curve's shape.
Public methodGetCurveParameterFromNurbsFormParameter
Convert a NURBS curve parameter to a curve parameter.
Public methodStatic memberCode exampleGetDistancesBetweenCurves
Computes the distances between two arbitrary curves that overlap.
Public methodStatic memberGetFilletPoints
Finds points at which to cut a pair of curves so that a fillet of given radius can be inserted.
Public methodGetHashCode (Inherited from Object.)
Public methodCode exampleGetLength
Gets the length of the curve with a fractional tolerance of 1.0e-8.
Public methodGetLength(Double)
Get the length of the curve.
Public methodGetLength(Interval)
Get the length of a sub-section of the curve with a fractional tolerance of 1e-8.
Public methodGetLength(Double, Interval)
Get the length of a sub-section of the curve.
Public methodGetLocalPerpPoint(Point3d, Double, Double)
Search for a location on the curve, near seedParmameter, that is perpendicular to a test point.
Public methodGetLocalPerpPoint(Point3d, Double, Interval, Double)
Search for a location on the curve, near seedParmameter, that is perpendicular to a test point.
Public methodGetLocalTangentPoint(Point3d, Double, Double)
Search for a location on the curve, near seedParmameter, that is tangent to a test point.
Public methodGetLocalTangentPoint(Point3d, Double, Interval, Double)
Search for a location on the curve, near seedParmameter, that is tangent to a test point.
Public methodGetNextDiscontinuity
Searches for a derivative, tangent, or curvature discontinuity.
Public methodGetNurbsFormParameterFromCurveParameter
Convert a curve parameter to a NURBS curve parameter.
Public methodGetObjectData
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
(Inherited from CommonObject.)
Public methodGetPerpendicularFrames
Gets a collection of perpendicular frames along the curve. Perpendicular frames are also known as 'Zero-twisting frames' and they minimize rotation from one frame to the next.
Public methodGetType (Inherited from Object.)
Public methodGetUserString
Gets user string from this geometry.
(Inherited from GeometryBase.)
Public methodGetUserStrings
Gets a copy of all (user key string, user value string) pairs attached to this geometry.
(Inherited from GeometryBase.)
Public methodHasNurbsForm
Does a NURBS curve representation of this curve exist?
Public methodIsArc
Test a curve to see if it can be represented by an arc or circle within RhinoMath.ZeroTolerance.
Public methodIsArc(Double)
Test a curve to see if it can be represented by an arc or circle within the given tolerance.
Public methodIsCircle
Test a curve to see if it can be represented by a circle within RhinoMath.ZeroTolerance.
Public methodIsCircle(Double)
Test a curve to see if it can be represented by a circle within the given tolerance.
Public methodIsClosable(Double)
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.
Public methodIsClosable(Double, Double, Double)
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.
Public methodIsContinuous
Test continuity at a curve parameter value.
Public methodIsEllipse
Test a curve to see if it can be represented by an ellipse within RhinoMath.ZeroTolerance.
Public methodIsEllipse(Double)
Test a curve to see if it can be represented by an ellipse within a given tolerance.
Public methodIsInPlane(Plane)
Test a curve to see if it lies in a specific plane.
Public methodIsInPlane(Plane, Double)
Test a curve to see if it lies in a specific plane.
Public methodCode exampleIsLinear
Test a curve to see if it is linear to within RhinoMath.ZeroTolerance units (1e-12).
Public methodIsLinear(Double)
Test a curve to see if it is linear to within the custom tolerance.
Public methodCode exampleIsPlanar
Test a curve for planarity.
Public methodIsPlanar(Double)
Test a curve for planarity.
Public methodCode exampleIsPolyline
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.
Public methodCode exampleIsShort(Double)
Used to quickly find short curves.
Public methodIsShort(Double, Interval)
Used to quickly find short curves.
Public methodIsValidWithLog
Determines if an object is valid. Also provides a report on errors if this object happens not to be valid.
(Inherited from CommonObject.)
Public methodStatic memberJoinCurves(IEnumerableCurve)
Joins a collection of curve segments together.
Public methodStatic memberCode exampleJoinCurves(IEnumerableCurve, Double)
Joins a collection of curve segments together.
Public methodStatic memberJoinCurves(IEnumerableCurve, Double, Boolean)
Joins a collection of curve segments together.
Public methodLengthParameter(Double, Double)
Gets the parameter along the curve which coincides with a given length along the curve. A fractional tolerance of 1e-8 is used in this version of the function.
Public methodLengthParameter(Double, Double, Interval)
Gets the parameter along the curve which coincides with a given length along the curve. A fractional tolerance of 1e-8 is used in this version of the function.
Public methodLengthParameter(Double, Double, Double)
Gets the parameter along the curve which coincides with a given length along the curve.
Public methodLengthParameter(Double, Double, Double, Interval)
Gets the parameter along the curve which coincides with a given length along the curve.
Public methodMakeClosed
If IsClosed, just return true. Otherwise, decide if curve can be closed as follows: Linear curves polylinear curves with 2 segments, Nurbs with 3 or less control points cannot be made closed. Also, if tolerance > 0 and the gap between start and end is larger than tolerance, curve cannot be made closed. Adjust the curve's endpoint to match its start point.
Public methodMakeDeformable
If possible, converts the object into a form that can be accurately modified with "squishy" transformations like projections, shears, an non-uniform scaling.
(Inherited from GeometryBase.)
Public methodStatic memberMakeEndsMeet
Makes adjustments to the ends of one or both input curves so that they meet at a point.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodMemoryEstimate
Computes an estimate of the number of bytes that this object is using in memory.
(Inherited from GeometryBase.)
Protected methodNonConstOperation
For derived classes implementers.

Defines the necessary implementation to free the instance from being const.

(Overrides GeometryBaseNonConstOperation.)
Public methodNormalizedLengthParameter(Double, Double)
Input the parameter of the point on the curve that is a prescribed arc length from the start of the curve. A fractional tolerance of 1e-8 is used in this version of the function.
Public methodNormalizedLengthParameter(Double, Double, Interval)
Input the parameter of the point on the curve that is a prescribed arc length from the start of the curve. A fractional tolerance of 1e-8 is used in this version of the function.
Public methodNormalizedLengthParameter(Double, Double, Double)
Input the parameter of the point on the curve that is a prescribed arc length from the start of the curve.
Public methodNormalizedLengthParameter(Double, Double, Double, Interval)
Input the parameter of the point on the curve that is a prescribed arc length from the start of the curve.
Public methodNormalizedLengthParameters(Double, Double)
Input the parameter of the point on the curve that is a prescribed arc length from the start of the curve. A fractional tolerance of 1e-8 is used in this version of the function.
Public methodNormalizedLengthParameters(Double, Double, Interval)
Input the parameter of the point on the curve that is a prescribed arc length from the start of the curve. A fractional tolerance of 1e-8 is used in this version of the function.
Public methodNormalizedLengthParameters(Double, Double, Double)
Input the parameter of the point on the curve that is a prescribed arc length from the start of the curve.
Public methodNormalizedLengthParameters(Double, Double, Double, Interval)
Input the parameter of the point on the curve that is a prescribed arc length from the start of the curve.
Public methodOffset(Plane, Double, Double, CurveOffsetCornerStyle)
Offsets this curve. If you have a nice offset, then there will be one entry in the array. If the original curve had kinks or the offset curve had self intersections, you will get multiple segments in the offset_curves[] array.
Public methodOffset(Point3d, Vector3d, Double, Double, CurveOffsetCornerStyle)
Offsets this curve. If you have a nice offset, then there will be one entry in the array. If the original curve had kinks or the offset curve had self intersections, you will get multiple segments in the offset_curves[] array.
Public methodOffsetNormalToSurface
Finds a curve by offsetting an existing curve normal to a surface. The caller is responsible for ensuring that the curve lies on the input surface.
Public methodOffsetOnSurface(BrepFace, Point2d, Double)
Offset a curve on a brep face surface. This curve must lie on the surface.

This overload allows to specify a surface point at which the offset will pass.

Public methodOffsetOnSurface(BrepFace, Double, Double)
Offset this curve on a brep face surface. This curve must lie on the surface.
Public methodOffsetOnSurface(Surface, Point2d, Double)
Offset a curve on a surface. This curve must lie on the surface.

This overload allows to specify a surface point at which the offset will pass.

Public methodOffsetOnSurface(Surface, Double, Double)
Offset a curve on a surface. This curve must lie on the surface.
Public methodOffsetOnSurface(BrepFace, Double, Double, Double)
Offset a curve on a brep face surface. This curve must lie on the surface.

This overload allows to specify different offsets for different curve parameters.

Public methodOffsetOnSurface(Surface, Double, Double, Double)
Offset this curve on a surface. This curve must lie on the surface.

This overload allows to specify different offsets for different curve parameters.

Protected methodOnSwitchToNonConst
Is called when a non-const operation occurs.
(Inherited from GeometryBase.)
Public methodPerpendicularFrameAt
Return a 3d frame at a parameter. This is slightly different than FrameAt in that the frame is computed in a way so there is minimal rotation from one frame to the next.
Public methodStatic memberPlanarClosedCurveRelationship
Determines whether two coplanar simple closed curves are disjoint or intersect; otherwise, if the regions have a containment relationship, discovers which curve encloses the other.
Public methodStatic memberPlanarCurveCollision
Determines if two coplanar curves collide (intersect).
Public methodCode examplePointAt
Evaluates point at a curve parameter.
Public methodCode examplePointAtLength
Gets a point at a certain length along the curve. The length must be non-negative and less than or equal to the length of the curve. Lengths will not be wrapped when the curve is closed or periodic.
Public methodPointAtNormalizedLength
Gets a point at a certain normalized length along the curve. The length must be between or including 0.0 and 1.0, where 0.0 equals the start of the curve and 1.0 equals the end of the curve.
Public methodStatic memberProjectToBrep(Curve, Brep, Vector3d, Double)
Projects a Curve onto a Brep along a given direction.
Public methodStatic memberProjectToBrep(Curve, IEnumerableBrep, Vector3d, Double)
Projects a Curve onto a collection of Breps along a given direction.
Public methodStatic memberProjectToBrep(IEnumerableCurve, IEnumerableBrep, Vector3d, Double)
Projects a collection of Curves onto a collection of Breps along a given direction.
Public methodStatic memberProjectToBrep(Curve, IEnumerableBrep, Vector3d, Double, Int32)
Projects a Curve onto a collection of Breps along a given direction.
Public methodStatic memberProjectToBrep(IEnumerableCurve, IEnumerableBrep, Vector3d, Double, Int32, Int32)
Projects a collection of Curves onto a collection of Breps along a given direction.
Public methodStatic memberProjectToMesh(Curve, Mesh, Vector3d, Double)
Projects a curve to a mesh using a direction and tolerance.
Public methodStatic memberProjectToMesh(Curve, IEnumerableMesh, Vector3d, Double)
Projects a curve to a set of meshes using a direction and tolerance.
Public methodStatic memberProjectToMesh(IEnumerableCurve, IEnumerableMesh, Vector3d, Double)
Projects a curve to a set of meshes using a direction and tolerance.
Public methodStatic memberProjectToPlane
Constructs a curve by projecting an existing curve to a plane.
Public methodPullToBrepFace(BrepFace, Double)
Pulls this curve to a brep face and returns the result of that operation.
Public methodStatic memberPullToBrepFace(Curve, BrepFace, Double)
Pull a curve to a BrepFace using closest point projection.
Public methodPullToMesh
Makes a polyline approximation of the curve and gets the closest point on the mesh for each point on the curve. Then it "connects the points" so that you have a polyline on the mesh.
Public methodRebuild
Rebuild a curve with a specific point count.
Public methodRemoveShortSegments
Looks for segments that are shorter than tolerance that can be removed. Does not change the domain, but it will change the relative parameterization.
Public methodCode exampleReverse
Reverses the direction of the curve.
Public methodRotate
Rotates the object about the specified axis. A positive rotation angle results in a counter-clockwise rotation about the axis (right hand rule).
(Inherited from GeometryBase.)
Public methodScale
Scales the object by the specified factor. The scale is centered at the origin.
(Inherited from GeometryBase.)
Public methodSetEndPoint
Forces the curve to end at a specified point. Not all curve types support this operation.
Public methodSetStartPoint
Forces the curve to start at a specified point. Not all curve types support this operation.
Public methodSetUserString
Attach a user string (key,value combination) to this geometry.
(Inherited from GeometryBase.)
Public methodSimplify
Returns a geometrically equivalent PolyCurve.

The PolyCurve has the following properties

1. All the PolyCurve segments are LineCurve, PolylineCurve, ArcCurve, or NurbsCurve.

2. The Nurbs Curves segments do not have fully multiple interior knots.

3. Rational Nurbs curves do not have constant weights.

4. Any segment for which IsLinear() or IsArc() is true is a Line, Polyline segment, or an Arc.

5. Adjacent Colinear or Cocircular segments are combined.

6. Segments that meet with G1-continuity have there ends tuned up so that they meet with G1-continuity to within machine precision.

Public methodSimplifyEnd
Same as SimplifyCurve, but simplifies only the last two segments at "side" end.
Public methodSmooth(Double, Boolean, Boolean, Boolean, Boolean, SmoothingCoordinateSystem)
Smooths a curve by averaging the positions of control points in a specified region.
Public methodSmooth(Double, Boolean, Boolean, Boolean, Boolean, SmoothingCoordinateSystem, Plane)
Smooths a curve by averaging the positions of control points in a specified region.
Public methodSpanDomain
Get the domain of the curve span with the given index. Use the SpanCount property to test how many spans there are.
Public methodSplit(IEnumerableDouble)
Splits (divides) the curve at a series of specified parameters. The parameter must be in the interior of the curve domain.
Public methodSplit(Double)
Splits (divides) the curve at the specified parameter. The parameter must be in the interior of the curve's domain.
Public methodSplit(Brep, Double) Obsolete.
Splits a curve into pieces using a polysurface.
Public methodSplit(Surface, Double) Obsolete.
Splits a curve into pieces using a surface.
Public methodSplit(Brep, Double, Double)
Splits a curve into pieces using a polysurface.
Public methodSplit(Surface, Double, Double)
Splits a curve into pieces using a surface.
Public methodTangentAt
Evaluates the unit tangent vector at a curve parameter.
Public methodToArcsAndLines
Converts a curve into polycurve consisting of arc segments. Sections of the input curves that are nearly straight are converted to straight-line segments.
Public methodToNurbsCurve
Constructs a NURBS curve representation of this curve.
Public methodToNurbsCurve(Interval)
Constructs a NURBS curve representation of this curve.
Public methodToPolyline(Double, Double, Double, Double)
Gets a polyline approximation of a curve.
Public methodToPolyline(Int32, Int32, Double, Double, Double, Double, Double, Double, Boolean)
Gets a polyline approximation of a curve.
Public methodToPolyline(Int32, Int32, Double, Double, Double, Double, Double, Double, Boolean, Interval)
Gets a polyline approximation of a curve.
Public methodToString (Inherited from Object.)
Public methodTransform
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.
(Inherited from GeometryBase.)
Public methodTranslate(Vector3d)
Translates the object along the specified vector.
(Inherited from GeometryBase.)
Public methodTranslate(Double, Double, Double)
Translates the object along the specified vector.
(Inherited from GeometryBase.)
Public methodTrim(Interval)
Removes portions of the curve outside the specified interval.
Public methodTrim(Double, Double)
Removes portions of the curve outside the specified interval.
Public methodTrim(CurveEnd, Double)
Shortens a curve by a given length
Public methodTryGetArc(Arc)
Try to convert this curve into an Arc using RhinoMath.ZeroTolerance.
Public methodTryGetArc(Arc, Double)
Try to convert this curve into an Arc using a custom tolerance.
Public methodTryGetArc(Plane, Arc)
Try to convert this curve into an Arc using RhinoMath.ZeroTolerance.
Public methodTryGetArc(Plane, Arc, Double)
Try to convert this curve into an Arc using a custom tolerance.
Public methodCode exampleTryGetCircle(Circle)
Try to convert this curve into a circle using RhinoMath.ZeroTolerance.
Public methodCode exampleTryGetCircle(Circle, Double)
Try to convert this curve into a Circle using a custom tolerance.
Public methodTryGetEllipse(Ellipse)
Try to convert this curve into an Ellipse within RhinoMath.ZeroTolerance.
Public methodTryGetEllipse(Ellipse, Double)
Try to convert this curve into an Ellipse using a custom tolerance.
Public methodTryGetEllipse(Plane, Ellipse)
Try to convert this curve into an Ellipse within RhinoMath.ZeroTolerance.
Public methodTryGetEllipse(Plane, Ellipse, Double)
Try to convert this curve into an Ellipse using a custom tolerance.
Public methodCode exampleTryGetPlane(Plane)
Test a curve for planarity and return the plane.
Public methodTryGetPlane(Plane, Double)
Test a curve for planarity and return the plane.
Public methodTryGetPolyline(Polyline)
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.
Public methodTryGetPolyline(Polyline, Double)
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.
Top
See Also
Inheritance Hierarchy