Public Member Functions | Static Public Member Functions | Public Attributes | List of all members

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

Detailed Description Here.

Constructor & Destructor Documentation

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.

Member Function Documentation

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 DPlane3dByVectors FromOriginAndParallelToXY ( DPoint3d  origin,
double  sizeU,
double  sizeV 
)
static

Return a plane parallel to XY from given origin.

static DPlane3dByVectors FromOriginAndParallelToXZ ( DPoint3d  origin,
double  sizeU,
double  sizeV 
)
static

Return a plane parallel to XZ from given origin.

static DPlane3dByVectors FromOriginAndParallelToYZ ( DPoint3d  origin,
double  sizeU,
double  sizeV 
)
static

Return a plane parallel to YZ from given origin.

static DPlane3dByVectors FromOriginAndTargets ( DPoint3dCR  origin,
DPoint3dCR  UTarget,
DPoint3dCR  VTarget 
)
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)

Returns
u,v coordinates of the projection. This is marked valid in the usual case of independent (nonzero, non-parallel) plane vectors.
Remarks
if the plane vectors are parallel, the returned parameters do a projection to the longer vector, and are marked invalid
if the plane vectors are both zero, the returned parameters are zero and are marked invalid.
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)

Member Data Documentation

DPoint3d origin
DVec3d vectorU
DVec3d vectorV

The documentation for this struct was generated from the following file:

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.