MeVisLab Toolbox Reference
ml::WEMNearestPointOnSurface Class Reference

This class constructs a bounding sphere hierarchy of all non-empty triangles (i.e. More...

#include <WEMNearestPointOnSurface.h>

Classes

struct  Result
 Result structure for getNearestTriangle: More...
 

Public Member Functions

 WEMNearestPointOnSurface (WEM *wem)
 WEM must solely consist of WEMTrianglePatches, otherwise isValid returns false.
 
 ~WEMNearestPointOnSurface ()
 
bool isValid () const
 Return if the given WEM only had triangle patches.
 
Result getNearestTriangle (const Vector3 &p) const
 Get the nearest triangle point of the WEM relative to p.
 

Detailed Description

This class constructs a bounding sphere hierarchy of all non-empty triangles (i.e.

, none of the edges of the triangle may have length 0) in the given WEM.

It then allows to search for the nearest point on the WEM surface relative to a given point.

Definition at line 29 of file WEMNearestPointOnSurface.h.

Constructor & Destructor Documentation

◆ WEMNearestPointOnSurface()

ml::WEMNearestPointOnSurface::WEMNearestPointOnSurface ( WEM * wem)

WEM must solely consist of WEMTrianglePatches, otherwise isValid returns false.

◆ ~WEMNearestPointOnSurface()

ml::WEMNearestPointOnSurface::~WEMNearestPointOnSurface ( )

Member Function Documentation

◆ getNearestTriangle()

Result ml::WEMNearestPointOnSurface::getNearestTriangle ( const Vector3 & p) const

Get the nearest triangle point of the WEM relative to p.

◆ isValid()

bool ml::WEMNearestPointOnSurface::isValid ( ) const
inline

Return if the given WEM only had triangle patches.

Definition at line 37 of file WEMNearestPointOnSurface.h.


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