meshlib 3.0.0.40__py310-none-manylinux_2_31_aarch64.whl → 3.0.2.183__py310-none-manylinux_2_31_aarch64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of meshlib might be problematic. Click here for more details.

Files changed (123) hide show
  1. meshlib/MRDarkTheme.json +12 -0
  2. meshlib/MRLightTheme.json +12 -0
  3. meshlib/__init__.py +3 -56
  4. meshlib/mrcudapy.pyi +127 -0
  5. meshlib/mrcudapy.so +0 -0
  6. meshlib/mrmeshnumpy.pyi +1 -1
  7. meshlib/mrmeshnumpy.so +0 -0
  8. meshlib/mrmeshpy.pyi +18413 -11288
  9. meshlib/mrmeshpy.so +0 -0
  10. meshlib/mrviewerpy.pyi +5 -5
  11. meshlib/mrviewerpy.so +0 -0
  12. meshlib-3.0.2.183.dist-info/METADATA +237 -0
  13. meshlib-3.0.2.183.dist-info/RECORD +93 -0
  14. {meshlib-3.0.0.40.dist-info → meshlib-3.0.2.183.dist-info}/WHEEL +1 -1
  15. meshlib.libs/libE57Format-5d24dabf.so.3.2.0 +0 -0
  16. meshlib.libs/libMRCuda-5197eeb3.so +0 -0
  17. meshlib.libs/libMRIOExtras-c6c1dea2.so +0 -0
  18. meshlib.libs/{libMRMesh-aa15fd6e.so → libMRMesh-712962c4.so} +0 -0
  19. meshlib.libs/libMRPython-1d07e96c.so +0 -0
  20. meshlib.libs/libMRSymbolMesh-3ecf119c.so +0 -0
  21. meshlib.libs/{libMRViewer-31aa1aa6.so → libMRViewer-bf2ef4cb.so} +0 -0
  22. meshlib.libs/libMRVoxels-560acdaf.so +0 -0
  23. meshlib.libs/libgdcmMSFF-ece750c0.so.3.0.5 +0 -0
  24. meshlib.libs/{liblazperf-6599ba9c.so → liblazperf-82e64120.so} +0 -0
  25. meshlib.libs/{libopenjp2-c99ee6c6.so.2.3.1 → libopenjp2-09467980.so.2.3.1} +0 -0
  26. meshlib-3.0.0.40.dist-info/METADATA +0 -517
  27. meshlib-3.0.0.40.dist-info/RECORD +0 -179
  28. meshlib.libs/libE57Format-bcce663d.so +0 -0
  29. meshlib.libs/libMRIOExtras-73b100ab.so +0 -0
  30. meshlib.libs/libMRPython-5bb66069.so +0 -0
  31. meshlib.libs/libMRSymbolMesh-8e953cf8.so +0 -0
  32. meshlib.libs/libMRVoxels-2f97f97b.so +0 -0
  33. meshlib.libs/libXcomposite-76377e6f.so.1.0.0 +0 -0
  34. meshlib.libs/libXcursor-b40c8314.so.1.0.2 +0 -0
  35. meshlib.libs/libXdamage-46a8e720.so.1.1.0 +0 -0
  36. meshlib.libs/libXfixes-3d5c8c62.so.3.1.0 +0 -0
  37. meshlib.libs/libXi-48035246.so.6.1.0 +0 -0
  38. meshlib.libs/libXinerama-6d2b7f28.so.1.0.0 +0 -0
  39. meshlib.libs/libXrandr-69d0ef07.so.2.2.0 +0 -0
  40. meshlib.libs/libasn1-abb8a846.so.8.0.0 +0 -0
  41. meshlib.libs/libatk-1-f6bde1c1.0.so.0.23510.1 +0 -0
  42. meshlib.libs/libatk-bridge-2-5814194a.0.so.0.0.0 +0 -0
  43. meshlib.libs/libatkmm-1-2a8c721e.6.so.1.1.0 +0 -0
  44. meshlib.libs/libatspi-67c61c29.so.0.0.1 +0 -0
  45. meshlib.libs/libblkid-e4430204.so.1.1.0 +0 -0
  46. meshlib.libs/libbrotlicommon-5f23fdbe.so.1.0.7 +0 -0
  47. meshlib.libs/libbrotlidec-9c34295a.so.1.0.7 +0 -0
  48. meshlib.libs/libcairo-6a8712a6.so.2.11600.0 +0 -0
  49. meshlib.libs/libcairo-gobject-5f9fb202.so.2.11600.0 +0 -0
  50. meshlib.libs/libcairomm-1-bfefa54c.0.so.1.4.0 +0 -0
  51. meshlib.libs/libcom_err-68ec2731.so.2.1 +0 -0
  52. meshlib.libs/libcrypt-be793443.so.1.1.0 +0 -0
  53. meshlib.libs/libcurl-gnutls-07d93f73.so.4.6.0 +0 -0
  54. meshlib.libs/libdatrie-959615bc.so.1.3.5 +0 -0
  55. meshlib.libs/libdbus-1-f6dbd10e.so.3.19.11 +0 -0
  56. meshlib.libs/libepoxy-6cabc8da.so.0.0.0 +0 -0
  57. meshlib.libs/libffi-f7b659d2.so.7.1.0 +0 -0
  58. meshlib.libs/libfontconfig-8ee924d8.so.1.12.0 +0 -0
  59. meshlib.libs/libfribidi-8c829d72.so.0.4.0 +0 -0
  60. meshlib.libs/libgcrypt-d00669d1.so.20.2.5 +0 -0
  61. meshlib.libs/libgdk-3-b4662d1b.so.0.2404.16 +0 -0
  62. meshlib.libs/libgdk_pixbuf-2-738d5c9f.0.so.0.4000.0 +0 -0
  63. meshlib.libs/libgdkmm-3-66d0389a.0.so.1.1.0 +0 -0
  64. meshlib.libs/libgio-2-0b9e95ac.0.so.0.6400.6 +0 -0
  65. meshlib.libs/libgiomm-2-72b2d066.4.so.1.3.0 +0 -0
  66. meshlib.libs/libglibmm-2-acf1f041.4.so.1.3.0 +0 -0
  67. meshlib.libs/libgmodule-2-ab671fe5.0.so.0.6400.6 +0 -0
  68. meshlib.libs/libgmp-47793dba.so.10.4.0 +0 -0
  69. meshlib.libs/libgnutls-0b5a71d2.so.30.27.0 +0 -0
  70. meshlib.libs/libgpg-error-1fe52347.so.0.28.0 +0 -0
  71. meshlib.libs/libgraphite2-bf5a5809.so.3.2.1 +0 -0
  72. meshlib.libs/libgssapi-2535d001.so.3.0.0 +0 -0
  73. meshlib.libs/libgssapi_krb5-56ebb0c1.so.2.2 +0 -0
  74. meshlib.libs/libgtk-3-36a37653.so.0.2404.16 +0 -0
  75. meshlib.libs/libgtkmm-3-ab382dcc.0.so.1.1.0 +0 -0
  76. meshlib.libs/libharfbuzz-9dd66f18.so.0.20600.4 +0 -0
  77. meshlib.libs/libhcrypto-2024eb34.so.4.1.0 +0 -0
  78. meshlib.libs/libheimbase-a8d7ba3c.so.1.0.0 +0 -0
  79. meshlib.libs/libheimntlm-e8b3b1dd.so.0.1.0 +0 -0
  80. meshlib.libs/libhogweed-65c63b86.so.5.0 +0 -0
  81. meshlib.libs/libhx509-883f6b8c.so.5.0.0 +0 -0
  82. meshlib.libs/libicudata-2678dca0.so.66.1 +0 -0
  83. meshlib.libs/libicuuc-712d28f7.so.66.1 +0 -0
  84. meshlib.libs/libidn2-d8e281ae.so.0.3.6 +0 -0
  85. meshlib.libs/libk5crypto-1558d63e.so.3.1 +0 -0
  86. meshlib.libs/libkeyutils-26028e2f.so.1.8 +0 -0
  87. meshlib.libs/libkrb5-6e476c41.so.3.3 +0 -0
  88. meshlib.libs/libkrb5-939788a5.so.26.0.0 +0 -0
  89. meshlib.libs/libkrb5support-b05099e6.so.0.1 +0 -0
  90. meshlib.libs/liblber-2-56000e78.4.so.2.10.12 +0 -0
  91. meshlib.libs/libldap_r-2-82990c47.4.so.2.10.12 +0 -0
  92. meshlib.libs/libmount-67a34322.so.1.1.0 +0 -0
  93. meshlib.libs/libnettle-b4069eee.so.7.0 +0 -0
  94. meshlib.libs/libnghttp2-86366dd1.so.14.19.0 +0 -0
  95. meshlib.libs/libp11-kit-6e0d458f.so.0.3.0 +0 -0
  96. meshlib.libs/libpango-1-f280ad48.0.so.0.4400.7 +0 -0
  97. meshlib.libs/libpangocairo-1-a91304e1.0.so.0.4400.7 +0 -0
  98. meshlib.libs/libpangoft2-1-e5cce629.0.so.0.4400.7 +0 -0
  99. meshlib.libs/libpangomm-1-c26ed57e.4.so.1.0.30 +0 -0
  100. meshlib.libs/libpcre2-8-eb8611b9.so.0.9.0 +0 -0
  101. meshlib.libs/libpixman-1-06771588.so.0.38.4 +0 -0
  102. meshlib.libs/libpsl-ebe03d65.so.5.3.2 +0 -0
  103. meshlib.libs/libroken-c5c8068a.so.18.1.0 +0 -0
  104. meshlib.libs/librtmp-153ae61a.so.1 +0 -0
  105. meshlib.libs/libsasl2-da441969.so.2.0.25 +0 -0
  106. meshlib.libs/libselinux-199f3da0.so.1 +0 -0
  107. meshlib.libs/libsigc-2-105ca23d.0.so.0.0.0 +0 -0
  108. meshlib.libs/libsqlite3-5ec045b4.so.0.8.6 +0 -0
  109. meshlib.libs/libssh-6dc155ae.so.4.8.4 +0 -0
  110. meshlib.libs/libsystemd-5899be19.so.0.28.0 +0 -0
  111. meshlib.libs/libtasn1-94a50201.so.6.6.0 +0 -0
  112. meshlib.libs/libthai-f6ae431d.so.0.3.1 +0 -0
  113. meshlib.libs/libunistring-7dd61636.so.2.1.0 +0 -0
  114. meshlib.libs/libwayland-client-e6efd6a6.so.0.3.0 +0 -0
  115. meshlib.libs/libwayland-cursor-8cb525b9.so.0.0.0 +0 -0
  116. meshlib.libs/libwayland-egl-4f6efb3e.so.1.0.0 +0 -0
  117. meshlib.libs/libwind-abf8d43a.so.0.0.0 +0 -0
  118. meshlib.libs/libxcb-render-810d9f86.so.0.0.0 +0 -0
  119. meshlib.libs/libxcb-shm-9f158d64.so.0.0.0 +0 -0
  120. meshlib.libs/libxerces-c-3-ff49ae3e.2.so +0 -0
  121. meshlib.libs/libxkbcommon-d82d52b0.so.0.0.0 +0 -0
  122. {meshlib-3.0.0.40.dist-info → meshlib-3.0.2.183.dist-info}/LICENSE +0 -0
  123. {meshlib-3.0.0.40.dist-info → meshlib-3.0.2.183.dist-info}/top_level.txt +0 -0
