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

Go to the source code of this file.

Typedefs

typedef struct MR_Mesh MR_Mesh
 
typedef struct MR_expected_std_vector_std_vector_MR_Vector3f_std_string MR_expected_std_vector_std_vector_MR_Vector3f_std_string
 
typedef struct MR_std_function_float_from_int32_t MR_std_function_float_from_int32_t
 
typedef struct MR_std_vector_MR_MeshTriPoint MR_std_vector_MR_MeshTriPoint
 

Functions

MRC_API MR_expected_std_vector_std_vector_MR_Vector3f_std_stringMR_offsetSurfaceLine_float (const MR_Mesh *mesh, const MR_std_vector_MR_MeshTriPoint *surfaceLine, float offset)
 Returns contours in mesh space that are offset from surfaceLine on offset amount in all directions.
 
MRC_API MR_expected_std_vector_std_vector_MR_Vector3f_std_stringMR_offsetSurfaceLine_std_function_float_func_from_int32_t (const MR_Mesh *mesh, const MR_std_vector_MR_MeshTriPoint *surfaceLine, const MR_std_function_float_from_int32_t *offsetAtPoint)
 Returns contours in mesh space that are offset from surfaceLine on offsetAtPoint amount in all directions.
 

Typedef Documentation

◆ MR_expected_std_vector_std_vector_MR_Vector3f_std_string

◆ MR_Mesh

typedef struct MR_Mesh MR_Mesh

◆ MR_std_function_float_from_int32_t

◆ MR_std_vector_MR_MeshTriPoint

Function Documentation

◆ MR_offsetSurfaceLine_float()

MRC_API MR_expected_std_vector_std_vector_MR_Vector3f_std_string * MR_offsetSurfaceLine_float ( const MR_Mesh * mesh,
const MR_std_vector_MR_MeshTriPoint * surfaceLine,
float offset )

Returns contours in mesh space that are offset from surfaceLine on offset amount in all directions.

Parameters
meshmesh to perform offset on
surfaceLinesurface line to perofrm offset from
offsetamount of offset, note that absolute value is used
Returns
resulting offset contours or error if something goes wrong

Generated from function MR::offsetSurfaceLine. Parameter mesh can not be null. It is a single object. Parameter surfaceLine can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_std_vector_std_vector_MR_Vector3f_std_string_Destroy() to free it when you're done using it.

◆ MR_offsetSurfaceLine_std_function_float_func_from_int32_t()

MRC_API MR_expected_std_vector_std_vector_MR_Vector3f_std_string * MR_offsetSurfaceLine_std_function_float_func_from_int32_t ( const MR_Mesh * mesh,
const MR_std_vector_MR_MeshTriPoint * surfaceLine,
const MR_std_function_float_from_int32_t * offsetAtPoint )

Returns contours in mesh space that are offset from surfaceLine on offsetAtPoint amount in all directions.

Parameters
meshmesh to perform offset on
surfaceLinesurface line to perofrm offset from
offsetAtPointfunction that can return different amount of offset in different point (argument is index of point in surfaceLine), note that absolute value is used
Returns
resulting offset contours or error if something goes wrong

Generated from function MR::offsetSurfaceLine. Parameter mesh can not be null. It is a single object. Parameter surfaceLine can not be null. It is a single object. Parameter offsetAtPoint can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_std_vector_std_vector_MR_Vector3f_std_string_Destroy() to free it when you're done using it.