meshlib 2.4.4.152__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.
Files changed (72) hide show
  1. meshlib/__init__.py +27 -0
  2. meshlib/mrmeshnumpy.pyd +0 -0
  3. meshlib/mrmeshnumpy.pyi +81 -0
  4. meshlib/mrmeshpy.pyd +0 -0
  5. meshlib/mrmeshpy.pyi +11043 -0
  6. meshlib/mrviewerpy.pyd +0 -0
  7. meshlib/mrviewerpy.pyi +561 -0
  8. meshlib-2.4.4.152.dist-info/DELVEWHEEL +2 -0
  9. meshlib-2.4.4.152.dist-info/LICENSE +148 -0
  10. meshlib-2.4.4.152.dist-info/METADATA +489 -0
  11. meshlib-2.4.4.152.dist-info/RECORD +72 -0
  12. meshlib-2.4.4.152.dist-info/WHEEL +5 -0
  13. meshlib-2.4.4.152.dist-info/top_level.txt +1 -0
  14. meshlib.libs/.load-order-meshlib-2.4.4.152 +58 -0
  15. meshlib.libs/E57Format-70289858ded73fd1e1ca0ce626f3d39f.dll +0 -0
  16. meshlib.libs/Imath-3_1-ac57191488a1e0d2d2b8798ffcacedae.dll +0 -0
  17. meshlib.libs/MRMesh-0b03b23d66fd3ac19eaf0ac6da20bebc.dll +0 -0
  18. meshlib.libs/MRSymbolMesh-ab97e64c90cddd76b46c73c81ea1bf5a.dll +0 -0
  19. meshlib.libs/MRViewer-2bb1f158bb888b8b512148d7d4dcb039.dll +0 -0
  20. meshlib.libs/OpenCTM-be1620b1f4c56abad838b49b516f33ac.dll +0 -0
  21. meshlib.libs/TKBO-c46f072bba40d1fe0c7a72eb281d2a74.dll +0 -0
  22. meshlib.libs/TKBRep-1676edef96d3f93b0f923de85cf93780.dll +0 -0
  23. meshlib.libs/TKCAF-150209d4a74204bfa129b5446b2ff74e.dll +0 -0
  24. meshlib.libs/TKCDF-ef748730b52983ad38dc2758bcb6fbfa.dll +0 -0
  25. meshlib.libs/TKDE-c1ac3cba1d0e2f0b6041c1325b09eb6b.dll +0 -0
  26. meshlib.libs/TKDESTEP-640e1e640b826aa6e0ca753c0199bccd.dll +0 -0
  27. meshlib.libs/TKG2d-21c213644bd656bcd0168d9edb77d7e5.dll +0 -0
  28. meshlib.libs/TKG3d-d0e48fa490c191d9ea9ba03efd111b57.dll +0 -0
  29. meshlib.libs/TKGeomAlgo-d2fdcabb4ccf7f80cc8e1e58e8c09a8d.dll +0 -0
  30. meshlib.libs/TKGeomBase-fec9a4b1c9f6bd2f5cbef9a4bd2bfb16.dll +0 -0
  31. meshlib.libs/TKHLR-1f573986d32f41625399c319c02347bc.dll +0 -0
  32. meshlib.libs/TKLCAF-b8b7b8d98dd8d031d37a7de09505e748.dll +0 -0
  33. meshlib.libs/TKMath-6394bc6e672d621963596243f13d6042.dll +0 -0
  34. meshlib.libs/TKMesh-127f3e5c9b594cce448753850cb55214.dll +0 -0
  35. meshlib.libs/TKPrim-dce7a9df8c3aecebc4a8857f49c756bb.dll +0 -0
  36. meshlib.libs/TKService-ef5346540530a71926a78846864e1652.dll +0 -0
  37. meshlib.libs/TKShHealing-d3787a7232f487e5b19e5098e2892ece.dll +0 -0
  38. meshlib.libs/TKTopAlgo-dcc9d19c439d3b55ceb74da4ad6b8b32.dll +0 -0
  39. meshlib.libs/TKV3d-0c95fffd90d1e4c9786cfbf11ba32412.dll +0 -0
  40. meshlib.libs/TKVCAF-002de2dc0d77d4f27b75e91d78890f67.dll +0 -0
  41. meshlib.libs/TKXCAF-60783efd99281f4bf96f63e3c14ac1ce.dll +0 -0
  42. meshlib.libs/TKXSBase-a373bebec50dbea0a98ebc8fab1eeae9.dll +0 -0
  43. meshlib.libs/TKernel-b52cf05dc27fd484c39fce0bcf08ef79.dll +0 -0
  44. meshlib.libs/blosc-366a02d9d51ef710b29a391682d31cc0.dll +0 -0
  45. meshlib.libs/brotlicommon-093ea7b6dea489d6e088262060fc09e5.dll +0 -0
  46. meshlib.libs/brotlidec-019170e13759c1b88890ad840073ccf2.dll +0 -0
  47. meshlib.libs/bz2-ca7e1e4c948b3614ab24d6e814bd8b0a.dll +0 -0
  48. meshlib.libs/fmt-d8b924ba1577612827210a349cbf8c6e.dll +0 -0
  49. meshlib.libs/freetype-adbbf269f807de316538f9e01a481f2d.dll +0 -0
  50. meshlib.libs/glfw3-be99cc0214961fca1ec934954dd921e0.dll +0 -0
  51. meshlib.libs/gmock-a68b2369c1f6063d5efb02d820e09491.dll +0 -0
  52. meshlib.libs/hidapi-529732dac9f283c3d74d9ab99a2263a8.dll +0 -0
  53. meshlib.libs/hpdf-1edc35e681403a7ce677cbb171e11878.dll +0 -0
  54. meshlib.libs/imgui-b0a96bfb60ff7c737204ba538aa75be0.dll +0 -0
  55. meshlib.libs/jpeg62-9d314f7311d25b724a7bd1c0f73173b0.dll +0 -0
  56. meshlib.libs/jsoncpp-f0f682f5284e13d3f47320e874140138.dll +0 -0
  57. meshlib.libs/laz-perf-c10bf6d60c2bf021fdf4f6285bc10471.dll +0 -0
  58. meshlib.libs/libcurl-513f689d71e4662114302c8689b85804.dll +0 -0
  59. meshlib.libs/liblzma-ac58d77f660173a2345cad1c65411b5a.dll +0 -0
  60. meshlib.libs/libpng16-cf5c16535ca8c43c663bc3cc755b7be0.dll +0 -0
  61. meshlib.libs/lz4-b24a7d03aec17ea42274e8e4d0e6ef5e.dll +0 -0
  62. meshlib.libs/openjp2-88048d011119709ec034cbfc62c2c38b.dll +0 -0
  63. meshlib.libs/openvdb-c28f44476ffe268f2cd02facb7644714.dll +0 -0
  64. meshlib.libs/spdlog-9a52397535aaa1e58bd985a9de6110d0.dll +0 -0
  65. meshlib.libs/tbb12-58efd192759dacc003e42fc3899b5ee8.dll +0 -0
  66. meshlib.libs/tiff-03999be0626ac934162bfb6d21105b3d.dll +0 -0
  67. meshlib.libs/tinyxml2-2bacf1e0104683b3fe7c5a24271cbb9c.dll +0 -0
  68. meshlib.libs/turbojpeg-0312a27c6b672d11e25f5724ead0595c.dll +0 -0
  69. meshlib.libs/xerces-c_3_2-553f77c60d4aa2f79f49573b7238de03.dll +0 -0
  70. meshlib.libs/zip-2b2f5ba35676b4d3db1ace3729f23a87.dll +0 -0
  71. meshlib.libs/zlib1-de98ae99f49f540a71c5682dae9f4b1e.dll +0 -0
  72. meshlib.libs/zstd-f3540f334bafb34ffab73e42f4c4b1d8.dll +0 -0
