meshlib 3.0.0.40__py311-none-win_amd64.whl → 3.0.2.183__py311-none-win_amd64.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 (104) hide show
  1. meshlib/MRDarkTheme.json +12 -0
  2. meshlib/MRLightTheme.json +12 -0
  3. meshlib/__init__.py +7 -61
  4. meshlib/mrcudapy.pyd +0 -0
  5. meshlib/mrcudapy.pyi +127 -0
  6. meshlib/mrmeshnumpy.pyd +0 -0
  7. meshlib/mrmeshnumpy.pyi +1 -1
  8. meshlib/mrmeshpy.pyd +0 -0
  9. meshlib/mrmeshpy.pyi +19387 -12354
  10. meshlib/mrviewerpy.pyd +0 -0
  11. meshlib/mrviewerpy.pyi +12 -12
  12. {meshlib-3.0.0.40.dist-info → meshlib-3.0.2.183.dist-info}/DELVEWHEEL +2 -2
  13. meshlib-3.0.2.183.dist-info/METADATA +237 -0
  14. meshlib-3.0.2.183.dist-info/RECORD +91 -0
  15. {meshlib-3.0.0.40.dist-info → meshlib-3.0.2.183.dist-info}/WHEEL +1 -1
  16. meshlib.libs/{E57Format-70289858ded73fd1e1ca0ce626f3d39f.dll → E57Format-fbbf52a31edb84ecf89cb1284063600d.dll} +0 -0
  17. meshlib.libs/{Imath-3_1-ac57191488a1e0d2d2b8798ffcacedae.dll → Imath-3_1-8a7113190ab90d7c0bb31212311e624c.dll} +0 -0
  18. meshlib.libs/MRCuda-3f7cba987e3842aee2777f9d6f7b5001.dll +0 -0
  19. meshlib.libs/MRIOExtras-998ff9835c55b8338b82eb9d7bf4eca6.dll +0 -0
  20. meshlib.libs/{MRMesh-10633e475a4867f0301b4193537ee703.dll → MRMesh-fdd1edb60f98a809a3247a91c146db11.dll} +0 -0
  21. meshlib.libs/MRPython-f07eedc00a9621063881d060f48e3fb7.dll +0 -0
  22. meshlib.libs/MRSymbolMesh-c0a5c269a8b038faef3b4da87592b424.dll +0 -0
  23. meshlib.libs/MRViewer-b0587cf939d395ed2b787fd6acc3ad58.dll +0 -0
  24. meshlib.libs/MRVoxels-4bdfea84843fe17b743a4116834e1325.dll +0 -0
  25. meshlib.libs/{OpenCTM-d467d64b6362a79ecd7edbbddfef10ea.dll → OpenCTM-ae090fd47d05a5736d2d5919f20a6e69.dll} +0 -0
  26. meshlib.libs/{TKBO-c46f072bba40d1fe0c7a72eb281d2a74.dll → TKBO-c5c4affe5a8b9a4b353a291b44f69662.dll} +0 -0
  27. meshlib.libs/{TKBRep-1676edef96d3f93b0f923de85cf93780.dll → TKBRep-cb5d6032b374686c91c53140a5294fb4.dll} +0 -0
  28. meshlib.libs/{TKCAF-150209d4a74204bfa129b5446b2ff74e.dll → TKCAF-086b8d857c7e98b410466ebf45f8d904.dll} +0 -0
  29. meshlib.libs/{TKCDF-ef748730b52983ad38dc2758bcb6fbfa.dll → TKCDF-f3cb2dd98cb0812e2080859762f6e9a1.dll} +0 -0
  30. meshlib.libs/{TKDE-c1ac3cba1d0e2f0b6041c1325b09eb6b.dll → TKDE-d4ed2809e6d6aa63d46d0a08fca75951.dll} +0 -0
  31. meshlib.libs/{TKDESTEP-640e1e640b826aa6e0ca753c0199bccd.dll → TKDESTEP-787bc0ff851271b86a54683ca5491ed5.dll} +0 -0
  32. meshlib.libs/{TKG2d-21c213644bd656bcd0168d9edb77d7e5.dll → TKG2d-7a554f1a03194252b00e3cecd5c326be.dll} +0 -0
  33. meshlib.libs/{TKG3d-d0e48fa490c191d9ea9ba03efd111b57.dll → TKG3d-f87b429c0ba9a7d6352ba17162b415a9.dll} +0 -0
  34. meshlib.libs/{TKGeomAlgo-d2fdcabb4ccf7f80cc8e1e58e8c09a8d.dll → TKGeomAlgo-80a5067320242c797939aed121509d0e.dll} +0 -0
  35. meshlib.libs/{TKGeomBase-fec9a4b1c9f6bd2f5cbef9a4bd2bfb16.dll → TKGeomBase-8fa70faa3d1228392fa356767bc74edc.dll} +0 -0
  36. meshlib.libs/{TKHLR-1f573986d32f41625399c319c02347bc.dll → TKHLR-c1b25c34e506a62d229d512d57fa7ebe.dll} +0 -0
  37. meshlib.libs/{TKLCAF-b8b7b8d98dd8d031d37a7de09505e748.dll → TKLCAF-1bb8f4138a1ad7b9f64f98b20b652871.dll} +0 -0
  38. meshlib.libs/{TKMath-6394bc6e672d621963596243f13d6042.dll → TKMath-2c79b35179359b2f2e62468351e95d5e.dll} +0 -0
  39. meshlib.libs/{TKMesh-127f3e5c9b594cce448753850cb55214.dll → TKMesh-d130a3cebe99254d14b4ca373b62c5e3.dll} +0 -0
  40. meshlib.libs/{TKPrim-dce7a9df8c3aecebc4a8857f49c756bb.dll → TKPrim-312fb9dc7280b766d586655fb667ebd6.dll} +0 -0
  41. meshlib.libs/{TKService-ef5346540530a71926a78846864e1652.dll → TKService-56563e0b8513bf0da8dfeaf914e35b90.dll} +0 -0
  42. meshlib.libs/{TKShHealing-d3787a7232f487e5b19e5098e2892ece.dll → TKShHealing-1f13c229a353a5d6300ccf8e1d719b04.dll} +0 -0
  43. meshlib.libs/{TKTopAlgo-dcc9d19c439d3b55ceb74da4ad6b8b32.dll → TKTopAlgo-ad648aa066de8d54b775aa9b2fd0ced4.dll} +0 -0
  44. meshlib.libs/{TKV3d-0c95fffd90d1e4c9786cfbf11ba32412.dll → TKV3d-13a1e2e67d688db9d1ede28cb12254c5.dll} +0 -0
  45. meshlib.libs/{TKVCAF-002de2dc0d77d4f27b75e91d78890f67.dll → TKVCAF-6f22d02082e441e15a581dacc1fb14d9.dll} +0 -0
  46. meshlib.libs/{TKXCAF-60783efd99281f4bf96f63e3c14ac1ce.dll → TKXCAF-fa1c3b291486886bff5633fc40f802c4.dll} +0 -0
  47. meshlib.libs/{TKXSBase-a373bebec50dbea0a98ebc8fab1eeae9.dll → TKXSBase-12e44c3b46b3abbdfd153e5d7f8b5db1.dll} +0 -0
  48. meshlib.libs/{TKernel-b52cf05dc27fd484c39fce0bcf08ef79.dll → TKernel-16513829d77c3d92332b77637889266f.dll} +0 -0
  49. meshlib.libs/{blosc-366a02d9d51ef710b29a391682d31cc0.dll → blosc-59fbc48aedb2e4ae4377134074d07925.dll} +0 -0
  50. meshlib.libs/{brotlicommon-093ea7b6dea489d6e088262060fc09e5.dll → brotlicommon-a06d0ae588b80024c0e716048d401d34.dll} +0 -0
  51. meshlib.libs/{brotlidec-019170e13759c1b88890ad840073ccf2.dll → brotlidec-742b622cfb5f577f6eaff3e22395b66b.dll} +0 -0
  52. meshlib.libs/{bz2-ca7e1e4c948b3614ab24d6e814bd8b0a.dll → bz2-0feb3ab565a048bec930b8e1edec1f7a.dll} +0 -0
  53. meshlib.libs/fmt-d46f79cbd09142b01831adee0d40cb9e.dll +0 -0
  54. meshlib.libs/freetype-d2b678322332bbad0eb702c107d6d380.dll +0 -0
  55. meshlib.libs/gdcmCommon-b0dc0fdf0c7b4f471ee7b8bb74bfa2b2.dll +0 -0
  56. meshlib.libs/gdcmDICT-ee575951873c584db8906cc273f33355.dll +0 -0
  57. meshlib.libs/gdcmDSED-00f67ef6b89c60f6cde8bfc64725df9a.dll +0 -0
  58. meshlib.libs/gdcmIOD-3df9cdbf3c49ae6a8febb2cb32180d61.dll +0 -0
  59. meshlib.libs/gdcmMSFF-eafd95894d1b07c940febb1a780cf17e.dll +0 -0
  60. meshlib.libs/gdcmcharls-6a53192d622f83ba245d391373bf4710.dll +0 -0
  61. meshlib.libs/gdcmjpeg12-8a5776a46893ea576a521630a21ba2dc.dll +0 -0
  62. meshlib.libs/gdcmjpeg16-20ca0453506bc41d174f35b2aca6a8ac.dll +0 -0
  63. meshlib.libs/gdcmjpeg8-2b572aa9a689d0a156b2e79bbe625826.dll +0 -0
  64. meshlib.libs/{glfw3-be99cc0214961fca1ec934954dd921e0.dll → glfw3-6105a01d6c812dbddf83cfb0540b2318.dll} +0 -0
  65. meshlib.libs/gmock-46e50c06f11c2bec150678e3b287e960.dll +0 -0
  66. meshlib.libs/{hidapi-529732dac9f283c3d74d9ab99a2263a8.dll → hidapi-efd685dacdf0958da6ea5a30b84a9b78.dll} +0 -0
  67. meshlib.libs/{hpdf-1edc35e681403a7ce677cbb171e11878.dll → hpdf-21975496854d5fe63d9968894d05b1c1.dll} +0 -0
  68. meshlib.libs/{imgui-26a3929df89275c86e0932fae17b2b01.dll → imgui-c1b51cb582c193e851c59b3b47b0a609.dll} +0 -0
  69. meshlib.libs/{jpeg62-9d314f7311d25b724a7bd1c0f73173b0.dll → jpeg62-b02c66041117db3d76a658a1dedbbb07.dll} +0 -0
  70. meshlib.libs/jsoncpp-c1581099ad410e20f6758f0b0aea897e.dll +0 -0
  71. meshlib.libs/{laz-perf-2d1b260d00aefe5980a8760003262799.dll → laz-perf-85e638e9d1283878cd00de7d91e244bd.dll} +0 -0
  72. meshlib.libs/libcurl-89d01240bdaebb4b10cc5bd6badcf849.dll +0 -0
  73. meshlib.libs/libexpat-dc38991e7843929d026f80faf1c34944.dll +0 -0
  74. meshlib.libs/{liblzma-ac58d77f660173a2345cad1c65411b5a.dll → liblzma-8a6d9f7eb2746506a9428f5d4dfbb75e.dll} +0 -0
  75. meshlib.libs/{libpng16-cf5c16535ca8c43c663bc3cc755b7be0.dll → libpng16-0a246bc17fa46a702ecb3920caec7672.dll} +0 -0
  76. meshlib.libs/lz4-025d043f2737613ec2698e7e71ad1308.dll +0 -0
  77. meshlib.libs/{openjp2-88048d011119709ec034cbfc62c2c38b.dll → openjp2-324d278c1f5f8f49e22d8b07006e9bd2.dll} +0 -0
  78. meshlib.libs/{openvdb-c28f44476ffe268f2cd02facb7644714.dll → openvdb-c580355f9ff8a93160191a0343003e30.dll} +0 -0
  79. meshlib.libs/spdlog-0474177d2551da8342587d79eec4109d.dll +0 -0
  80. meshlib.libs/{tbb12-58efd192759dacc003e42fc3899b5ee8.dll → tbb12-adb3c34c3e55e9d55efa333000fe083b.dll} +0 -0
  81. meshlib.libs/tiff-1aa6f410fb2b86099bfa11e51ab30999.dll +0 -0
  82. meshlib.libs/{tinyxml2-2bacf1e0104683b3fe7c5a24271cbb9c.dll → tinyxml2-50863419beb5adcc110c08f56f07204d.dll} +0 -0
  83. meshlib.libs/{turbojpeg-0312a27c6b672d11e25f5724ead0595c.dll → turbojpeg-8a09cfd83356edb34f9be097b5410025.dll} +0 -0
  84. meshlib.libs/{xerces-c_3_2-553f77c60d4aa2f79f49573b7238de03.dll → xerces-c_3_2-fb974cfffd454ab12197dad9d1b8b217.dll} +0 -0
  85. meshlib.libs/{zip-2b2f5ba35676b4d3db1ace3729f23a87.dll → zip-dc14b906a5181003b8e10ff246f3b3c3.dll} +0 -0
  86. meshlib.libs/{zlib1-de98ae99f49f540a71c5682dae9f4b1e.dll → zlib1-c962058ad6dd91a6291b019cbd0c0142.dll} +0 -0
  87. meshlib.libs/{zstd-f3540f334bafb34ffab73e42f4c4b1d8.dll → zstd-1a9581690f0e08ecb857becec43fa311.dll} +0 -0
  88. meshlib-3.0.0.40.dist-info/METADATA +0 -517
  89. meshlib-3.0.0.40.dist-info/RECORD +0 -78
  90. meshlib.libs/MRIOExtras-087e7b5d72e53e124045bb2db0c9bcd8.dll +0 -0
  91. meshlib.libs/MRPython-3ae264c0fe47737bd634f0325c7fa5ba.dll +0 -0
  92. meshlib.libs/MRSymbolMesh-d9054a39a621aa718a659c75d08eff00.dll +0 -0
  93. meshlib.libs/MRViewer-ab6624c70000a699b54c04d2c02171a0.dll +0 -0
  94. meshlib.libs/MRVoxels-33b24bf06a58bda79cdbcfa9690c312e.dll +0 -0
  95. meshlib.libs/fmt-d8b924ba1577612827210a349cbf8c6e.dll +0 -0
  96. meshlib.libs/freetype-adbbf269f807de316538f9e01a481f2d.dll +0 -0
  97. meshlib.libs/gmock-a68b2369c1f6063d5efb02d820e09491.dll +0 -0
  98. meshlib.libs/jsoncpp-f0f682f5284e13d3f47320e874140138.dll +0 -0
  99. meshlib.libs/libcurl-513f689d71e4662114302c8689b85804.dll +0 -0
  100. meshlib.libs/lz4-b24a7d03aec17ea42274e8e4d0e6ef5e.dll +0 -0
  101. meshlib.libs/spdlog-9a52397535aaa1e58bd985a9de6110d0.dll +0 -0
  102. meshlib.libs/tiff-03999be0626ac934162bfb6d21105b3d.dll +0 -0
  103. {meshlib-3.0.0.40.dist-info → meshlib-3.0.2.183.dist-info}/LICENSE +0 -0
  104. {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
@@ -2,15 +2,14 @@
2
2
 
3
3
 
4
4
  # start delvewheel patch
5
- def _delvewheel_patch_1_8_2():
5
+ def _delvewheel_patch_1_9_0():
6
6
  import os
7
- libs_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'meshlib.libs'))
8
- if os.path.isdir(libs_dir):
7
+ if os.path.isdir(libs_dir := os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'meshlib.libs'))):
9
8
  os.add_dll_directory(libs_dir)
