MeshLib C Docs
Loading...
Searching...
No Matches
MRSurfaceDistance.h File Reference
#include <MRCMisc/exports.h>
#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef struct MR_Mesh MR_Mesh
 
typedef struct MR_MeshTriPoint MR_MeshTriPoint
 
typedef struct MR_VertBitSet MR_VertBitSet
 
typedef struct MR_VertScalars MR_VertScalars
 
typedef struct MR_phmap_flat_hash_map_MR_VertId_float MR_phmap_flat_hash_map_MR_VertId_float
 
typedef struct MR_std_vector_MR_MeshTriPoint MR_std_vector_MR_MeshTriPoint
 

Functions

MRC_API MR_VertScalarsMR_computeSurfaceDistances_5_MR_VertBitSet (const MR_Mesh *mesh, const MR_VertBitSet *startVertices, const float *maxDist, const MR_VertBitSet *region, const int32_t *maxVertUpdates)
 
MRC_API MR_VertScalarsMR_computeSurfaceDistances_6_MR_VertBitSet (const MR_Mesh *mesh, const MR_VertBitSet *startVertices, const MR_VertBitSet *targetVertices, const float *maxDist, const MR_VertBitSet *region, const int32_t *maxVertUpdates)
 
MRC_API MR_VertScalarsMR_computeSurfaceDistances_5_phmap_flat_hash_map_MR_VertId_float (const MR_Mesh *mesh, const MR_phmap_flat_hash_map_MR_VertId_float *startVertices, const float *maxDist, const MR_VertBitSet *region, const int32_t *maxVertUpdates)
 
MRC_API MR_VertScalarsMR_computeSurfaceDistances_6_MR_MeshTriPoint (const MR_Mesh *mesh, const MR_MeshTriPoint *start, const MR_MeshTriPoint *end, const MR_VertBitSet *region, bool *endReached, const int32_t *maxVertUpdates)
 
MRC_API MR_VertScalarsMR_computeSurfaceDistances_5_MR_MeshTriPoint (const MR_Mesh *mesh, const MR_MeshTriPoint *start, const float *maxDist, const MR_VertBitSet *region, const int32_t *maxVertUpdates)
 
MRC_API MR_VertScalarsMR_computeSurfaceDistances_5_std_vector_MR_MeshTriPoint (const MR_Mesh *mesh, const MR_std_vector_MR_MeshTriPoint *starts, const float *maxDist, const MR_VertBitSet *region, const int32_t *maxVertUpdates)
 

Typedef Documentation

◆ MR_Mesh

typedef struct MR_Mesh MR_Mesh

◆ MR_MeshTriPoint

◆ MR_phmap_flat_hash_map_MR_VertId_float

◆ MR_std_vector_MR_MeshTriPoint

◆ MR_VertBitSet

typedef struct MR_VertBitSet MR_VertBitSet

◆ MR_VertScalars

Function Documentation

◆ MR_computeSurfaceDistances_5_MR_MeshTriPoint()

MRC_API MR_VertScalars * MR_computeSurfaceDistances_5_MR_MeshTriPoint ( const MR_Mesh * mesh,
const MR_MeshTriPoint * start,
const float * maxDist,
const MR_VertBitSet * region,
const int32_t * maxVertUpdates )

computes path distances in mesh vertices from given start point, stopping when maxDist is reached; considered paths can go either along edges or straightly within triangles Generated from function MR::computeSurfaceDistances. Parameter mesh can not be null. It is a single object. Parameter start can not be null. It is a single object. Parameter maxDist has a default argument: 3.40282347E+38F, pass a null pointer to use it. Parameter region defaults to a null pointer in C++. Parameter maxVertUpdates has a default argument: 3, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_VertScalars_Destroy() to free it when you're done using it.

◆ MR_computeSurfaceDistances_5_MR_VertBitSet()

MRC_API MR_VertScalars * MR_computeSurfaceDistances_5_MR_VertBitSet ( const MR_Mesh * mesh,
const MR_VertBitSet * startVertices,
const float * maxDist,
const MR_VertBitSet * region,
const int32_t * maxVertUpdates )