meshlib/__init__.py ADDED
@@ -0,0 +1,27 @@
1
+ """""" # start delvewheel patch
2
+ def _delvewheel_patch_1_8_1():
3
+ import ctypes
4
+ import os
5
+ import platform
6
+ import sys
7
+ libs_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'meshlib.libs'))
8
+ is_conda_cpython = platform.python_implementation() == 'CPython' and (hasattr(ctypes.pythonapi, 'Anaconda_GetVersion') or 'packaged by conda-forge' in sys.version)
9
+ if sys.version_info[:2] >= (3, 8) and not is_conda_cpython or sys.version_info[:2] >= (3, 10):
10
+ if os.path.isdir(libs_dir):
11
+ os.add_dll_directory(libs_dir)
12
+ else:
13
+ load_order_filepath = os.path.join(libs_dir, '.load-order-meshlib-2.4.4.152')
14
+ if os.path.isfile(load_order_filepath):
15
+ with open(os.path.join(libs_dir, '.load-order-meshlib-2.4.4.152')) as file:
16
+ load_order = file.read().split()
17
+ kernel32 = ctypes.WinDLL('kernel32', use_last_error=True)
18
+ kernel32.LoadLibraryExW.restype = ctypes.c_void_p
19
+ for lib in load_order:
20
+ lib_path = os.path.join(os.path.join(libs_dir, lib))
21
+ if os.path.isfile(lib_path) and not kernel32.LoadLibraryExW(ctypes.c_wchar_p(lib_path), None, 8):
22
+ raise OSError('Error loading {}; {}'.format(lib, ctypes.FormatError(ctypes.get_last_error())))
23
+
24
+
25
+ _delvewheel_patch_1_8_1()
26
+ del _delvewheel_patch_1_8_1
27
+ # end delvewheel patch
Binary file
@@ -0,0 +1,81 @@
1
+ from __future__ import annotations
2
+ import meshlib.mrmeshpy
3
+ import numpy
4
+ import typing
5
+ import typing_extensions
6
+ __all__ = ['edgeBitSetFromBools', 'faceBitSetFromBools', 'getNumpy3Darray', 'getNumpyBitSet', 'getNumpyCurvature', 'getNumpyCurvatureGradient', 'getNumpyFaces', 'getNumpyVerts', 'meshFromFacesVerts', 'meshFromUVPoints', 'pointCloudFromPoints', 'polyline2FromPoints', 'simpleVolumeFrom3Darray', 'toNumpyArray', 'undirectedEdgeBitSetFromBools', 'vertBitSetFromBools']
7
+ def edgeBitSetFromBools(boolArray: typing_extensions.Buffer) -> meshlib.mrmeshpy.EdgeBitSet:
8
+ """
9
+ returns EdgeBitSet from numpy array with bools
10
+ """
11
+ def faceBitSetFromBools(boolArray: typing_extensions.Buffer) -> meshlib.mrmeshpy.FaceBitSet:
12
+ """
13
+ returns FaceBitSet from numpy array with bools
14
+ """
15
+ def getNumpy3Darray(simpleVolume: meshlib.mrmeshpy.SimpleVolume) -> numpy.ndarray[numpy.float64]:
16
+ """
17
+ Convert SimpleVolume to numpy 3D array
18
+ """
19
+ def getNumpyBitSet(bitset: meshlib.mrmeshpy.BoostBitSet) -> numpy.ndarray[bool]:
20
+ """
21
+ returns numpy array with bools for each bit of given bitset
22
+ """
23
+ def getNumpyCurvature(mesh: meshlib.mrmeshpy.Mesh) -> numpy.ndarray[numpy.float64]:
24
+ """
25
+ retunrs numpy array with curvature for each valid vertex of given mesh
26
+ """
27
+ def getNumpyCurvatureGradient(mesh: meshlib.mrmeshpy.Mesh) -> numpy.ndarray[numpy.float64]:
28
+ """
29
+ returns numpy array shapes [num verts,3] which represents gradient of mean curvature of mesh valid points
30
+ """
31
+ def getNumpyFaces(topology: meshlib.mrmeshpy.MeshTopology) -> numpy.ndarray[numpy.int32]:
32
+ """
33
+ returns numpy array shapes [num faces,3] which represents vertices of mesh valid faces
34
+ """
35
+ def getNumpyVerts(mesh: meshlib.mrmeshpy.Mesh) -> numpy.ndarray[numpy.float64]:
36
+ """
37
+ returns numpy array shapes [num verts,3] which represents coordinates of all mesh points (including invalid ones)
38
+ """
39
+ def meshFromFacesVerts(faces: typing_extensions.Buffer, verts: typing_extensions.Buffer, settings: meshlib.mrmeshpy.MeshBuilderSettings = ..., duplicateNonManifoldVertices: bool = True) -> meshlib.mrmeshpy.Mesh:
40
+ """
41
+ constructs mesh from given numpy ndarrays of faces (N VertId x3, FaceId x1), verts (M vec3 x3)
42
+ """
43
+ def meshFromUVPoints(xArray: typing_extensions.Buffer, yArray: typing_extensions.Buffer, zArray: typing_extensions.Buffer) -> meshlib.mrmeshpy.Mesh:
44
+ """
45
+ constructs mesh from three 2d numpy ndarrays with x,y,z positions of mesh
46
+ """
47
+ def pointCloudFromPoints(points: typing_extensions.Buffer, normals: typing_extensions.Buffer = ...) -> meshlib.mrmeshpy.PointCloud:
48
+ """
49
+ creates point cloud object from numpy arrays, first arg - points, second optional arg - normals
50
+ """
51
+ def polyline2FromPoints(points: typing_extensions.Buffer) -> meshlib.mrmeshpy.Polyline2:
52
+ """
53
+ creates polyline2 object from numpy array
54
+ """
55
+ def simpleVolumeFrom3Darray(3DvoxelsArray: typing_extensions.Buffer) -> meshlib.mrmeshpy.SimpleVolume:
56
+ """
57
+ Convert numpy 3D array to SimpleVolume
58
+ """
59
+ @typing.overload
60
+ def toNumpyArray(coords: meshlib.mrmeshpy.VertCoords) -> numpy.ndarray[numpy.float64]:
61
+ """
62
+ // returns numpy array shapes [num coords,3] which represents coordinates from given vector
63
+ """
64
+ @typing.overload
65
+ def toNumpyArray(coords: meshlib.mrmeshpy.FaceNormals) -> numpy.ndarray[numpy.float64]:
66
+ """
67
+ // returns numpy array shapes [num coords,3] which represents coordinates from given vector
68
+ """
69
+ @typing.overload
70
+ def toNumpyArray(coords: meshlib.mrmeshpy.Contour3f) -> numpy.ndarray[numpy.float64]:
71
+ """
72
+ // returns numpy array shapes [num coords,3] which represents coordinates from given vector
73
+ """
74
+ def undirectedEdgeBitSetFromBools(boolArray: typing_extensions.Buffer) -> meshlib.mrmeshpy.UndirectedEdgeBitSet:
75
+ """
76
+ returns UndirectedEdgeBitSet from numpy array with bools
77
+ """
78
+ def vertBitSetFromBools(boolArray: typing_extensions.Buffer) -> meshlib.mrmeshpy.VertBitSet:
79
+ """
80
+ returns VertBitSet from numpy array with bools
81
+ """
meshlib/mrmeshpy.pyd ADDED
Binary file