Show / Hide Table of Contents

Class BoxedSurfaceExtension

Inheritance
System.Object
BoxedSurfaceExtension
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
Assembly: CADability.dll
Syntax
public static class BoxedSurfaceExtension

Methods

| Improve this Doc View Source

CurveIntersection2D(ICurve2D, Double, Double, ICurve2D, Double, Double, ref Double, ref Double, ref GeoPoint2D)

Declaration
public static bool CurveIntersection2D(ICurve2D curve1, double spar1, double epar1, ICurve2D curve2, double spar2, double epar2, ref double par1, ref double par2, ref GeoPoint2D ip)
Parameters
Type Name Description
ICurve2D curve1
System.Double spar1
System.Double epar1
ICurve2D curve2
System.Double spar2
System.Double epar2
System.Double par1
System.Double par2
GeoPoint2D ip
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CurveSurfaceIntersection(ISurface, ICurve, BoundingRect, Double, Double, ref GeoPoint2D, ref Double, out GeoPoint)

Declaration
public static bool CurveSurfaceIntersection(ISurface surface, ICurve curve, BoundingRect surfaceBounds, double uOnCurveMin, double uOnCurveMax, ref GeoPoint2D uvOnSurface, ref double uOnCurve, out GeoPoint ip)
Parameters
Type Name Description
ISurface surface
ICurve curve
BoundingRect surfaceBounds
System.Double uOnCurveMin
System.Double uOnCurveMax
GeoPoint2D uvOnSurface
System.Double uOnCurve
GeoPoint ip
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CurveSurfaceIntersection(ISurface, ICurve, ref GeoPoint2D, ref Double, out GeoPoint)

Declaration
public static bool CurveSurfaceIntersection(ISurface surface, ICurve curve, ref GeoPoint2D uvOnSurface, ref double uOnCurve, out GeoPoint ip)
Parameters
Type Name Description
ISurface surface
ICurve curve
GeoPoint2D uvOnSurface
System.Double uOnCurve
GeoPoint ip
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CurveSurfaceIntersectionDL(ISurface, ICurve, BoundingRect, Double, Double, ref GeoPoint2D, ref Double, out GeoPoint)

Declaration
public static bool CurveSurfaceIntersectionDL(ISurface surface, ICurve curve, BoundingRect surfaceBounds, double uOnCurveMin, double uOnCurveMax, ref GeoPoint2D uvOnSurface, ref double uOnCurve, out GeoPoint ip)
Parameters
Type Name Description
ISurface surface
ICurve curve
BoundingRect surfaceBounds
System.Double uOnCurveMin
System.Double uOnCurveMax
GeoPoint2D uvOnSurface
System.Double uOnCurve
GeoPoint ip
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CurveSurfaceIntersectionLM(ISurface, ICurve, ref GeoPoint2D, ref Double, out GeoPoint)

Declaration
public static bool CurveSurfaceIntersectionLM(ISurface surface, ICurve curve, ref GeoPoint2D uvOnSurface, ref double uOnCurve, out GeoPoint ip)
Parameters
Type Name Description
ISurface surface
ICurve curve
GeoPoint2D uvOnSurface
System.Double uOnCurve
GeoPoint ip
Returns
Type Description
System.Boolean
| Improve this Doc View Source

LineFit(IEnumerable<GeoPoint>, Double, out GeoPoint, out GeoVector)

Declaration
public static double LineFit(IEnumerable<GeoPoint> points, double precision, out GeoPoint location, out GeoVector direction)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<GeoPoint> points
System.Double precision
GeoPoint location
GeoVector direction
Returns
Type Description
System.Double
| Improve this Doc View Source

PlaneFit(IEnumerable<GeoPoint>, out GeoPoint, out GeoVector)

Fit a plane through a number of points. This is working, but has a bad performance. Better use Plane.FromPoints

Declaration
public static bool PlaneFit(IEnumerable<GeoPoint> points, out GeoPoint location, out GeoVector normal)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<GeoPoint> points
GeoPoint location
GeoVector normal
Returns
Type Description
System.Boolean
| Improve this Doc View Source

PositionOfLM(ISurface, GeoPoint, ref GeoPoint2D, out Double)

Find the (u,v)-position for the provided point on a surface. Using the LevenbergMarquardtMinimizer from MathNet. Slower than the NewtonMinimizer but working with first tests. It is said that it is more robust.

Declaration
public static bool PositionOfLM(ISurface surface, GeoPoint p3d, ref GeoPoint2D res, out double mindist)
Parameters
Type Name Description
ISurface surface
GeoPoint p3d
GeoPoint2D res
System.Double mindist
Returns
Type Description
System.Boolean
| Improve this Doc View Source

PositionOfMN(ISurface, GeoPoint, ref GeoPoint2D, out Double)

Find the (u,v)-position for the provided point on a surface. Using the NewtonMinimizer from MathNet. Faster than LevenbergMarquardtMinimizer. Surfaces need second derivatives.

Declaration
public static bool PositionOfMN(ISurface surface, GeoPoint p3d, ref GeoPoint2D res, out double mindist)
Parameters
Type Name Description
ISurface surface
GeoPoint p3d
GeoPoint2D res
System.Double mindist
Returns
Type Description
System.Boolean
| Improve this Doc View Source

SurfacesIntersectionLM(ISurface, ISurface, ISurface, ref GeoPoint2D, ref GeoPoint2D, ref GeoPoint2D, ref GeoPoint)

Declaration
public static bool SurfacesIntersectionLM(ISurface surface1, ISurface surface2, ISurface surface3, ref GeoPoint2D uv1, ref GeoPoint2D uv2, ref GeoPoint2D uv3, ref GeoPoint ip)
Parameters
Type Name Description
ISurface surface1
ISurface surface2
ISurface surface3
GeoPoint2D uv1
GeoPoint2D uv2
GeoPoint2D uv3
GeoPoint ip
Returns
Type Description
System.Boolean
| Improve this Doc View Source

SurfacesIntersectionLM(Polynom, Polynom, Polynom, ref GeoPoint)

Declaration
public static bool SurfacesIntersectionLM(Polynom surface1, Polynom surface2, Polynom surface3, ref GeoPoint ip)
Parameters
Type Name Description
Polynom surface1
Polynom surface2
Polynom surface3
GeoPoint ip
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Test()

Declaration
public static void Test()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX