Detailed Description Here. More...
#include <DTriangle3d.h>
Public Member Functions | |
DPlane3dByVectors (DPoint3dCR _origin, DVec3dCR _vectorU, DVec3d _vectorV) | |
DPlane3dByVectors (DTriangle3dCR triangle) | |
Convert triangle edges to vectors. More... | |
DPlane3dByVectors () | |
origin and X Y axes. More... | |
DPlane3dByVectors (DEllipse3dCR ellipse) | |
origin and axes from ellipse. More... | |
ValidatedDPlane3d | GetDPlane3dWithUnitNormal () const |
Return DPlane3d form with unit normal. More... | |
DPoint3d | Evaluate (double u, double v) const |
Evaluate point on plane at u,v. More... | |
DPlane3dByVectors | EvaluateTangents (double u, double v) const |
Evaluate point and tangents at u,v. (Of course, the tangents are just the originals) More... | |
bool | GetTransformsUnitZ (TransformR localToWorld, TransformR worldToLocal) const |
Return coordinate transforms, with unit perpendicular as Z vector in local to world. More... | |
bool | TransverseIntersection (DSegment3dCR segment, DPoint2dR uv, double &segmentFraction) const |
Compute the simple intersection of a segment with the plane. More... | |
ValidatedDPoint2d | ProjectPoint (DPoint3dCR spacePoint) const |
project spacePoint onto the plane (unbounded) More... | |
Static Public Member Functions | |
static DPlane3dByVectors | FromOriginAndParallelToXY (DPoint3d origin, double sizeU, double sizeV) |
Return a plane parallel to XY from given origin. More... | |
static DPlane3dByVectors | FromOriginAndParallelToYZ (DPoint3d origin, double sizeU, double sizeV) |
Return a plane parallel to YZ from given origin. More... | |
static DPlane3dByVectors | FromOriginAndParallelToXZ (DPoint3d origin, double sizeU, double sizeV) |
Return a plane parallel to XZ from given origin. More... | |
static DPlane3dByVectors | FromOriginAndTargets (DPoint3dCR origin, DPoint3dCR UTarget, DPoint3dCR VTarget) |
Return a plane from orgin and u,v target points. More... | |
Public Attributes | |
DPoint3d | origin |
DVec3d | vectorU |
DVec3d | vectorV |
Detailed Description Here.
DPlane3dByVectors | ( | DPoint3dCR | _origin, |
DVec3dCR | _vectorU, | ||
DVec3d | _vectorV | ||
) |
DPlane3dByVectors | ( | DTriangle3dCR | triangle | ) |
Convert triangle edges to vectors.
origin and X Y axes.
DPlane3dByVectors | ( | DEllipse3dCR | ellipse | ) |
origin and axes from ellipse.
DPoint3d Evaluate | ( | double | u, |
double | v | ||
) | const |
Evaluate point on plane at u,v.
DPlane3dByVectors EvaluateTangents | ( | double | u, |
double | v | ||
) | const |
Evaluate point and tangents at u,v. (Of course, the tangents are just the originals)
|
static |
Return a plane parallel to XY from given origin.
|
static |
Return a plane parallel to XZ from given origin.
|
static |
Return a plane parallel to YZ from given origin.
|
static |
Return a plane from orgin and u,v target points.
ValidatedDPlane3d GetDPlane3dWithUnitNormal | ( | ) | const |
Return DPlane3d form with unit normal.
bool GetTransformsUnitZ | ( | TransformR | localToWorld, |
TransformR | worldToLocal | ||
) | const |
Return coordinate transforms, with unit perpendicular as Z vector in local to world.
ValidatedDPoint2d ProjectPoint | ( | DPoint3dCR | spacePoint | ) | const |
project spacePoint onto the plane (unbounded)
bool TransverseIntersection | ( | DSegment3dCR | segment, |
DPoint2dR | uv, | ||
double & | segmentFraction | ||
) | const |
Compute the simple intersection of a segment with the plane.
Returns false in any parallel case (both in-plane and off-plane)
DPoint3d origin |
DVec3d vectorU |
DVec3d vectorV |