computes path distances in mesh vertices from given start vertices, stopping when maxDist is reached; considered paths can go either along edges or straightly within triangles Generated from function MR::computeSurfaceDistances. Parameter mesh can not be null. It is a single object. Parameter startVertices can not be null. It is a single object. Parameter maxDist has a default argument: 3.40282347E+38F, pass a null pointer to use it. Parameter region defaults to a null pointer in C++. Parameter maxVertUpdates has a default argument: 3, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_VertScalars_Destroy() to free it when you're done using it.

◆ MR_computeSurfaceDistances_5_phmap_flat_hash_map_MR_VertId_float()

MRC_API MR_VertScalars * MR_computeSurfaceDistances_5_phmap_flat_hash_map_MR_VertId_float ( const MR_Mesh * mesh,
const MR_phmap_flat_hash_map_MR_VertId_float * startVertices,
const float * maxDist,
const MR_VertBitSet * region,
const int32_t * maxVertUpdates )

computes path distances in mesh vertices from given start vertices with values in them, stopping when maxDist is reached; considered paths can go either along edges or straightly within triangles Generated from function MR::computeSurfaceDistances. Parameter mesh can not be null. It is a single object. Parameter startVertices can not be null. It is a single object. Parameter maxDist has a default argument: 3.40282347E+38F, pass a null pointer to use it. Parameter region defaults to a null pointer in C++. Parameter maxVertUpdates has a default argument: 3, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_VertScalars_Destroy() to free it when you're done using it.

◆ MR_computeSurfaceDistances_5_std_vector_MR_MeshTriPoint()

MRC_API MR_VertScalars * MR_computeSurfaceDistances_5_std_vector_MR_MeshTriPoint ( const MR_Mesh * mesh,
const MR_std_vector_MR_MeshTriPoint * starts,
const float * maxDist,
const MR_VertBitSet * region,
const int32_t * maxVertUpdates )

computes path distances in mesh vertices from given start points, stopping when maxDist is reached; considered paths can go either along edges or straightly within triangles Generated from function MR::computeSurfaceDistances. Parameter mesh can not be null. It is a single object. Parameter starts can not be null. It is a single object. Parameter maxDist has a default argument: 3.40282347E+38F, pass a null pointer to use it. Parameter region defaults to a null pointer in C++. Parameter maxVertUpdates has a default argument: 3, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_VertScalars_Destroy() to free it when you're done using it.

◆ MR_computeSurfaceDistances_6_MR_MeshTriPoint()

MRC_API MR_VertScalars * MR_computeSurfaceDistances_6_MR_MeshTriPoint ( const MR_Mesh * mesh,
const MR_MeshTriPoint * start,
const MR_MeshTriPoint * end,
const MR_VertBitSet * region,
bool * endReached,
const int32_t * maxVertUpdates )

computes path distance in mesh vertices from given start point, stopping when all vertices in the face where end is located are reached;

considered paths can go either along edges or straightly within triangles

Parameters
endReachedif pointer provided it will receive where a path from start to end exists Generated from function MR::computeSurfaceDistances. Parameter mesh can not be null. It is a single object. Parameter start can not be null. It is a single object. Parameter end can not be null. It is a single object. Parameter region defaults to a null pointer in C++. Parameter endReached defaults to a null pointer in C++. Parameter maxVertUpdates has a default argument: 3, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_VertScalars_Destroy() to free it when you're done using it.

◆ MR_computeSurfaceDistances_6_MR_VertBitSet()

MRC_API MR_VertScalars * MR_computeSurfaceDistances_6_MR_VertBitSet ( const MR_Mesh * mesh,
const MR_VertBitSet * startVertices,
const MR_VertBitSet * targetVertices,
const float * maxDist,
const MR_VertBitSet * region,
const int32_t * maxVertUpdates )

computes path distances in mesh vertices from given start vertices, stopping when all targetVertices or maxDist is reached; considered paths can go either along edges or straightly within triangles Generated from function MR::computeSurfaceDistances. Parameter mesh can not be null. It is a single object. Parameter startVertices can not be null. It is a single object. Parameter targetVertices can not be null. It is a single object. Parameter maxDist has a default argument: 3.40282347E+38F, pass a null pointer to use it. Parameter region defaults to a null pointer in C++. Parameter maxVertUpdates has a default argument: 3, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_VertScalars_Destroy() to free it when you're done using it.