meshlib/MRDarkTheme.json CHANGED
@@ -439,6 +439,18 @@
439
439
  "g": 255,
440
440
  "r": 255
441
441
  },
442
+ "SelectedTemporaryMeasurements": {
443
+ "a": 255,
444
+ "b": 255,
445
+ "g": 197,
446
+ "r": 0
447
+ },
448
+ "UnselectedTemporaryMeasurements": {
449
+ "a": 255,
450
+ "b": 0,
451
+ "g": 255,
452
+ "r": 27
453
+ },
442
454
  "SelectedObjectMesh": {
443
455
  "a": 255,
444
456
  "b": 236,
meshlib/MRLightTheme.json CHANGED
@@ -439,6 +439,18 @@
439
439
  "g": 255,
440
440
  "r": 255
441
441
  },
442
+ "SelectedTemporaryMeasurements": {
443
+ "a": 255,
444
+ "b": 255,
445
+ "g": 197,
446
+ "r": 0
447
+ },
448
+ "UnselectedTemporaryMeasurements": {
449
+ "a": 255,
450
+ "b": 0,
451
+ "g": 255,
452
+ "r": 27
453
+ },
442
454
  "SelectedObjectMesh": {
443
455
  "a": 255,
444
456
  "b": 236,
meshlib/__init__.py CHANGED
@@ -1,61 +1,6 @@
1
1
 
2
2
 
3
-
4
- # Manually define some aliases. It's recommended to avoid those.
5
-
6
- def _init_patch():
7
- from . import mrmeshpy
8
- mrmeshpy.BooleanResMapObj = mrmeshpy.BooleanResultMapper.MapObject
9
- mrmeshpy.copyMesh = mrmeshpy.Mesh
10
- mrmeshpy.FaceMap.vec = mrmeshpy.FaceMap.vec_
11
- mrmeshpy.FaceNormals.vec = mrmeshpy.FaceNormals.vec_
12
- mrmeshpy.findUndercuts = mrmeshpy.FixUndercuts.findUndercuts
13
- mrmeshpy.FixSelfIntersectionMethod = mrmeshpy.SelfIntersections.Settings.Method
14
- mrmeshpy.FixSelfIntersectionSettings = mrmeshpy.SelfIntersections.Settings
15
- mrmeshpy.fixUndercuts = mrmeshpy.FixUndercuts.fixUndercuts
16
- mrmeshpy.GeneralOffsetParametersMode = mrmeshpy.GeneralOffsetParameters.Mode
17
- mrmeshpy.getAllComponents = mrmeshpy.MeshComponents.getAllComponents
18
- mrmeshpy.getAllComponentsVerts = mrmeshpy.MeshComponents.getAllComponentsVerts
19
- mrmeshpy.ICP.getLastICPInfo = mrmeshpy.ICP.getStatusInfo
20
- mrmeshpy.LaplacianEdgeWeightsParam = mrmeshpy.EdgeWeights
21
- mrmeshpy.loadLines = mrmeshpy.LinesLoad.fromAnySupportedFormat
22
- mrmeshpy.loadMesh = mrmeshpy.MeshLoad.fromAnySupportedFormat
23
- mrmeshpy.loadPoints = mrmeshpy.PointsLoad.fromAnySupportedFormat
24
- mrmeshpy.loadVoxelsGav = mrmeshpy.VoxelsLoad.fromGav
25
- mrmeshpy.loadVoxelsRaw = mrmeshpy.VoxelsLoad.fromRaw
26
- mrmeshpy.localFindSelfIntersections = mrmeshpy.SelfIntersections.getFaces
27
- mrmeshpy.localFixSelfIntersections = mrmeshpy.SelfIntersections.fix
28
- mrmeshpy.MeshBuilderSettings = mrmeshpy.MeshBuilder.BuildSettings
29
- mrmeshpy.MeshToVolumeParamsType = mrmeshpy.MeshToVolumeParams.Type
30
- mrmeshpy.ObjectDistanceMap.extractDistanceMap = mrmeshpy.ObjectDistanceMap.getDistanceMap
31
- mrmeshpy.ObjectLines.extractLines = mrmeshpy.ObjectLines.polyline
32
- mrmeshpy.ObjectMesh.extractMesh = mrmeshpy.ObjectMesh.mesh
33
- mrmeshpy.ObjectPoints.extractPoints = mrmeshpy.ObjectPoints.pointCloud
34
- mrmeshpy.objectSave = mrmeshpy.ObjectSave.toAnySupportedFormat
35
- mrmeshpy.ObjectVoxels.extractVoxels = mrmeshpy.ObjectVoxels.vdbVolume
36
- mrmeshpy.saveAllSlicesToImage = mrmeshpy.VoxelsSave.saveAllSlicesToImage
37
- mrmeshpy.saveMesh = mrmeshpy.MeshSave.toAnySupportedFormat
38
- mrmeshpy.savePoints = mrmeshpy.PointsSave.toAnySupportedFormat
39
- mrmeshpy.saveSliceToImage = mrmeshpy.VoxelsSave.saveSliceToImage
40
- mrmeshpy.saveVoxelsGav = mrmeshpy.VoxelsSave.toGav
41
- mrmeshpy.saveVoxelsRaw = mrmeshpy.VoxelsSave.toRawAutoname
42
- mrmeshpy.TextAlignParams = mrmeshpy.TextMeshAlignParams
43
- mrmeshpy.topologyFromTriangles = mrmeshpy.MeshBuilder.fromTriangles
44
- mrmeshpy.triangulateContours = mrmeshpy.PlanarTriangulation.triangulateContours
45
- mrmeshpy.Triangulation.vec = mrmeshpy.Triangulation.vec_
46
- mrmeshpy.uniteCloseVertices = mrmeshpy.MeshBuilder.uniteCloseVertices
47
- mrmeshpy.vectorConstMeshPtr = mrmeshpy.std_vector_const_Mesh
48
- mrmeshpy.vectorEdges = mrmeshpy.EdgeLoop
49
- mrmeshpy.VertCoords.vec = mrmeshpy.VertCoords.vec_
50
- mrmeshpy.VertScalars.vec = mrmeshpy.VertScalars.vec_
51
- mrmeshpy.VoxelsSaveSavingSettings = mrmeshpy.VoxelsSave.SavingSettings
52
- mrmeshpy.TriangulationHelpersSettings = mrmeshpy.TriangulationHelpers.Settings
53
- mrmeshpy.buildUnitedLocalTriangulations = mrmeshpy.TriangulationHelpers.buildUnitedLocalTriangulations
54
-
55
- _init_patch()
56
- del _init_patch
57
-
58
- # manually appended from scripts/wheel/init.py
3
+ ### wheel-only: [
59
4
 
60
5
  def _override_resources_dir():
61
6
  """
@@ -69,3 +14,5 @@ def _override_resources_dir():
69
14
 
70
15
  _override_resources_dir()
71
16
  del _override_resources_dir
17
+
18
+ ### ]
meshlib/mrcudapy.pyi ADDED
@@ -0,0 +1,127 @@
1
+ from __future__ import annotations
2
+ import meshlib.mrmeshpy
3
+ from meshlib.mrmeshpy import func_bool_from_float
4
+ from meshlib.mrmeshpy import int_output
5
+ from meshlib.mrmeshpy import std_vector_MeshIntersectionResult
6
+ from meshlib.mrmeshpy import std_vector_MeshProjectionResult
7
+ from meshlib.mrmeshpy import std_vector_MeshTriPoint
8
+ from meshlib.mrmeshpy import std_vector_SkyPatch
9
+ from meshlib.mrmeshpy import std_vector_Vector3_float as std_vector_Vector3f
10
+ from meshlib.mrmeshpy import std_vector_Vector3_float
11
+ from meshlib.mrmeshpy import std_vector_float
12
+ import typing
13
+ __all__ = ['FastWindingNumber', 'PointsToMeshProjector', 'computeDistanceMap', 'computeDistanceMapHeapBytes', 'computeSkyViewFactor', 'distanceMapFromContours', 'distanceMapFromContoursHeapBytes', 'findSkyRays', 'func_bool_from_float', 'getCudaAvailableMemory', 'int_output', 'isCudaAvailable', 'negatePicture', 'pointsToDistanceVolume', 'std_vector_MeshIntersectionResult', 'std_vector_MeshProjectionResult', 'std_vector_MeshTriPoint', 'std_vector_SkyPatch', 'std_vector_Vector3_float', 'std_vector_Vector3f', 'std_vector_float']
14
+ class FastWindingNumber(meshlib.mrmeshpy.IFastWindingNumber):
15
+ """
16
+ Generated from: MR::Cuda::FastWindingNumber
17
+
18
+ the class for fast approximate computation of winding number for a mesh (using its AABB tree)
19
+ \\ingroup AABBTreeGroup
20
+ """
21
+ @typing.overload
22
+ def __init__(self, mesh: meshlib.mrmeshpy.Mesh) -> None:
23
+ """
24
+ constructs this from AABB tree of given mesh;
25
+ """
26
+ @typing.overload
27
+ def __init__(self, arg0: FastWindingNumber) -> None:
28
+ """
29
+ Implicit copy constructor.
30
+ """
31
+ def calcFromGrid(self, res: meshlib.mrmeshpy.std_vector_float, dims: meshlib.mrmeshpy.Vector3i, gridToMeshXf: meshlib.mrmeshpy.AffineXf3f, beta: float, cb: meshlib.mrmeshpy.func_bool_from_float) -> None:
32
+ ...
33
+ def calcFromGridWithDistances(self, res: meshlib.mrmeshpy.std_vector_float, dims: meshlib.mrmeshpy.Vector3i, gridToMeshXf: meshlib.mrmeshpy.AffineXf3f, windingNumberThreshold: float, beta: float, maxDistSq: float, minDistSq: float, cb: meshlib.mrmeshpy.func_bool_from_float) -> None:
34
+ ...
35
+ def calcFromVector(self, res: meshlib.mrmeshpy.std_vector_float, points: meshlib.mrmeshpy.std_vector_Vector3_float, beta: float, skipFace: meshlib.mrmeshpy.FaceId = 'MR::FaceId{}') -> None:
36
+ """
37
+ see methods' descriptions in IFastWindingNumber
38
+ """
39
+ def calcSelfIntersections(self, res: meshlib.mrmeshpy.FaceBitSet, beta: float, cb: meshlib.mrmeshpy.func_bool_from_float) -> bool:
40
+ ...
41
+ class PointsToMeshProjector(meshlib.mrmeshpy.IPointsToMeshProjector):
42
+ """
43
+ Generated from: MR::Cuda::PointsToMeshProjector
44
+
45
+ Computes the closest point on mesh to each of given points on GPU. It caches data that necessary for computing
46
+ """
47
+ @typing.overload
48
+ def __init__(self) -> None:
49
+ ...
50
+ @typing.overload
51
+ def __init__(self, arg0: PointsToMeshProjector) -> None:
52
+ """
53
+ Implicit copy constructor.
54
+ """
55
+ def findProjections(self, res: meshlib.mrmeshpy.std_vector_MeshProjectionResult, points: meshlib.mrmeshpy.std_vector_Vector3_float, objXf: meshlib.mrmeshpy.AffineXf3f, refObjXf: meshlib.mrmeshpy.AffineXf3f, upDistLimitSq: float, loDistLimitSq: float) -> None:
56
+ """
57
+ <summary>
58
+ Computes the closest point on mesh to each of given points
59
+ </summary>
60
+ <param name="res">vector pf projections</param>
61
+ <param name="points">vector of points to project</param>
62
+ <param name="objXf">transform applied to points</param>
63
+ <param name="refObjXf">transform applied to referencing mesh</param>
64
+ <param name="upDistLimitSq">maximal squared distance from point to mesh</param>
65
+ <param name="loDistLimitSq">minimal squared distance from point to mesh</param>
66
+ """
67
+ def projectionsHeapBytes(self, numProjections: int) -> int:
68
+ """
69
+ Returns amount of additional memory needed to compute projections
70
+ """
71
+ def updateMeshData(self, mesh: meshlib.mrmeshpy.Mesh) -> None:
72
+ """
73
+ update all data related to the referencing mesh
74
+ """
75
+ def computeDistanceMap(mesh: meshlib.mrmeshpy.Mesh, params: meshlib.mrmeshpy.MeshToDistanceMapParams, cb: meshlib.mrmeshpy.func_bool_from_float = 'MR::ProgressCallback{}', outSamples: meshlib.mrmeshpy.std_vector_MeshTriPoint = None) -> meshlib.mrmeshpy.DistanceMap:
76
+ """
77
+ computes distance (height) map for given projection parameters
78
+ using float-precision for finding ray-mesh intersections, which is faster but less reliable
79
+ """
80
+ def computeDistanceMapHeapBytes(mesh: meshlib.mrmeshpy.Mesh, params: meshlib.mrmeshpy.MeshToDistanceMapParams, needOutSamples: bool = False) -> int:
81
+ """
82
+ Computes memory consumption of computeDistanceMap function
83
+ """
84
+ def computeSkyViewFactor(terrain: meshlib.mrmeshpy.Mesh, samples: meshlib.mrmeshpy.VertCoords, validSamples: meshlib.mrmeshpy.VertBitSet, skyPatches: meshlib.mrmeshpy.std_vector_SkyPatch, outSkyRays: meshlib.mrmeshpy.BitSet = None, outIntersections: meshlib.mrmeshpy.std_vector_MeshIntersectionResult = None) -> meshlib.mrmeshpy.VertScalars:
85
+ """
86
+ computes relative radiation in each valid sample point by emitting rays from that point in the sky:
87
+ the radiation is 1.0f if all rays reach the sky not hitting the terrain;
88
+ the radiation is 0.0f if all rays do not reach the sky because they are intercepted by the terrain;
89
+ \\param outSkyRays - optional output bitset where for every valid sample #i its rays are stored at indices [i*numPatches; (i+1)*numPatches),
90
+ 0s for occluded rays (hitting the terrain) and 1s for the ones which don't hit anything and reach the sky
91
+ \\param outIntersections - optional output vector of MeshIntersectionResult for every valid sample point
92
+ """
93
+ def distanceMapFromContours(polyline: meshlib.mrmeshpy.Polyline2, params: meshlib.mrmeshpy.ContourToDistanceMapParams) -> meshlib.mrmeshpy.DistanceMap:
94
+ """
95
+ Computes distance of 2d contours according to ContourToDistanceMapParams (works correctly only when withSign==false)
96
+ """
97
+ def distanceMapFromContoursHeapBytes(polyline: meshlib.mrmeshpy.Polyline2, params: meshlib.mrmeshpy.ContourToDistanceMapParams) -> int:
98
+ """
99
+ Computes memory consumption of distanceMapFromContours function
100
+ """
101
+ def findSkyRays(terrain: meshlib.mrmeshpy.Mesh, samples: meshlib.mrmeshpy.VertCoords, validSamples: meshlib.mrmeshpy.VertBitSet, skyPatches: meshlib.mrmeshpy.std_vector_SkyPatch, outIntersections: meshlib.mrmeshpy.std_vector_MeshIntersectionResult = None) -> meshlib.mrmeshpy.BitSet:
102
+ """
103
+ In each valid sample point tests the rays from that point in the sky;
104
+ \\return bitset where for every valid sample #i its rays are stored at indices [i*numPatches; (i+1)*numPatches),
105
+ 0s for occluded rays (hitting the terrain) and 1s for the ones which don't hit anything and reach the sky
106
+ \\param outIntersections - optional output vector of MeshIntersectionResult for every valid sample point
107
+ """
108
+ def getCudaAvailableMemory() -> int:
109
+ """
110
+ Returns available GPU memory in bytes
111
+ """
112
+ def isCudaAvailable(driverVersion: meshlib.mrmeshpy.int_output = None, runtimeVersion: meshlib.mrmeshpy.int_output = None, computeMajor: meshlib.mrmeshpy.int_output = None, computeMinor: meshlib.mrmeshpy.int_output = None) -> bool:
113
+ """
114
+ Returns true if Cuda is present on this GPU
115
+ optional out maximum driver supported version
116
+ optional out current runtime version
117
+ optional out compute capability major version
118
+ optional out compute capability minor version
119
+ """
120
+ def negatePicture(image: meshlib.mrmeshpy.Image) -> None:
121
+ """
122
+ This function inverts Color value (255 - value in each channel except alpha)
123
+ """
124
+ def pointsToDistanceVolume(cloud: meshlib.mrmeshpy.PointCloud, params: meshlib.mrmeshpy.PointsToDistanceVolumeParams) -> meshlib.mrmeshpy.SimpleVolumeMinMax:
125
+ """
126
+ makes SimpleVolume filled with signed distances to points with normals
127
+ """
meshlib/mrcudapy.so ADDED
Binary file
meshlib/mrmeshnumpy.pyi CHANGED
@@ -20,7 +20,7 @@ def getNumpy3Darray(simpleVolume: meshlib.mrmeshpy.SimpleVolume) -> numpy.ndarra
20
20
  """
21
21
  Convert SimpleVolume to numpy 3D array
22
22
  """
23
- def getNumpyBitSet(bitset: ..., std: ...) -> numpy.ndarray[bool]:
23
+ def getNumpyBitSet(bitset: meshlib.mrmeshpy.BitSet) -> numpy.ndarray[bool]:
24
24
  """
25
25
  returns numpy array with bools for each bit of given bitset
26
26
  """
meshlib/mrmeshnumpy.so CHANGED
Binary file