#define MR_EXTERN_C_BEGIN
Definition MRMeshC/MRMeshFwd.h:26
#define MR_EXTERN_C_END
Definition MRMeshC/MRMeshFwd.h:27
#define MRMESHC_API
Definition MRMeshC/MRMeshFwd.h:19
MR_EXTERN_C_BEGIN struct MRMeshProjectionResult MRMeshProjectionResult
MRMESHC_API MRFindProjectionParameters mrFindProjectionParametersNew(void)
creates a default instance
struct MRFindProjectionParameters MRFindProjectionParameters
optional parameters for mrFindProjection
MRMESHC_API MRMeshProjectionResult mrFindProjection(const MRVector3f *pt, const MRMeshPart *mp, const MRFindProjectionParameters *params)
computes the closest point on mesh (or its region) to given point
affine transformation: y = A*x + b, where A in VxV, and b in V
Definition MRMeshC/MRAffineXf.h:10
optional parameters for mrFindProjection
Definition MRMeshC/MRMeshProject.h:23
const MRAffineXf3f * xf
mesh-to-point transformation, if not specified then identity transformation is assumed
Definition MRMeshC/MRMeshProject.h:27
float upDistLimitSq
upper limit on the distance in question, if the real distance is larger than the function exits retur...
Definition MRMeshC/MRMeshProject.h:25
float loDistLimitSq
low limit on the distance in question, if a point is found within this distance then it is immediatel...
Definition MRMeshC/MRMeshProject.h:29
stores reference on whole mesh (if region is NULL) or on its part (if region pointer is valid)
Definition MRMeshC/MRMeshPart.h:9
Definition MRMeshC/MRMeshProject.h:12
MRPointOnFace proj
the closest point on mesh, transformed by xf if it is given
Definition MRMeshC/MRMeshProject.h:14
MRMeshTriPoint mtp
its barycentric representation
Definition MRMeshC/MRMeshProject.h:16
float distSq
squared distance from pt to proj
Definition MRMeshC/MRMeshProject.h:18
Definition MRMeshC/MRMeshTriPoint.h:15
Definition MRMeshC/MRPointOnFace.h:11
three-dimensional vector
Definition MRMeshC/MRVector3.h:9