10
9
 
11
10
 
12
- _delvewheel_patch_1_8_2()
13
- del _delvewheel_patch_1_8_2
11
+ _delvewheel_patch_1_9_0()
12
+ del _delvewheel_patch_1_9_0
14
13
  # end delvewheel patch
15
14
 
16
15
  # Fixes DLL loading paths.
@@ -26,62 +25,7 @@ del _init_patch
26
25
  ### ]
27
26
 
28
27
 
29
-
30
- # Manually define some aliases. It's recommended to avoid those.
31
-
32
- def _init_patch():
33
- from . import mrmeshpy
34
- mrmeshpy.BooleanResMapObj = mrmeshpy.BooleanResultMapper.MapObject
35
- mrmeshpy.copyMesh = mrmeshpy.Mesh
36
- mrmeshpy.FaceMap.vec = mrmeshpy.FaceMap.vec_
37
- mrmeshpy.FaceNormals.vec = mrmeshpy.FaceNormals.vec_
38
- mrmeshpy.findUndercuts = mrmeshpy.FixUndercuts.findUndercuts
39
- mrmeshpy.FixSelfIntersectionMethod = mrmeshpy.SelfIntersections.Settings.Method
40
- mrmeshpy.FixSelfIntersectionSettings = mrmeshpy.SelfIntersections.Settings
41
- mrmeshpy.fixUndercuts = mrmeshpy.FixUndercuts.fixUndercuts
42
- mrmeshpy.GeneralOffsetParametersMode = mrmeshpy.GeneralOffsetParameters.Mode
43
- mrmeshpy.getAllComponents = mrmeshpy.MeshComponents.getAllComponents
44
- mrmeshpy.getAllComponentsVerts = mrmeshpy.MeshComponents.getAllComponentsVerts
45
- mrmeshpy.ICP.getLastICPInfo = mrmeshpy.ICP.getStatusInfo
46
- mrmeshpy.LaplacianEdgeWeightsParam = mrmeshpy.EdgeWeights
47
- mrmeshpy.loadLines = mrmeshpy.LinesLoad.fromAnySupportedFormat
48
- mrmeshpy.loadMesh = mrmeshpy.MeshLoad.fromAnySupportedFormat
49
- mrmeshpy.loadPoints = mrmeshpy.PointsLoad.fromAnySupportedFormat
50
- mrmeshpy.loadVoxelsGav = mrmeshpy.VoxelsLoad.fromGav
51
- mrmeshpy.loadVoxelsRaw = mrmeshpy.VoxelsLoad.fromRaw
52
- mrmeshpy.localFindSelfIntersections = mrmeshpy.SelfIntersections.getFaces
53
- mrmeshpy.localFixSelfIntersections = mrmeshpy.SelfIntersections.fix
54
- mrmeshpy.MeshBuilderSettings = mrmeshpy.MeshBuilder.BuildSettings
55
- mrmeshpy.MeshToVolumeParamsType = mrmeshpy.MeshToVolumeParams.Type
56
- mrmeshpy.ObjectDistanceMap.extractDistanceMap = mrmeshpy.ObjectDistanceMap.getDistanceMap
57
- mrmeshpy.ObjectLines.extractLines = mrmeshpy.ObjectLines.polyline
58
- mrmeshpy.ObjectMesh.extractMesh = mrmeshpy.ObjectMesh.mesh
59
- mrmeshpy.ObjectPoints.extractPoints = mrmeshpy.ObjectPoints.pointCloud
60
- mrmeshpy.objectSave = mrmeshpy.ObjectSave.toAnySupportedFormat
61
- mrmeshpy.ObjectVoxels.extractVoxels = mrmeshpy.ObjectVoxels.vdbVolume
62
- mrmeshpy.saveAllSlicesToImage = mrmeshpy.VoxelsSave.saveAllSlicesToImage
63
- mrmeshpy.saveMesh = mrmeshpy.MeshSave.toAnySupportedFormat
64
- mrmeshpy.savePoints = mrmeshpy.PointsSave.toAnySupportedFormat
65
- mrmeshpy.saveSliceToImage = mrmeshpy.VoxelsSave.saveSliceToImage
66
- mrmeshpy.saveVoxelsGav = mrmeshpy.VoxelsSave.toGav
67
- mrmeshpy.saveVoxelsRaw = mrmeshpy.VoxelsSave.toRawAutoname
68
- mrmeshpy.TextAlignParams = mrmeshpy.TextMeshAlignParams
69
- mrmeshpy.topologyFromTriangles = mrmeshpy.MeshBuilder.fromTriangles
70
- mrmeshpy.triangulateContours = mrmeshpy.PlanarTriangulation.triangulateContours
71
- mrmeshpy.Triangulation.vec = mrmeshpy.Triangulation.vec_
72
- mrmeshpy.uniteCloseVertices = mrmeshpy.MeshBuilder.uniteCloseVertices
73
- mrmeshpy.vectorConstMeshPtr = mrmeshpy.std_vector_const_Mesh
74
- mrmeshpy.vectorEdges = mrmeshpy.EdgeLoop
75
- mrmeshpy.VertCoords.vec = mrmeshpy.VertCoords.vec_
76
- mrmeshpy.VertScalars.vec = mrmeshpy.VertScalars.vec_
77
- mrmeshpy.VoxelsSaveSavingSettings = mrmeshpy.VoxelsSave.SavingSettings
78
- mrmeshpy.TriangulationHelpersSettings = mrmeshpy.TriangulationHelpers.Settings
79
- mrmeshpy.buildUnitedLocalTriangulations = mrmeshpy.TriangulationHelpers.buildUnitedLocalTriangulations
80
-
81
- _init_patch()
82
- del _init_patch
83
-
84
- # manually appended from scripts/wheel/init.py
28
+ ### wheel-only: [
85
29
 
86
30
  def _override_resources_dir():
87
31
  """
@@ -95,3 +39,5 @@ def _override_resources_dir():
95
39
 
96
40
  _override_resources_dir()
97
41
  del _override_resources_dir
42
+
43
+ ### ]
meshlib/mrcudapy.pyd ADDED
Binary file
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
10
+ from meshlib.mrmeshpy import std_vector_Vector3_float as std_vector_Vector3f
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/mrmeshnumpy.pyd CHANGED
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/mrmeshpy.pyd CHANGED
Binary file