CADability dotNET
The Plane type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Plane(SerializationInfo, StreamingContext) |
Constructor required by deserialization
| |
Plane(GeoPoint, GeoVector) |
Creates a new plane. The parameter data is under-determined for the plane, so the x-axis and y-axis
will be determined arbitrarily
| |
Plane(Plane, Double) | ||
Plane(Plane..::..StandardPlane, Double) |
Creates a new plane parallel to a [!:Standardplane] with a given offset
| |
Plane(GeoPoint, GeoPoint, GeoPoint) |
Creates a new plane with the given parameters. Throws a PlaneException, if
the three points are colinear
| |
Plane(GeoPoint, GeoVector, GeoVector) |
Enum type to specify the position of an object relative to a plane
|
Methods
Name | Description | |
---|---|---|
Align(GeoPoint2D) | ||
Align(Plane, Boolean) |
Aligns the DirectionX and DirectionY vectors of this plane
so that the projection of DirectionX of AlignTo and DircetionX of this plane are parallel.
If the two planes are parallel, the DirectionX and DirectionY of both planes will
also be parallel. The plane will not be changed. The Location of this
plane will be changed to a point closest to the location of AlignTo, if relocate
is true, otherwise the location remains unchanged.
| |
Align(Plane, Boolean, Boolean) |
Aligns the DirectionX and DirectionY vectors of this plane
so that the projection of DirectionX of AlignTo and DircetionX of this plane are parallel.
If the two planes are parallel, the DirectionX and DirectionY of both planes will
also be parallel. The plane will not be changed. The Location of this
plane will be changed to a point closest to the location of AlignTo, if relocate
is true, otherwise the location remains unchanged. If flip is true
there is an additional check whether the angle between the two normal vectors is less than
90°. If not, the y-axis is reversed and the angle between the two normal vectors will be
less than 90°
| |
Distance |
Returns the signed distance of the point from the plane. The direction of the normal vector
of the plane determins the sign of the result.
| |
Elem | ||
FromPoints |
Finds a plane that best fits through the given points. Calculates also the maximum distance
of the points from that plane. If MaxDistance is 0.0 or small, the points are coplanar.
| |
GetProjection |
Returns a projection that projects (perpendiccular) from global space to this plane
| |
Interfere | ||
Intersect(GeoPoint, GeoVector) |
Returns the intersection plane of the line given by the parameters with this plane.
| |
Intersect(Plane, GeoPoint%, GeoVector%) | ||
Intersect3Planes | ||
IsValid |
An uninitialized plane is invalid, because its normal vector is (0,0,0).
| |
Modify | ||
Offset |
Returns a plane parallel to this plane with the given offset
| |
Project(GeoPoint) |
Projects the given point (perpendicular) onto this plane and returns the two-dimensional
point as expressed in the coordinate system of this plane.
| |
Project(GeoVector) |
Projects the given vector (perpendicular) onto this plane and returns the two-dimensional
vector as expressed in the coordinate system of this plane.
| |
Reverse | ||
ToGlobal(GeoPoint) |
Inverse to the appropriate ToLocal(GeoPoint) method. The given point
is assumed in the coordinate ststem of this plane.
Returns the point in the global coordinate system.
| |
ToGlobal(GeoPoint2D) |
Inverse to the appropriate Project(GeoPoint) method. Returns the point in the
global coordinate system
| |
ToGlobal(GeoVector) |
Returns the 3D GeoVector corresponding to the given GeoVector in the coordinate
system of the plane.
| |
ToGlobal(GeoVector2D) |
Inverse to the appropriate Project(GeoVector) method. Returns the vector in the
global coordinate system
| |
ToLocal(GeoPoint) |
Returns the point as expressed in the coordinate system of this plane
| |
ToLocal(GeoVector) |
Returns the vector as expressed in the coordinate system of this plane
| |
ToLocal(Plane) |
Returns the plane given in parameter p expressed in the coordinate system of this plane
|
Fields
Name | Description | |
---|---|---|
XYPlane |
Returns the X/Y plane.
| |
XZPlane |
Returns the X/Z plane.
| |
YZPlane |
Returns the Y/Z plane.
|
Properties
Name | Description | |
---|---|---|
CoordSys |
Returns the coordinate system corresponding to this plane. The z-axis of the coordinate system
is the normal vector of this plane (always right handed)
| |
DirectionX |
Gets or sets the direction of the x-axis of this plane. Setting the x-axis results in a
reculculation of the y-axis to make the axis perpendicular.
| |
DirectionY |
Gets or sets the direction of the y-axis of this plane. Setting the y-axis results in a
reculculation of the x-axis to make the axis perpendicular.
| |
Location |
Gets or sets the location of this plane
| |
Normal |
Gets or sets the normal vector of this plane. Setting the normal vector results in a
recalculation of the x-axis and y-axis of this plane
|
Explicit Interface Implementations
Name | Description | |
---|---|---|
ISerializable..::..GetObjectData |