Classes | |
class | FastWindingNumber |
class | PointsToMeshProjector |
meshlib.mrmeshpy.DistanceMap meshlib.mrcudapy.computeDistanceMap | ( | meshlib.mrmeshpy.Mesh | mesh, |
meshlib.mrmeshpy.MeshToDistanceMapParams | params, | ||
meshlib.mrmeshpy.func_bool_from_float | cb = 'MR::ProgressCallback{}', | ||
meshlib.mrmeshpy.std_vector_MeshTriPoint | 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 meshlib.mrcudapy.computeDistanceMapHeapBytes | ( | meshlib.mrmeshpy.Mesh | mesh, |
meshlib.mrmeshpy.MeshToDistanceMapParams | params, | ||
bool | needOutSamples = False ) |
Computes memory consumption of computeDistanceMap function
meshlib.mrmeshpy.VertScalars meshlib.mrcudapy.computeSkyViewFactor | ( | meshlib.mrmeshpy.Mesh | terrain, |
meshlib.mrmeshpy.VertCoords | samples, | ||
meshlib.mrmeshpy.VertBitSet | validSamples, | ||
meshlib.mrmeshpy.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 meshlib.mrcudapy.distanceMapFromContours | ( | meshlib.mrmeshpy.Polyline2 | polyline, |
meshlib.mrmeshpy.ContourToDistanceMapParams | params ) |
Computes distance of 2d contours according to ContourToDistanceMapParams (works correctly only when withSign==false)
int meshlib.mrcudapy.distanceMapFromContoursHeapBytes | ( | meshlib.mrmeshpy.Polyline2 | polyline, |
meshlib.mrmeshpy.ContourToDistanceMapParams | params ) |
Computes memory consumption of distanceMapFromContours function
meshlib.mrmeshpy.BitSet meshlib.mrcudapy.findSkyRays | ( | meshlib.mrmeshpy.Mesh | terrain, |
meshlib.mrmeshpy.VertCoords | samples, | ||
meshlib.mrmeshpy.VertBitSet | validSamples, | ||
meshlib.mrmeshpy.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 meshlib.mrcudapy.getCudaAvailableMemory | ( | ) |
Returns available GPU memory in bytes
bool meshlib.mrcudapy.isCudaAvailable | ( | meshlib.mrmeshpy.int_output | driverVersion = None, |
meshlib.mrmeshpy.int_output | runtimeVersion = None, | ||
meshlib.mrmeshpy.int_output | computeMajor = None, | ||
meshlib.mrmeshpy.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 meshlib.mrcudapy.negatePicture | ( | meshlib.mrmeshpy.Image | image | ) |
This function inverts Color value (255 - value in each channel except alpha)
meshlib.mrmeshpy.SimpleVolumeMinMax meshlib.mrcudapy.pointsToDistanceVolume | ( | meshlib.mrmeshpy.PointCloud | cloud, |
meshlib.mrmeshpy.PointsToDistanceVolumeParams | params ) |
makes SimpleVolume filled with signed distances to points with normals