EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Public Attributes | List of all members
EBGeometry::ClosestFace< T > Struct Template Reference

The face of a mesh closest to a query point, as the mesh SDFs' getClosestFace() returns it. More...

#include <EBGeometry_MeshDistanceFunctions.hpp>

Public Attributes

T signedDistance = Math::Limits<T>::max()
 Signed distance to the closest face; negative inside.
 
uint32_t faceId = UINT32_MAX
 Id of the closest face; UINT32_MAX for an empty mesh.
 

Detailed Description

template<class T>
struct EBGeometry::ClosestFace< T >

The face of a mesh closest to a query point, as the mesh SDFs' getClosestFace() returns it.

A plain, trivially copyable value, so getClosestFace() is callable on a device. When several faces are equally close (a point nearest an edge or vertex they share), the first one found is reported.

Template Parameters
TFloating-point precision type.

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