meshlib 3.0.1.205__py38-none-win_amd64.whl → 3.0.2.183__py38-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 (29) hide show
  1. meshlib/MRDarkTheme.json +12 -0
  2. meshlib/MRLightTheme.json +12 -0
  3. meshlib/__init__.py +2 -2
  4. meshlib/mrcudapy.pyd +0 -0
  5. meshlib/mrcudapy.pyi +127 -0
  6. meshlib/mrmeshnumpy.pyd +0 -0
  7. meshlib/mrmeshpy.pyd +0 -0
  8. meshlib/mrmeshpy.pyi +2486 -785
  9. meshlib/mrviewerpy.pyd +0 -0
  10. {meshlib-3.0.1.205.dist-info → meshlib-3.0.2.183.dist-info}/DELVEWHEEL +1 -1
  11. {meshlib-3.0.1.205.dist-info → meshlib-3.0.2.183.dist-info}/METADATA +3 -3
  12. {meshlib-3.0.1.205.dist-info → meshlib-3.0.2.183.dist-info}/RECORD +26 -23
  13. meshlib.libs/{.load-order-meshlib-3.0.1.205 → .load-order-meshlib-3.0.2.183} +60 -59
  14. meshlib.libs/MRCuda-04f06123ef1c62a6cfe6bd882e708b37.dll +0 -0
  15. meshlib.libs/MRIOExtras-bc600e36ce1acd7dcfddd28111a3a7e2.dll +0 -0
  16. meshlib.libs/{MRMesh-9665cb044e11ce5b5ff7308fc372edac.dll → MRMesh-7e162da4afd0ca352203f8c6f6b12b52.dll} +0 -0
  17. meshlib.libs/{MRPython-57297ffe8cdb928a6c561c1d1f8f8b12.dll → MRPython-9b1e73b0953b29db51d28ffb7205f3cf.dll} +0 -0
  18. meshlib.libs/{MRSymbolMesh-7c5c504fc8fc7fea1ba8a2bba6760923.dll → MRSymbolMesh-69239ba730c0d6e9976de9aee20e3e2c.dll} +0 -0
  19. meshlib.libs/MRViewer-6289b9abba442a74b620f0117362855f.dll +0 -0
  20. meshlib.libs/MRVoxels-fb1ed3e4560606823fd57c322487e868.dll +0 -0
  21. meshlib.libs/{OpenCTM-f53f57f19cb8ae43b611313c26e923aa.dll → OpenCTM-e13364af0eaaf1ed29bcccdde58d38b5.dll} +0 -0
  22. meshlib.libs/{imgui-10405e00339e644da6789e6d5efc8237.dll → imgui-f1c79cba459d72dcea8ea72bebae9a96.dll} +0 -0
  23. meshlib.libs/{laz-perf-825ac1d4ceca107c08e1ccd3ad4a1761.dll → laz-perf-7f519cf7b1bd0dd4307c442ea1e31815.dll} +0 -0
  24. meshlib.libs/MRIOExtras-c7329de74459579e60ff45d74185bc90.dll +0 -0
  25. meshlib.libs/MRViewer-c79c9fb7d03fda786211f1171596be4c.dll +0 -0
  26. meshlib.libs/MRVoxels-55769d08611cb8eb87a1121e1fe2a0ee.dll +0 -0
  27. {meshlib-3.0.1.205.dist-info → meshlib-3.0.2.183.dist-info}/LICENSE +0 -0
  28. {meshlib-3.0.1.205.dist-info → meshlib-3.0.2.183.dist-info}/WHEEL +0 -0
  29. {meshlib-3.0.1.205.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
@@ -13,10 +13,10 @@ def _delvewheel_patch_1_9_0():
13
13
  if os.path.isdir(libs_dir):
14
14
  os.add_dll_directory(libs_dir)
15
15
  else:
16
- load_order_filepath = os.path.join(libs_dir, '.load-order-meshlib-3.0.1.205')
16
+ load_order_filepath = os.path.join(libs_dir, '.load-order-meshlib-3.0.2.183')
17
17
  if os.path.isfile(load_order_filepath):
18
18
  import ctypes.wintypes
19
- with open(os.path.join(libs_dir, '.load-order-meshlib-3.0.1.205')) as file:
19
+ with open(os.path.join(libs_dir, '.load-order-meshlib-3.0.2.183')) as file:
20
20
  load_order = file.read().split()
21
21
  kernel32 = ctypes.WinDLL('kernel32', use_last_error=True)
22
22
  kernel32.LoadLibraryExW.restype = ctypes.wintypes.HMODULE
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/mrmeshpy.pyd CHANGED
Binary file