MeshLib Documentation
Loading...
Searching...
No Matches
MRMeshDistance.h File Reference
#include "MRMeshPart.h"
#include "MRSignDetectionMode.h"
#include <cfloat>
#include <functional>
#include <optional>

Go to the source code of this file.

Classes

struct  MR::DistanceToMeshOptions
 

Namespaces

namespace  MR
 

Typedefs

using MR::TriangleCallback = std::function<ProcessOneResult( const Vector3f & p, FaceId f, const Vector3f & q, float distSq )>
 

Enumerations

enum class  MR::ProcessOneResult : bool { MR::ProcessOneResult::StopProcessing = false , MR::ProcessOneResult::ContinueProcessing = true }
 

Functions

MRMESH_API void MR::processCloseTriangles (const MeshPart &mp, const Triangle3f &t, float rangeSq, const TriangleCallback &call)
 
MRMESH_API std::optional< float > MR::signedDistanceToMesh (const MeshPart &mp, const Vector3f &p, const DistanceToMeshOptions &op)