Class for making mesh from regular distance map. More...
Public Member Functions | |
| RegularMapMesher (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner) | |
| RegularMapMesher () | |
| RegularMapMesher (meshlib.RegularMapMesher _other) | |
| meshlib.RegularMapMesher | assignFromAnother (meshlib.RegularMapMesher _other) |
| void | setSurfacePC (meshlib.std_shared_ptr_MR_PointCloud surfacePC) |
| void | setDirectionsPC (meshlib.std_shared_ptr_MR_PointCloud directionsPC) |
| void | loadDistances (int width, int height, java.lang.String path) |
| void | setDistances (int width, int height, meshlib.std_vector_float distances) |
| meshlib.Mesh | createMesh () |
| Public Member Functions inherited from meshlib.CppObject | |
| final java.lang.foreign.MemorySegment | rawPointer () |
| final boolean | isOwned () |
| final void | close () |
| final java.lang.foreign.MemorySegment | release () |
Additional Inherited Members | |
| Protected Member Functions inherited from meshlib.CppObject | |
| CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner) | |
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.
Instances created here own their C++ objects, see CppObject.
| meshlib.RegularMapMesher.RegularMapMesher | ( | java.lang.foreign.MemorySegment | ptr, |
| boolean | owned, | ||
| java.lang.Object | owner ) |
Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.
| meshlib.RegularMapMesher.RegularMapMesher | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_RegularMapMesher_DefaultConstruct().
| meshlib.RegularMapMesher.RegularMapMesher | ( | meshlib.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.
Calls MR_RegularMapMesher_ConstructFromAnother().
| meshlib.RegularMapMesher meshlib.RegularMapMesher.assignFromAnother | ( | meshlib.RegularMapMesher | _other | ) |
Generated from method MR::RegularMapMesher::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.
Calls MR_RegularMapMesher_AssignFromAnother().
| meshlib.Mesh meshlib.RegularMapMesher.createMesh | ( | ) |
Creates mesh if all components were successfully loaded Generated from method MR::RegularMapMesher::createMesh.
Calls MR_RegularMapMesher_createMesh(). The C++ function returns expected<MR::Mesh, std::string>: the value is returned and an error is thrown as UnexpectedResultException.
| void meshlib.RegularMapMesher.loadDistances | ( | int | width, |
| int | height, | ||
| java.lang.String | path ) |
Loads distances form distances file (1/distance) Generated from method MR::RegularMapMesher::loadDistances.
Calls MR_RegularMapMesher_loadDistances(). The C++ function returns expected<void, std::string>: the value is returned and an error is thrown as UnexpectedResultException.
| void meshlib.RegularMapMesher.setDirectionsPC | ( | meshlib.std_shared_ptr_MR_PointCloud | directionsPC | ) |
Sets directions Point Cloud Generated from method MR::RegularMapMesher::setDirectionsPC.
Calls MR_RegularMapMesher_setDirectionsPC().
| void meshlib.RegularMapMesher.setDistances | ( | int | width, |
| int | height, | ||
| meshlib.std_vector_float | distances ) |
Sets distances Generated from method MR::RegularMapMesher::setDistances.
Calls MR_RegularMapMesher_setDistances().
| void meshlib.RegularMapMesher.setSurfacePC | ( | meshlib.std_shared_ptr_MR_PointCloud | surfacePC | ) |
Sets surface Point Cloud Generated from method MR::RegularMapMesher::setSurfacePC.
Calls MR_RegularMapMesher_setSurfacePC().