MeVisLabToolboxReference
|
Tool namespace for performing geometric analyzes on a WEMPatch. More...
Functions | |
MLWEM_EXPORT bool | isPointInsideWEMPatch (const Vector3 &position, WEMPatch *wemPatch) |
Returns whether the given point is inside the given WEMPatch. | |
MLWEM_EXPORT bool | isLineIntersectingFace (const Vector3 &startPos, const Vector3 &endPos, WEMFace *face, WEMPatch *wemPatch) |
Returns whether the given line (from startPos to endPos) intersects the given WEMFace. | |
MLWEM_EXPORT bool | pointInsidePolygon (const Vector3 &point, const std::vector< Vector3 > &polygon) |
Returns whether the given point lies inside the polygon, given by the list of points. | |
MLWEM_EXPORT bool | checkForEdgeNodeCrossing (const Vector3 &rayStart, const Vector3 &rayEnd, WEMFace *face) |
Returns whether the given ray crosses any edge or node of the given face. | |
MLWEM_EXPORT 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. |
Tool namespace for performing geometric analyzes on a WEMPatch.
MLWEM_EXPORT bool ml::WEMGeometry::checkForEdgeNodeCrossing | ( | const Vector3 & | rayStart, |
const Vector3 & | rayEnd, | ||
WEMFace * | face | ||
) |
Returns whether the given ray crosses any edge or node of the given face.
MLWEM_EXPORT double ml::WEMGeometry::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.
MLWEM_EXPORT bool ml::WEMGeometry::isLineIntersectingFace | ( | const Vector3 & | startPos, |
const Vector3 & | endPos, | ||
WEMFace * | face, | ||
WEMPatch * | wemPatch | ||
) |
Returns whether the given line (from startPos to endPos) intersects the given WEMFace.
MLWEM_EXPORT bool ml::WEMGeometry::isPointInsideWEMPatch | ( | const Vector3 & | position, |
WEMPatch * | wemPatch | ||
) |
Returns whether the given point is inside the given WEMPatch.
MLWEM_EXPORT bool ml::WEMGeometry::pointInsidePolygon | ( | const Vector3 & | point, |
const std::vector< Vector3 > & | polygon | ||
) |
Returns whether 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 before.