Show / Hide Table of Contents

Class PlaneRef

A reference to a plane. The Plane is implemented as a struct, i.e. a value type. Sometimes it is necessary to have a parameter or member, which designates a plane but may be null (when the plane is not yet computed or not valid). This class works as an object replacement of the struct Plane.

Inheritance
System.Object
PlaneRef
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 class PlaneRef

Constructors

| Improve this Doc View Source

PlaneRef(Plane)

Standard and only constructor, wrapping the given Plane.

Declaration
public PlaneRef(Plane p)
Parameters
Type Name Description
Plane p

The Plane to wrap

Methods

| Improve this Doc View Source

FindCommonPlane(GeoPoint[], out Plane)

Yields a common plane of the cloud of points, if there is one. If there is no common plane the result may be not optimal (residual is not minimal)

Declaration
public static bool FindCommonPlane(GeoPoint[] Cloud, out Plane commonPlane)
Parameters
Type Name Description
GeoPoint[] Cloud

the cloud of points

Plane commonPlane
Returns
Type Description
System.Boolean

the plane, may be null

Operators

| Improve this Doc View Source

Implicit(Plane to PlaneRef)

Operator to seamlessly use a Plane as a PlaneRef

Declaration
public static implicit operator PlaneRef(Plane p)
Parameters
Type Name Description
Plane p
Returns
Type Description
PlaneRef

The resulting PlaneRef

| Improve this Doc View Source

Implicit(PlaneRef to Plane)

Operator to seamlessly use a PlaneRef as a Plane

Declaration
public static implicit operator Plane(PlaneRef pr)
Parameters
Type Name Description
PlaneRef pr

The PlaneRef to convert

Returns
Type Description
Plane

The resulting Plane

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX