Go to the source code of this file.
Typedefs | |
| typedef struct MR_RegularMapMesher | MR_RegularMapMesher |
| Class for making mesh from regular distance map. | |
| typedef struct MR_RegularMapMesher MR_RegularMapMesher |
Class for making mesh from regular distance map.
distance for each lattice of map is defined as point on ray from surface point cloud to direction point cloud, with length equal to 1/distance from distances file (if distance in file == 0 ray had no point) Generated from class MR::RegularMapMesher. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
| MRC_API MR_RegularMapMesher * MR_RegularMapMesher_AssignFromAnother | ( | MR_RegularMapMesher * | _this, |
| MR_PassBy | _other_pass_by, | ||
| MR_RegularMapMesher * | _other ) |
Generated from method MR::RegularMapMesher::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.
| MRC_API MR_RegularMapMesher * MR_RegularMapMesher_ConstructFromAnother | ( | MR_PassBy | _other_pass_by, |
| MR_RegularMapMesher * | _other ) |
Generated from constructor MR::RegularMapMesher::RegularMapMesher. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_RegularMapMesher_Destroy() to free it when you're done using it.
| MRC_API MR_expected_MR_Mesh_std_string * MR_RegularMapMesher_createMesh | ( | const MR_RegularMapMesher * | _this | ) |
Creates mesh if all components were successfully loaded Generated from method MR::RegularMapMesher::createMesh. Parameter _this can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_Mesh_std_string_Destroy() to free it when you're done using it.
| MRC_API MR_RegularMapMesher * MR_RegularMapMesher_DefaultConstruct | ( | void | ) |
Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_RegularMapMesher_Destroy() to free it when you're done using it.
| MRC_API MR_RegularMapMesher * MR_RegularMapMesher_DefaultConstructArray | ( | size_t | num_elems | ) |
Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_RegularMapMesher_DestroyArray(). Use MR_RegularMapMesher_OffsetMutablePtr() and MR_RegularMapMesher_OffsetPtr() to access the array elements.
| MRC_API void MR_RegularMapMesher_Destroy | ( | const MR_RegularMapMesher * | _this | ) |
Destroys a heap-allocated instance of MR_RegularMapMesher. Does nothing if the pointer is null.
| MRC_API void MR_RegularMapMesher_DestroyArray | ( | const MR_RegularMapMesher * | _this | ) |
Destroys a heap-allocated array of MR_RegularMapMesher. Does nothing if the pointer is null.
| MRC_API MR_expected_void_std_string * MR_RegularMapMesher_loadDistances | ( | MR_RegularMapMesher * | _this, |
| int | width, | ||
| int | height, | ||
| const char * | path, | ||
| const char * | path_end ) |
Loads distances form distances file (1/distance) Generated from method MR::RegularMapMesher::loadDistances. Parameter _this can not be null. It is a single object. Parameter path is a UTF-8 encoded filesystem path. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.
| MRC_API MR_RegularMapMesher * MR_RegularMapMesher_OffsetMutablePtr | ( | MR_RegularMapMesher * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API const MR_RegularMapMesher * MR_RegularMapMesher_OffsetPtr | ( | const MR_RegularMapMesher * | ptr, |
| ptrdiff_t | i ) |
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
| MRC_API void MR_RegularMapMesher_setDirectionsPC | ( | MR_RegularMapMesher * | _this, |
| const MR_std_shared_ptr_MR_PointCloud * | directionsPC ) |
Sets directions Point Cloud Generated from method MR::RegularMapMesher::setDirectionsPC. Parameter _this can not be null. It is a single object. Parameter directionsPC can not be null. It is a single object.
| MRC_API void MR_RegularMapMesher_setDistances | ( | MR_RegularMapMesher * | _this, |
| int | width, | ||
| int | height, | ||
| const MR_std_vector_float * | distances ) |
Sets distances Generated from method MR::RegularMapMesher::setDistances. Parameter _this can not be null. It is a single object. Parameter distances can not be null. It is a single object.
| MRC_API void MR_RegularMapMesher_setSurfacePC | ( | MR_RegularMapMesher * | _this, |
| const MR_std_shared_ptr_MR_PointCloud * | surfacePC ) |
Sets surface Point Cloud Generated from method MR::RegularMapMesher::setSurfacePC. Parameter _this can not be null. It is a single object. Parameter surfacePC can not be null. It is a single object.