Show / Hide Table of Contents

Class Curves

This class provides static methods concerning the interaction of two or more ICurve objects.

Inheritance
System.Object
Curves
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CADability.GeoObject
Assembly: CADability.dll
Syntax
public class Curves

Methods

| Improve this Doc View Source

Combine(ICurve, ICurve, Double)

Tries to combine two curves. crv1 and crv2 must be correct oriented and the endpoint of crv1 mut be the start-point of crv2

Declaration
public static ICurve Combine(ICurve crv1, ICurve crv2, double precision)
Parameters
Type Name Description
ICurve crv1
ICurve crv2
System.Double precision
Returns
Type Description
ICurve

the combined curve or null, if not possible

| Improve this Doc View Source

GetCommonPlane(ICurve, ICurve, out Plane)

Determines the common plane of the two curves. If there is a common plane, the Parameter CommonPlane gets the result ant the function returns true. Otherwise the function returns false.

Declaration
public static bool GetCommonPlane(ICurve c1, ICurve c2, out Plane CommonPlane)
Parameters
Type Name Description
ICurve c1

first curve

ICurve c2

second curve

Plane CommonPlane

the resulting common plane

Returns
Type Description
System.Boolean
| Improve this Doc View Source

GetCommonPlane(ICurve[], out Plane)

Tries to find a plane that contains most of the given curves.

Declaration
public static bool GetCommonPlane(ICurve[] curves, out Plane CommonPlane)
Parameters
Type Name Description
ICurve[] curves
Plane CommonPlane
Returns
Type Description
System.Boolean
| Improve this Doc View Source

GetCommonPlane(GeoPoint, ICurve, out Plane)

Determines the commomn plane of a point and a curve. Returns the common plane in the parameter and true if there is such a plane. Returns false, if the point lies not in the plane. Precision

Declaration
public static bool GetCommonPlane(GeoPoint p, ICurve c2, out Plane CommonPlane)
Parameters
Type Name Description
GeoPoint p

The point

ICurve c2

The curve

Plane CommonPlane

The common plane

Returns
Type Description
System.Boolean

true, if there is a common plane, else false

| Improve this Doc View Source

Intersect(ICurve, ICurve, Boolean)

Returns the parameters of the intersection points of curve1 with curve2. Parameters are with respect to curve1. The two curves must reside in a common plane.

Declaration
public static double[] Intersect(ICurve curve1, ICurve curve2, bool onlyInside)
Parameters
Type Name Description
ICurve curve1

First curve for intersection

ICurve curve2

Second curve for intersection

System.Boolean onlyInside

if true, only intersction point that are actually on the curves are returned otherwise also intersection points on the extension of ther curves are returned

Returns
Type Description
System.Double[]

Parameters for the intersection points

| Improve this Doc View Source

Intersect(ICurve, ICurve, out Double[], out Double[], out GeoPoint[])

Calculates the intersection points of the two curves.

Declaration
public static int Intersect(ICurve curve1, ICurve curve2, out double[] par1, out double[] par2, out GeoPoint[] intersection)
Parameters
Type Name Description
ICurve curve1

First curve

ICurve curve2

Second curve

System.Double[] par1

Resulting parameters for the first curve

System.Double[] par2

Resulting parameters for the second curve

GeoPoint[] intersection

Three dimensional intersection points

Returns
Type Description
System.Int32

Number of intersection points

| Improve this Doc View Source

Overlapping(ICurve, ICurve, Double, out Double, out Double, out Double, out Double)

Returns true if curve1 and curve2 are overlapping curves. The overlapping intervalls for both curves are returned in from1, to1, from2 and to2.

Declaration
public static bool Overlapping(ICurve curve1, ICurve curve2, double precision, out double from1, out double to1, out double from2, out double to2)
Parameters
Type Name Description
ICurve curve1

First curve

ICurve curve2

Second curve

System.Double precision

Required precision

System.Double from1

Starting parameter for first curve

System.Double to1

Ending parameter for first curve

System.Double from2

Starting parameter for second curve

System.Double to2

Ending parameter for second curve

Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX