MeshLib C++ Docs
Loading...
Searching...
No Matches
Group Surface Distance Builder

Classes

struct  MR::VertDistance
class  MR::SurfaceDistanceBuilder
 this class is responsible for iterative construction of distance map along the surface More...

Functions

bool MR::operator< (const VertDistance &a, const VertDistance &b)
 smaller distance to be the first
bool MR::getFieldAtC (const Vector3f &b, const Vector3f &c, float vb, float &vc)

Detailed Description

Function Documentation

◆ getFieldAtC()

bool MR::getFieldAtC ( const Vector3f & b,
const Vector3f & c,
float vb,
float & vc )
nodiscard

#include <MRMesh/MRSurfaceDistanceBuilder.h>

consider triangle 0bc, where a linear scalar field is defined in two points: v(0) = 0, v(b) = b; computes the field in c-point; returns false if field gradient enters c-point not from inside of the triangle

◆ operator<()

bool MR::operator< ( const VertDistance & a,
const VertDistance & b )
inline

#include <MRMesh/MRSurfaceDistanceBuilder.h>

smaller distance to be the first