Classes | |
| class | ComputePointsToDistanceVolume |
| class | ComputeToolDistance |
| class | ConstComputePointsToDistanceVolume |
| class | ConstComputeToolDistance |
| class | ConstDeviceInfo |
| class | ConstFastWindingNumber |
| class | ConstPointsProjector |
| class | ConstPointsToMeshProjector |
| class | DeviceInfo |
| class | double_output |
| class | FastWindingNumber |
| class | float_output |
| class | int_output |
| class | PointsProjector |
| class | PointsToMeshProjector |
Functions | |
| meshlib.mrmeshpy.DistanceMap | computeDistanceMap (meshlib.mrmeshpy.ConstMesh mesh, meshlib.mrmeshpy.ConstMeshToDistanceMapParams params, meshlib.mrmeshpy.Const_func_bool_from_float cb='{}', meshlib.mrmeshpy.std_vector_MeshTriPointT_float outSamples=None) |
| int | computeDistanceMapHeapBytes (meshlib.mrmeshpy.ConstMesh mesh, meshlib.mrmeshpy.ConstMeshToDistanceMapParams params, bool needOutSamples=False) |
| meshlib.mrmeshpy.VertScalars | computeSkyViewFactor (meshlib.mrmeshpy.ConstMesh terrain, meshlib.mrmeshpy.ConstVertCoords samples, meshlib.mrmeshpy.ConstVertBitSet validSamples, meshlib.mrmeshpy.Const_std_vector_SkyPatch skyPatches, meshlib.mrmeshpy.BitSet outSkyRays=None, meshlib.mrmeshpy.std_vector_MeshIntersectionResult outIntersections=None) |
| meshlib.mrmeshpy.DistanceMap | distanceMapFromContours (meshlib.mrmeshpy.ConstPolyline2 polyline, meshlib.mrmeshpy.ConstContourToDistanceMapParams params) |
| int | distanceMapFromContoursHeapBytes (meshlib.mrmeshpy.ConstPolyline2 polyline, meshlib.mrmeshpy.ConstContourToDistanceMapParams params) |
| meshlib.mrmeshpy.std_vector_PointsProjectionResult | findProjectionOnPoints (meshlib.mrmeshpy.ConstPointCloud pointCloud, meshlib.mrmeshpy.ConstVertCoords points, meshlib.mrmeshpy.ConstFindProjectionOnPointsSettings settings=...) |
| int | findProjectionOnPointsHeapBytes (meshlib.mrmeshpy.ConstPointCloud pointCloud, int pointsCount) |
| meshlib.mrmeshpy.BitSet | findSkyRays (meshlib.mrmeshpy.ConstMesh terrain, meshlib.mrmeshpy.ConstVertCoords samples, meshlib.mrmeshpy.ConstVertBitSet validSamples, meshlib.mrmeshpy.Const_std_vector_SkyPatch skyPatches, meshlib.mrmeshpy.std_vector_MeshIntersectionResult outIntersections=None) |
| int | getCudaAvailableMemory () |
| int | getCudaSafeMemoryLimit () |
| DeviceInfo | getDeviceInfo () |
| bool | isCudaAvailable (int_output driverVersion=None, int_output runtimeVersion=None, int_output computeMajor=None, int_output computeMinor=None) |
| None | loadMRCudaDll () |
| int | maxBufferSize (int availableBytes, int elementCount, int elementBytes) |
| int | maxBufferSizeAlignedByBlock (int availableBytes, meshlib.mrmeshpy.ConstVector2i blockDims, int elementBytes) |
| int | maxBufferSizeAlignedByBlock (int availableBytes, meshlib.mrmeshpy.ConstVector3i blockDims, int elementBytes) |
| None | negatePicture (meshlib.mrmeshpy.Image image) |
| meshlib.mrmeshpy.SimpleVolumeMinMax | pointsToDistanceVolume (meshlib.mrmeshpy.ConstPointCloud cloud, meshlib.mrmeshpy.ConstPointsToDistanceVolumeParams params) |
| None | pointsToDistanceVolumeByParts (meshlib.mrmeshpy.ConstPointCloud cloud, meshlib.mrmeshpy.ConstPointsToDistanceVolumeParams params, meshlib.mrmeshpy.Const_func_tl_expected_void_std_string_from_VoxelsVolumeMinMax_Vector_float_Id_VoxelTag_int addPart, int layerOverlap) |
| int | pointsToDistanceVolumeMemory (meshlib.mrmeshpy.ConstPointCloud cloud, meshlib.mrmeshpy.ConstVector3i dims, meshlib.mrmeshpy.ConstVertCoords ptNormals) |
| meshlib.mrmeshpy.DistanceMap mrcudapy.computeDistanceMap | ( | meshlib.mrmeshpy.ConstMesh | mesh, |
| meshlib.mrmeshpy.ConstMeshToDistanceMapParams | params, | ||
| meshlib.mrmeshpy.Const_func_bool_from_float | cb = '{}', | ||
| meshlib.mrmeshpy.std_vector_MeshTriPointT_float | outSamples = None ) |
computes distance (height) map for given projection parameters using float-precision for finding ray-mesh intersections, which is faster but less reliable
| int mrcudapy.computeDistanceMapHeapBytes | ( | meshlib.mrmeshpy.ConstMesh | mesh, |
| meshlib.mrmeshpy.ConstMeshToDistanceMapParams | params, | ||
| bool | needOutSamples = False ) |
Computes memory consumption of computeDistanceMap function
| meshlib.mrmeshpy.VertScalars mrcudapy.computeSkyViewFactor | ( | meshlib.mrmeshpy.ConstMesh | terrain, |
| meshlib.mrmeshpy.ConstVertCoords | samples, | ||
| meshlib.mrmeshpy.ConstVertBitSet | validSamples, | ||
| meshlib.mrmeshpy.Const_std_vector_SkyPatch | skyPatches, | ||
| meshlib.mrmeshpy.BitSet | outSkyRays = None, | ||
| meshlib.mrmeshpy.std_vector_MeshIntersectionResult | outIntersections = None ) |
computes relative radiation in each valid sample point by emitting rays from that point in the sky:
the radiation is 1.0f if all rays reach the sky not hitting the terrain;
the radiation is 0.0f if all rays do not reach the sky because they are intercepted by the terrain;
\\param outSkyRays - optional output bitset where for every valid sample i its rays are stored at indices [i*numPatches; (i+1)*numPatches),
0s for occluded rays (hitting the terrain) and 1s for the ones which don't hit anything and reach the sky
\\param outIntersections - optional output vector of MeshIntersectionResult for every valid sample point
| meshlib.mrmeshpy.DistanceMap mrcudapy.distanceMapFromContours | ( | meshlib.mrmeshpy.ConstPolyline2 | polyline, |
| meshlib.mrmeshpy.ConstContourToDistanceMapParams | params ) |
Computes distance of 2d contours according to ContourToDistanceMapParams (works correctly only when withSign==false)
| int mrcudapy.distanceMapFromContoursHeapBytes | ( | meshlib.mrmeshpy.ConstPolyline2 | polyline, |
| meshlib.mrmeshpy.ConstContourToDistanceMapParams | params ) |
Computes memory consumption of distanceMapFromContours function
| meshlib.mrmeshpy.std_vector_PointsProjectionResult mrcudapy.findProjectionOnPoints | ( | meshlib.mrmeshpy.ConstPointCloud | pointCloud, |
| meshlib.mrmeshpy.ConstVertCoords | points, | ||
| meshlib.mrmeshpy.ConstFindProjectionOnPointsSettings | settings = ... ) |
computes the closest points on point cloud to given points
| int mrcudapy.findProjectionOnPointsHeapBytes | ( | meshlib.mrmeshpy.ConstPointCloud | pointCloud, |
| int | pointsCount ) |
returns the minimal amount of free GPU memory required for \\ref MR::Cuda::findProjectionOnPoints
| meshlib.mrmeshpy.BitSet mrcudapy.findSkyRays | ( | meshlib.mrmeshpy.ConstMesh | terrain, |
| meshlib.mrmeshpy.ConstVertCoords | samples, | ||
| meshlib.mrmeshpy.ConstVertBitSet | validSamples, | ||
| meshlib.mrmeshpy.Const_std_vector_SkyPatch | skyPatches, | ||
| meshlib.mrmeshpy.std_vector_MeshIntersectionResult | outIntersections = None ) |
In each valid sample point tests the rays from that point in the sky;
\\return bitset where for every valid sample i its rays are stored at indices [i*numPatches; (i+1)*numPatches),
0s for occluded rays (hitting the terrain) and 1s for the ones which don't hit anything and reach the sky
\\param outIntersections - optional output vector of MeshIntersectionResult for every valid sample point
| int mrcudapy.getCudaAvailableMemory | ( | ) |
Returns available GPU memory in bytes
| int mrcudapy.getCudaSafeMemoryLimit | ( | ) |
Returns maximum safe amount of free GPU memory that will be used for dynamic-sized buffers
| DeviceInfo mrcudapy.getDeviceInfo | ( | ) |
Returns an error if CUDA is not available
| bool mrcudapy.isCudaAvailable | ( | int_output | driverVersion = None, |
| int_output | runtimeVersion = None, | ||
| int_output | computeMajor = None, | ||
| int_output | computeMinor = None ) |
Returns true if Cuda is present on this GPU optional out maximum driver supported version optional out current runtime version optional out compute capability major version optional out compute capability minor version
| None mrcudapy.loadMRCudaDll | ( | ) |
call this function to load MRCuda shared library
| int mrcudapy.maxBufferSize | ( | int | availableBytes, |
| int | elementCount, | ||
| int | elementBytes ) |
Returns maximum buffer size in elements that can be allocated with given memory limit
| int mrcudapy.maxBufferSizeAlignedByBlock | ( | int | availableBytes, |
| meshlib.mrmeshpy.ConstVector2i | blockDims, | ||
| int | elementBytes ) |
Returns maximum buffer size in elements that can be allocated with given memory limit The size is aligned to the block dimensions
| int mrcudapy.maxBufferSizeAlignedByBlock | ( | int | availableBytes, |
| meshlib.mrmeshpy.ConstVector3i | blockDims, | ||
| int | elementBytes ) |
| None mrcudapy.negatePicture | ( | meshlib.mrmeshpy.Image | image | ) |
This function inverts Color value (255 - value in each channel except alpha)
| meshlib.mrmeshpy.SimpleVolumeMinMax mrcudapy.pointsToDistanceVolume | ( | meshlib.mrmeshpy.ConstPointCloud | cloud, |
| meshlib.mrmeshpy.ConstPointsToDistanceVolumeParams | params ) |
makes SimpleVolume filled with signed distances to points with normals
| None mrcudapy.pointsToDistanceVolumeByParts | ( | meshlib.mrmeshpy.ConstPointCloud | cloud, |
| meshlib.mrmeshpy.ConstPointsToDistanceVolumeParams | params, | ||
| meshlib.mrmeshpy.Const_func_tl_expected_void_std_string_from_VoxelsVolumeMinMax_Vector_float_Id_VoxelTag_int | addPart, | ||
| int | layerOverlap ) |
makes SimpleVolume filled with signed distances to points with normals populate the volume by parts to the given callback
| int mrcudapy.pointsToDistanceVolumeMemory | ( | meshlib.mrmeshpy.ConstPointCloud | cloud, |
| meshlib.mrmeshpy.ConstVector3i | dims, | ||
| meshlib.mrmeshpy.ConstVertCoords | ptNormals ) |
returns the minimal amount of free GPU memory required to build a distance volume with given dimensions