ml::WEMGeometry Class Reference

Tool class for performing geometric analyzes on a WEMPatch. More...

#include <WEMGeometry.h>

List of all members.

Public Member Functions

 WEMGeometry ()
 Standard constructor.
 ~WEMGeometry ()
 Standard destructor.

Static Public Member Functions

static bool isPointInsideWEMPatch (const Vector3 &position, WEMPatch *wemPatch)
 Checks if the given point is inside the given WEMPatch.
static bool isLineIntersectingFace (const Vector3 &startPos, const Vector3 &endPos, WEMFace *face, WEMPatch *wemPatch)
 Checks if the given line (from startPos to endPos) intersects the given WEMFace.
static bool pointInsidePolygon (const Vector3 &point, const std::vector< Vector3 > &polygon)
 Computes if the given point lies inside the polygon, given by the list of points.
static bool checkForEdgeNodeCrossing (const Vector3 &rayStart, const Vector3 &rayEnd, WEMFace *face)
 Checks if the given ray crosses any edge or node of the given face.
static double computeSegmentSegmentDistance (const Vector3 &start0, const Vector3 &end0, const Vector3 &start1, const Vector3 &end1, Vector3 &intersectionPoint)
 Returns the minimum distance between the two given segments. If this distance is 0, the intersectionPoint is valid.


Detailed Description

Tool class for performing geometric analyzes on a WEMPatch.

Definition at line 22 of file WEMGeometry.h.


Constructor & Destructor Documentation

ml::WEMGeometry::WEMGeometry (  ) 

Standard constructor.

ml::WEMGeometry::~WEMGeometry (  ) 

Standard destructor.


Member Function Documentation

static bool ml::WEMGeometry::checkForEdgeNodeCrossing ( const Vector3 rayStart,
const Vector3 rayEnd,
WEMFace face 
) [static]

Checks if the given ray crosses any edge or node of the given face.

static double ml::WEMGeometry::computeSegmentSegmentDistance ( const Vector3 start0,
const Vector3 end0,
const Vector3 start1,
const Vector3 end1,
Vector3 intersectionPoint 
) [static]

Returns the minimum distance between the two given segments. If this distance is 0, the intersectionPoint is valid.

static bool ml::WEMGeometry::isLineIntersectingFace ( const Vector3 startPos,
const Vector3 endPos,
WEMFace face,
WEMPatch wemPatch 
) [static]

Checks if the given line (from startPos to endPos) intersects the given WEMFace.

static bool ml::WEMGeometry::isPointInsideWEMPatch ( const Vector3 position,
WEMPatch wemPatch 
) [static]

Checks if the given point is inside the given WEMPatch.

static bool ml::WEMGeometry::pointInsidePolygon ( const Vector3 point,
const std::vector< Vector3 > &  polygon 
) [static]

Computes if the given point lies inside the polygon, given by the list of points.

Both, the point and the polygon must be projected onto the x-y plane.


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

Generated on Sat Sep 3 18:39:41 2011 for MeVisLab Toolbox Reference by  doxygen 1.5.8