meshlib 3.0.7.226__py38.py39.py310.py311.py312.py313-none-manylinux_2_28_x86_64.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 (166) hide show
  1. meshlib/MRDarkTheme.json +518 -0
  2. meshlib/MRLightTheme.json +520 -0
  3. meshlib/NotoSansSC-Regular.otf +0 -0
  4. meshlib/__init__.py +18 -0
  5. meshlib/fa-solid-900.ttf +0 -0
  6. meshlib/libpybind11nonlimitedapi_meshlib_3.10.so +0 -0
  7. meshlib/libpybind11nonlimitedapi_meshlib_3.11.so +0 -0
  8. meshlib/libpybind11nonlimitedapi_meshlib_3.12.so +0 -0
  9. meshlib/libpybind11nonlimitedapi_meshlib_3.13.so +0 -0
  10. meshlib/libpybind11nonlimitedapi_meshlib_3.8.so +0 -0
  11. meshlib/libpybind11nonlimitedapi_meshlib_3.9.so +0 -0
  12. meshlib/mrcudapy.pyi +229 -0
  13. meshlib/mrcudapy.so +0 -0
  14. meshlib/mrmeshnumpy.pyi +89 -0
  15. meshlib/mrmeshnumpy.so +0 -0
  16. meshlib/mrmeshpy.pyi +92338 -0
  17. meshlib/mrmeshpy.so +0 -0
  18. meshlib/mrviewerpy.pyi +573 -0
  19. meshlib/mrviewerpy.so +0 -0
  20. meshlib/resource/independent_icons/X1/Plane Import.png +0 -0
  21. meshlib/resource/independent_icons/X1/Plane XY.png +0 -0
  22. meshlib/resource/independent_icons/X1/Plane XZ.png +0 -0
  23. meshlib/resource/independent_icons/X1/Plane YZ.png +0 -0
  24. meshlib/resource/independent_icons/X1/mouse left.png +0 -0
  25. meshlib/resource/independent_icons/X1/mouse right.png +0 -0
  26. meshlib/resource/independent_icons/X1/mouse scroll.png +0 -0
  27. meshlib/resource/independent_icons/X3/Plane Import.png +0 -0
  28. meshlib/resource/independent_icons/X3/Plane XY.png +0 -0
  29. meshlib/resource/independent_icons/X3/Plane XZ.png +0 -0
  30. meshlib/resource/independent_icons/X3/Plane YZ.png +0 -0
  31. meshlib/resource/independent_icons/X3/mouse left.png +0 -0
  32. meshlib/resource/independent_icons/X3/mouse right.png +0 -0
  33. meshlib/resource/independent_icons/X3/mouse scroll.png +0 -0
  34. meshlib/resource/object_icons/X1/AngleMeasurementObject.png +0 -0
  35. meshlib/resource/object_icons/X1/CircleObject.png +0 -0
  36. meshlib/resource/object_icons/X1/ConeObject.png +0 -0
  37. meshlib/resource/object_icons/X1/CylinderObject.png +0 -0
  38. meshlib/resource/object_icons/X1/DistanceMeasurementObject.png +0 -0
  39. meshlib/resource/object_icons/X1/LineObject.png +0 -0
  40. meshlib/resource/object_icons/X1/Object.png +0 -0
  41. meshlib/resource/object_icons/X1/ObjectDistanceMap.png +0 -0
  42. meshlib/resource/object_icons/X1/ObjectGcode.png +0 -0
  43. meshlib/resource/object_icons/X1/ObjectLabel.png +0 -0
  44. meshlib/resource/object_icons/X1/ObjectLines.png +0 -0
  45. meshlib/resource/object_icons/X1/ObjectMesh.png +0 -0
  46. meshlib/resource/object_icons/X1/ObjectPoints.png +0 -0
  47. meshlib/resource/object_icons/X1/ObjectVoxels.png +0 -0
  48. meshlib/resource/object_icons/X1/Object_open.png +0 -0
  49. meshlib/resource/object_icons/X1/PlaneObject.png +0 -0
  50. meshlib/resource/object_icons/X1/PointObject.png +0 -0
  51. meshlib/resource/object_icons/X1/RadiusMeasurementObject.png +0 -0
  52. meshlib/resource/object_icons/X1/SphereObject.png +0 -0
  53. meshlib/resource/object_icons/X3/AngleMeasurementObject.png +0 -0
  54. meshlib/resource/object_icons/X3/CircleObject.png +0 -0
  55. meshlib/resource/object_icons/X3/ConeObject.png +0 -0
  56. meshlib/resource/object_icons/X3/CylinderObject.png +0 -0
  57. meshlib/resource/object_icons/X3/DistanceMeasurementObject.png +0 -0
  58. meshlib/resource/object_icons/X3/LineObject.png +0 -0
  59. meshlib/resource/object_icons/X3/Object.png +0 -0
  60. meshlib/resource/object_icons/X3/ObjectDistanceMap.png +0 -0
  61. meshlib/resource/object_icons/X3/ObjectGcode.png +0 -0
  62. meshlib/resource/object_icons/X3/ObjectLabel.png +0 -0
  63. meshlib/resource/object_icons/X3/ObjectLines.png +0 -0
  64. meshlib/resource/object_icons/X3/ObjectMesh.png +0 -0
  65. meshlib/resource/object_icons/X3/ObjectPoints.png +0 -0
  66. meshlib/resource/object_icons/X3/ObjectVoxels.png +0 -0
  67. meshlib/resource/object_icons/X3/Object_open.png +0 -0
  68. meshlib/resource/object_icons/X3/PlaneObject.png +0 -0
  69. meshlib/resource/object_icons/X3/PointObject.png +0 -0
  70. meshlib/resource/object_icons/X3/RadiusMeasurementObject.png +0 -0
  71. meshlib/resource/object_icons/X3/SphereObject.png +0 -0
  72. meshlib/resource/textures/controller_cube_default.png +0 -0
  73. meshlib/resource/textures/controller_cube_edges.png +0 -0
  74. meshlib/resource/textures/controller_cube_sides.png +0 -0
  75. meshlib-3.0.7.226.dist-info/METADATA +264 -0
  76. meshlib-3.0.7.226.dist-info/RECORD +166 -0
  77. meshlib-3.0.7.226.dist-info/WHEEL +11 -0
  78. meshlib-3.0.7.226.dist-info/licenses/LICENSE +148 -0
  79. meshlib-3.0.7.226.dist-info/top_level.txt +1 -0
  80. meshlib.libs/libE57Format-981a1c21.so.3.2.0 +0 -0
  81. meshlib.libs/libImath-3_1-28d78eff.so.29.11.0 +0 -0
  82. meshlib.libs/libMRCuda-b0e5315d.so +0 -0
  83. meshlib.libs/libMRIOExtras-ac441bc0.so +0 -0
  84. meshlib.libs/libMRMesh-6919a89b.so +0 -0
  85. meshlib.libs/libMRPython-13e49974.so +0 -0
  86. meshlib.libs/libMRSymbolMesh-858b410b.so +0 -0
  87. meshlib.libs/libMRViewer-73168659.so +0 -0
  88. meshlib.libs/libMRVoxels-1d1530a3.so +0 -0
  89. meshlib.libs/libOpenCTM-59942d2b.so +0 -0
  90. meshlib.libs/libTKBO-5124f60c.so.7.9.1 +0 -0
  91. meshlib.libs/libTKBRep-4382d1ce.so.7.9.1 +0 -0
  92. meshlib.libs/libTKCAF-fd5cf0fd.so.7.9.1 +0 -0
  93. meshlib.libs/libTKCDF-ccc61f37.so.7.9.1 +0 -0
  94. meshlib.libs/libTKDE-396d2976.so.7.9.1 +0 -0
  95. meshlib.libs/libTKDESTEP-5f5f618f.so.7.9.1 +0 -0
  96. meshlib.libs/libTKG2d-ed710dc0.so.7.9.1 +0 -0
  97. meshlib.libs/libTKG3d-d05dcf5d.so.7.9.1 +0 -0
  98. meshlib.libs/libTKGeomAlgo-484f2fba.so.7.9.1 +0 -0
  99. meshlib.libs/libTKGeomBase-2f06c298.so.7.9.1 +0 -0
  100. meshlib.libs/libTKHLR-6602069a.so.7.9.1 +0 -0
  101. meshlib.libs/libTKLCAF-2a623b50.so.7.9.1 +0 -0
  102. meshlib.libs/libTKMath-c6ba2fdb.so.7.9.1 +0 -0
  103. meshlib.libs/libTKMesh-ea99ab39.so.7.9.1 +0 -0
  104. meshlib.libs/libTKPrim-e9f9ac3a.so.7.9.1 +0 -0
  105. meshlib.libs/libTKService-01ef9ca1.so.7.9.1 +0 -0
  106. meshlib.libs/libTKShHealing-24c6b482.so.7.9.1 +0 -0
  107. meshlib.libs/libTKTopAlgo-e79ab720.so.7.9.1 +0 -0
  108. meshlib.libs/libTKV3d-eb50ac62.so.7.9.1 +0 -0
  109. meshlib.libs/libTKVCAF-666d9d3f.so.7.9.1 +0 -0
  110. meshlib.libs/libTKXCAF-009ac9eb.so.7.9.1 +0 -0
  111. meshlib.libs/libTKXSBase-b97028e5.so.7.9.1 +0 -0
  112. meshlib.libs/libTKernel-9d9ae0cd.so.7.9.1 +0 -0
  113. meshlib.libs/libXau-e6d22245.so.6.0.0 +0 -0
  114. meshlib.libs/libblkid-7e492326.so.1.1.0 +0 -0
  115. meshlib.libs/libblosc-f8621f0c.so.1.21.6 +0 -0
  116. meshlib.libs/libboost_iostreams-9b41374f.so.1.87.0 +0 -0
  117. meshlib.libs/libboost_random-8dc2bec6.so.1.87.0 +0 -0
  118. meshlib.libs/libboost_system-4aa5ddbd.so.1.87.0 +0 -0
  119. meshlib.libs/libbrotlicommon-33e6d482.so.1.1.0 +0 -0
  120. meshlib.libs/libbrotlidec-137364e8.so.1.1.0 +0 -0
  121. meshlib.libs/libbz2-e57c9054.so.1.0.8 +0 -0
  122. meshlib.libs/libclip-b9d6625b.so +0 -0
  123. meshlib.libs/libcpr-027295e4.so.1.11.1 +0 -0
  124. meshlib.libs/libcrypto-a805f117.so.3 +0 -0
  125. meshlib.libs/libcurl-730349a8.so.4.8.0 +0 -0
  126. meshlib.libs/libfmt-46786283.so.11.0.2 +0 -0
  127. meshlib.libs/libfreetype-30f75dce.so.6.20.2 +0 -0
  128. meshlib.libs/libgdcmCommon-1de9e82b.so.3.0.24 +0 -0
  129. meshlib.libs/libgdcmDICT-24616156.so.3.0.24 +0 -0
  130. meshlib.libs/libgdcmDSED-0178be4c.so.3.0.24 +0 -0
  131. meshlib.libs/libgdcmIOD-a6a5e926.so.3.0.24 +0 -0
  132. meshlib.libs/libgdcmMEXD-483b11ae.so.3.0.24 +0 -0
  133. meshlib.libs/libgdcmMSFF-fb0031e7.so.3.0.24 +0 -0
  134. meshlib.libs/libgdcmcharls-0bb1cdd4.so.2.0 +0 -0
  135. meshlib.libs/libgdcmjpeg12-292582d2.so.3.0.24 +0 -0
  136. meshlib.libs/libgdcmjpeg16-ebdb708a.so.3.0.24 +0 -0
  137. meshlib.libs/libgdcmjpeg8-8459f2b1.so.3.0.24 +0 -0
  138. meshlib.libs/libgdcmuuid-bfac3344.so.3.0.24 +0 -0
  139. meshlib.libs/libglfw-b87c9702.so.3.4 +0 -0
  140. meshlib.libs/libgtest-18d8dd75.so.1.16.0 +0 -0
  141. meshlib.libs/libhidapi-hidraw-46536eb3.so.0.14.0 +0 -0
  142. meshlib.libs/libhpdf-b04636ba.so.2.4.4 +0 -0
  143. meshlib.libs/libimgui-78664193.so +0 -0
  144. meshlib.libs/libjpeg-80485a62.so.62.4.0 +0 -0
  145. meshlib.libs/libjsoncpp-0136aebe.so.1.9.6 +0 -0
  146. meshlib.libs/liblazperf-f3e20ab6.so +0 -0
  147. meshlib.libs/liblz4-978216e3.so.1.10.0 +0 -0
  148. meshlib.libs/liblzma-664cd632.so.5.8.1 +0 -0
  149. meshlib.libs/libmount-06ba920f.so.1.1.0 +0 -0
  150. meshlib.libs/libopenjp2-fa43756a.so.2.5.3 +0 -0
  151. meshlib.libs/libopenvdb-0ea35591.so.12.0.0 +0 -0
  152. meshlib.libs/libpng16-c3af6d21.so.16.46.0 +0 -0
  153. meshlib.libs/libpybind11nonlimitedapi_stubs-554db40d.so +0 -0
  154. meshlib.libs/libsocketxx-b72cfb71.so.1.2.0 +0 -0
  155. meshlib.libs/libspdlog-9813443d.so.1.15.2 +0 -0
  156. meshlib.libs/libssl-0d056acc.so.3 +0 -0
  157. meshlib.libs/libtbb-4b61c084.so.12.14 +0 -0
  158. meshlib.libs/libtbbmalloc-1fe10e76.so.2.14 +0 -0
  159. meshlib.libs/libtiff-86575e52.so.6.1.0 +0 -0
  160. meshlib.libs/libtinyxml2-b3aca293.so.11.0.0 +0 -0
  161. meshlib.libs/libturbojpeg-64afd0bd.so.0.4.0 +0 -0
  162. meshlib.libs/libudev-9765ffbd.so.1.6.11 +0 -0
  163. meshlib.libs/libxcb-fcb2fa42.so.1.1.0 +0 -0
  164. meshlib.libs/libxerces-c-3-25f1a90d.3.so +0 -0
  165. meshlib.libs/libzip-98d9bd11.so.5.5 +0 -0
  166. meshlib.libs/libzstd-04b9995a.so.1.5.7 +0 -0
meshlib/mrmeshpy.so ADDED
Binary file
meshlib/mrviewerpy.pyi ADDED
@@ -0,0 +1,573 @@
1
+ from __future__ import annotations
2
+ import meshlib.mrmeshpy
3
+ import typing
4
+ __all__: list[str] = ['KeyMod', 'MouseButton', 'UiEntry', 'UiEntryType', 'UiValueInt', 'UiValueReal', 'UiValueString', 'UiValueUint', 'Viewer', 'ViewerLaunchParams', 'ViewerLaunchParamsMode', 'ViewerSetup', 'Viewport', 'ViewportFitDataParams', 'ViewportFitMode', 'addDistanceMapToScene', 'addLinesToScene', 'addMeshToScene', 'addPointCloudToScene', 'addVoxelsToScene', 'clearScene', 'getSelectedDistanceMaps', 'getSelectedMeshEdges', 'getSelectedMeshFaces', 'getSelectedMeshes', 'getSelectedObjects', 'getSelectedPointCloudPoints', 'getSelectedPointClouds', 'getSelectedPolylines', 'getSelectedVoxels', 'launch', 'modifySelectedMesh', 'runFromGUIThread', 'selectByName', 'selectByType', 'setSelectedMeshEdges', 'setSelectedMeshFaces', 'setSelectedPointCloudPoints', 'uiListEntries', 'uiPressButton', 'uiReadValueInt', 'uiReadValueReal', 'uiReadValueString', 'uiReadValueUint', 'uiWriteValueInt', 'uiWriteValueReal', 'uiWriteValueString', 'uiWriteValueUint', 'unselectAll']
5
+ class KeyMod:
6
+ """
7
+ Members:
8
+
9
+ Empty
10
+
11
+ Ctrl
12
+
13
+ Shift
14
+
15
+ Alt
16
+ """
17
+ Alt: typing.ClassVar[KeyMod] # value = <KeyMod.Alt: 4>
18
+ Ctrl: typing.ClassVar[KeyMod] # value = <KeyMod.Ctrl: 2>
19
+ Empty: typing.ClassVar[KeyMod] # value = <KeyMod.Empty: 0>
20
+ Shift: typing.ClassVar[KeyMod] # value = <KeyMod.Shift: 1>
21
+ __members__: typing.ClassVar[dict[str, KeyMod]] # value = {'Empty': <KeyMod.Empty: 0>, 'Ctrl': <KeyMod.Ctrl: 2>, 'Shift': <KeyMod.Shift: 1>, 'Alt': <KeyMod.Alt: 4>}
22
+ def __and__(self, arg0: KeyMod) -> KeyMod:
23
+ ...
24
+ def __eq__(self, other: typing.Any) -> bool:
25
+ ...
26
+ def __getstate__(self) -> int:
27
+ ...
28
+ def __hash__(self) -> int:
29
+ ...
30
+ def __index__(self) -> int:
31
+ ...
32
+ def __init__(self, value: int) -> None:
33
+ ...
34
+ def __int__(self) -> int:
35
+ ...
36
+ def __invert__(self) -> KeyMod:
37
+ ...
38
+ def __ne__(self, other: typing.Any) -> bool:
39
+ ...
40
+ def __or__(self, arg0: KeyMod) -> KeyMod:
41
+ ...
42
+ def __repr__(self) -> str:
43
+ ...
44
+ def __setstate__(self, state: int) -> None:
45
+ ...
46
+ def __str__(self) -> str:
47
+ ...
48
+ @property
49
+ def name(self) -> str:
50
+ ...
51
+ @property
52
+ def value(self) -> int:
53
+ ...
54
+ class MouseButton:
55
+ """
56
+ Members:
57
+
58
+ Left
59
+
60
+ Right
61
+
62
+ Middle
63
+ """
64
+ Left: typing.ClassVar[MouseButton] # value = <MouseButton.Left: 0>
65
+ Middle: typing.ClassVar[MouseButton] # value = <MouseButton.Middle: 2>
66
+ Right: typing.ClassVar[MouseButton] # value = <MouseButton.Right: 1>
67
+ __members__: typing.ClassVar[dict[str, MouseButton]] # value = {'Left': <MouseButton.Left: 0>, 'Right': <MouseButton.Right: 1>, 'Middle': <MouseButton.Middle: 2>}
68
+ def __eq__(self, other: typing.Any) -> bool:
69
+ ...
70
+ def __getstate__(self) -> int:
71
+ ...
72
+ def __hash__(self) -> int:
73
+ ...
74
+ def __index__(self) -> int:
75
+ ...
76
+ def __init__(self, value: int) -> None:
77
+ ...
78
+ def __int__(self) -> int:
79
+ ...
80
+ def __ne__(self, other: typing.Any) -> bool:
81
+ ...
82
+ def __repr__(self) -> str:
83
+ ...
84
+ def __setstate__(self, state: int) -> None:
85
+ ...
86
+ def __str__(self) -> str:
87
+ ...
88
+ @property
89
+ def name(self) -> str:
90
+ ...
91
+ @property
92
+ def value(self) -> int:
93
+ ...
94
+ class UiEntry:
95
+ def __repr__(self) -> str:
96
+ ...
97
+ @property
98
+ def name(self) -> str:
99
+ ...
100
+ @property
101
+ def type(self) -> UiEntryType:
102
+ ...
103
+ class UiEntryType:
104
+ """
105
+ UI entry type enum.
106
+
107
+ Members:
108
+
109
+ button
110
+
111
+ group
112
+
113
+ valueInt
114
+
115
+ valueUint
116
+
117
+ valueReal
118
+
119
+ valueString
120
+
121
+ other
122
+ """
123
+ __members__: typing.ClassVar[dict[str, UiEntryType]] # value = {'button': <UiEntryType.button: 0>, 'group': <UiEntryType.group: 1>, 'valueInt': <UiEntryType.valueInt: 2>, 'valueUint': <UiEntryType.valueUint: 3>, 'valueReal': <UiEntryType.valueReal: 4>, 'valueString': <UiEntryType.valueString: 5>, 'other': <UiEntryType.other: 6>}
124
+ button: typing.ClassVar[UiEntryType] # value = <UiEntryType.button: 0>
125
+ group: typing.ClassVar[UiEntryType] # value = <UiEntryType.group: 1>
126
+ other: typing.ClassVar[UiEntryType] # value = <UiEntryType.other: 6>
127
+ valueInt: typing.ClassVar[UiEntryType] # value = <UiEntryType.valueInt: 2>
128
+ valueReal: typing.ClassVar[UiEntryType] # value = <UiEntryType.valueReal: 4>
129
+ valueString: typing.ClassVar[UiEntryType] # value = <UiEntryType.valueString: 5>
130
+ valueUint: typing.ClassVar[UiEntryType] # value = <UiEntryType.valueUint: 3>
131
+ def __eq__(self, other: typing.Any) -> bool:
132
+ ...
133
+ def __getstate__(self) -> int:
134
+ ...
135
+ def __hash__(self) -> int:
136
+ ...
137
+ def __index__(self) -> int:
138
+ ...
139
+ def __init__(self, value: int) -> None:
140
+ ...
141
+ def __int__(self) -> int:
142
+ ...
143
+ def __ne__(self, other: typing.Any) -> bool:
144
+ ...
145
+ def __repr__(self) -> str:
146
+ ...
147
+ def __setstate__(self, state: int) -> None:
148
+ ...
149
+ def __str__(self) -> str:
150
+ ...
151
+ @property
152
+ def name(self) -> str:
153
+ ...
154
+ @property
155
+ def value(self) -> int:
156
+ ...
157
+ class UiValueInt:
158
+ @property
159
+ def max(self) -> int:
160
+ ...
161
+ @property
162
+ def min(self) -> int:
163
+ ...
164
+ @property
165
+ def value(self) -> int:
166
+ ...
167
+ class UiValueReal:
168
+ @property
169
+ def max(self) -> float:
170
+ ...
171
+ @property
172
+ def min(self) -> float:
173
+ ...
174
+ @property
175
+ def value(self) -> float:
176
+ ...
177
+ class UiValueString:
178
+ @property
179
+ def allowed(self) -> list[str] | None:
180
+ ...
181
+ @property
182
+ def value(self) -> str:
183
+ ...
184
+ class UiValueUint:
185
+ @property
186
+ def max(self) -> int:
187
+ ...
188
+ @property
189
+ def min(self) -> int:
190
+ ...
191
+ @property
192
+ def value(self) -> int:
193
+ ...
194
+ class Viewer:
195
+ """
196
+ GLFW-based mesh viewer
197
+ """
198
+ def __init__(self) -> None:
199
+ ...
200
+ def captureScreenShot(self, path: str) -> None:
201
+ """
202
+ Captures part of window (redraw 3d scene over UI (without redrawing UI))
203
+ """
204
+ def captureUIScreenShot(self, path: str) -> None:
205
+ """
206
+ Captures full window screenshot with UI
207
+ """
208
+ def getMousePos(self) -> meshlib.mrmeshpy.Vector2f:
209
+ """
210
+ Get the current mouse position.
211
+ """
212
+ def incrementForceRedrawFrames(self, num: int = 1, swapOnLastOnly: bool = False) -> None:
213
+ """
214
+ Increment number of forced frames to redraw in event loop
215
+ if `swapOnLastOnly` only last forced frame will be present on screen and all previous will not
216
+ """
217
+ def mouseDown(self, button: MouseButton, modifier: KeyMod = ...) -> None:
218
+ """
219
+ Simulate mouse down event.
220
+ """
221
+ def mouseMove(self, x: int, y: int) -> None:
222
+ """
223
+ Simulate mouse move event.
224
+ NOTE: Some plugins need at least TWO `mouseMove()`s in a row (possibly with the same position). If you're having issues, try sending two events.
225
+ """
226
+ def mouseUp(self, button: MouseButton, modifier: KeyMod = ...) -> None:
227
+ """
228
+ Simulate mouse up event.
229
+ """
230
+ def preciseFitDataViewport(self, vpList: meshlib.mrmeshpy.ViewportMask = ..., params: ViewportFitDataParams = ...) -> None:
231
+ """
232
+ Calls fitData and change FOV to match the screen size then
233
+ params - params fit data
234
+ """
235
+ def showSceneTree(self, show: bool) -> None:
236
+ """
237
+ Shows or hide scene tree
238
+ """
239
+ def shutdown(self) -> None:
240
+ """
241
+ sets stop event loop flag (this flag is glfwShouldWindowClose equivalent)
242
+ """
243
+ def skipFrames(self, frames: int) -> None:
244
+ ...
245
+ def viewport(self, viewportId: meshlib.mrmeshpy.ViewportId = ...) -> Viewport:
246
+ """
247
+ Return the current viewport, or the viewport corresponding to a given unique identifier
248
+ viewportId - unique identifier corresponding to the desired viewport (current viewport if 0)
249
+ """
250
+ def viewportToScreen(self, arg0: meshlib.mrmeshpy.Vector3f, arg1: meshlib.mrmeshpy.ViewportId) -> meshlib.mrmeshpy.Vector3f:
251
+ """
252
+ Convert viewport coordinates to to screen coordinates
253
+ """
254
+ class ViewerLaunchParams:
255
+ """
256
+ This struct contains rules for viewer launch
257
+ """
258
+ height: int
259
+ width: int
260
+ windowMode: ViewerLaunchParamsMode
261
+ def __init__(self) -> None:
262
+ ...
263
+ @property
264
+ def animationMaxFps(self) -> int:
265
+ """
266
+ max fps if animating
267
+ """
268
+ @animationMaxFps.setter
269
+ def animationMaxFps(self, arg0: int) -> None:
270
+ ...
271
+ @property
272
+ def fullscreen(self) -> bool:
273
+ """
274
+ if true starts fullscreen
275
+ """
276
+ @fullscreen.setter
277
+ def fullscreen(self, arg0: bool) -> None:
278
+ ...
279
+ @property
280
+ def isAnimating(self) -> bool:
281
+ """
282
+ if true - calls render without system events
283
+ """
284
+ @isAnimating.setter
285
+ def isAnimating(self, arg0: bool) -> None:
286
+ ...
287
+ @property
288
+ def name(self) -> str:
289
+ """
290
+ Window name
291
+ """
292
+ @name.setter
293
+ def name(self, arg0: str) -> None:
294
+ ...
295
+ class ViewerLaunchParamsMode:
296
+ """
297
+ Members:
298
+
299
+ Hide : Don't show window
300
+
301
+ HideInit : Show window after init
302
+
303
+ Show : Show window immediately
304
+
305
+ TryHidden : Launches in "Hide" mode if OpenGL is present and "NoWindow" if it is not
306
+
307
+ NoWindow : Don't initialize GL window (don't call GL functions)(force `isAnimating`)
308
+ """
309
+ Hide: typing.ClassVar[ViewerLaunchParamsMode] # value = <ViewerLaunchParamsMode.Hide: 2>
310
+ HideInit: typing.ClassVar[ViewerLaunchParamsMode] # value = <ViewerLaunchParamsMode.HideInit: 1>
311
+ NoWindow: typing.ClassVar[ViewerLaunchParamsMode] # value = <ViewerLaunchParamsMode.NoWindow: 4>
312
+ Show: typing.ClassVar[ViewerLaunchParamsMode] # value = <ViewerLaunchParamsMode.Show: 0>
313
+ TryHidden: typing.ClassVar[ViewerLaunchParamsMode] # value = <ViewerLaunchParamsMode.TryHidden: 3>
314
+ __members__: typing.ClassVar[dict[str, ViewerLaunchParamsMode]] # value = {'Hide': <ViewerLaunchParamsMode.Hide: 2>, 'HideInit': <ViewerLaunchParamsMode.HideInit: 1>, 'Show': <ViewerLaunchParamsMode.Show: 0>, 'TryHidden': <ViewerLaunchParamsMode.TryHidden: 3>, 'NoWindow': <ViewerLaunchParamsMode.NoWindow: 4>}
315
+ def __eq__(self, other: typing.Any) -> bool:
316
+ ...
317
+ def __getstate__(self) -> int:
318
+ ...
319
+ def __hash__(self) -> int:
320
+ ...
321
+ def __index__(self) -> int:
322
+ ...
323
+ def __init__(self, value: int) -> None:
324
+ ...
325
+ def __int__(self) -> int:
326
+ ...
327
+ def __ne__(self, other: typing.Any) -> bool:
328
+ ...
329
+ def __repr__(self) -> str:
330
+ ...
331
+ def __setstate__(self, state: int) -> None:
332
+ ...
333
+ def __str__(self) -> str:
334
+ ...
335
+ @property
336
+ def name(self) -> str:
337
+ ...
338
+ @property
339
+ def value(self) -> int:
340
+ ...
341
+ class ViewerSetup:
342
+ def __init__(self) -> None:
343
+ ...
344
+ class Viewport:
345
+ """
346
+ Viewport is a rectangular area, in which the objects of interest are going to be rendered.
347
+ An application can have a number of viewports each with its own ID.
348
+ """
349
+ def cameraLookAlong(self, dir: meshlib.mrmeshpy.Vector3f, up: meshlib.mrmeshpy.Vector3f) -> None:
350
+ """
351
+ Set camera look direction and up direction (they should be perpendicular)
352
+ this function changes camera position and do not change camera spot (0,0,0) by default
353
+ to change camera position use setCameraTranslation after this function
354
+ """
355
+ def cameraRotateAround(self, axis: meshlib.mrmeshpy.Line3f, angle: float) -> None:
356
+ """
357
+ Rotates camera around axis +direction applied to axis point
358
+ note: this can make camera clip objects (as far as distance to scene center is not fixed)
359
+ """
360
+ def projectToViewportSpace(self, arg0: meshlib.mrmeshpy.Vector3f) -> meshlib.mrmeshpy.Vector3f:
361
+ """
362
+ Project world space point to viewport coordinates (in pixels), (0,0) will be at the top-left corner of the viewport.
363
+ """
364
+ @property
365
+ def id(self) -> meshlib.mrmeshpy.ViewportId:
366
+ ...
367
+ class ViewportFitDataParams:
368
+ def __init__(self) -> None:
369
+ ...
370
+ @property
371
+ def factor(self) -> float:
372
+ """
373
+ part of the screen for scene location
374
+ """
375
+ @factor.setter
376
+ def factor(self, arg0: float) -> None:
377
+ ...
378
+ @property
379
+ def mode(self) -> ViewportFitMode:
380
+ """
381
+ fit mode
382
+ """
383
+ @mode.setter
384
+ def mode(self, arg0: ViewportFitMode) -> None:
385
+ ...
386
+ @property
387
+ def snapView(self) -> bool:
388
+ """
389
+ snapView - to snap camera angle to closest canonical quaternion
390
+ """
391
+ @snapView.setter
392
+ def snapView(self, arg0: bool) -> None:
393
+ ...
394
+ class ViewportFitMode:
395
+ """
396
+ Fit mode ( types of objects for which the fit is applied )
397
+
398
+ Members:
399
+
400
+ Visible : fit all visible objects
401
+
402
+ SelectedObjects : fit only selected objects
403
+
404
+ SelectedPrimitives : fit only selected primitives
405
+ """
406
+ SelectedObjects: typing.ClassVar[ViewportFitMode] # value = <ViewportFitMode.SelectedObjects: 2>
407
+ SelectedPrimitives: typing.ClassVar[ViewportFitMode] # value = <ViewportFitMode.SelectedPrimitives: 1>
408
+ Visible: typing.ClassVar[ViewportFitMode] # value = <ViewportFitMode.Visible: 0>
409
+ __members__: typing.ClassVar[dict[str, ViewportFitMode]] # value = {'Visible': <ViewportFitMode.Visible: 0>, 'SelectedObjects': <ViewportFitMode.SelectedObjects: 2>, 'SelectedPrimitives': <ViewportFitMode.SelectedPrimitives: 1>}
410
+ def __eq__(self, other: typing.Any) -> bool:
411
+ ...
412
+ def __getstate__(self) -> int:
413
+ ...
414
+ def __hash__(self) -> int:
415
+ ...
416
+ def __index__(self) -> int:
417
+ ...
418
+ def __init__(self, value: int) -> None:
419
+ ...
420
+ def __int__(self) -> int:
421
+ ...
422
+ def __ne__(self, other: typing.Any) -> bool:
423
+ ...
424
+ def __repr__(self) -> str:
425
+ ...
426
+ def __setstate__(self, state: int) -> None:
427
+ ...
428
+ def __str__(self) -> str:
429
+ ...
430
+ @property
431
+ def name(self) -> str:
432
+ ...
433
+ @property
434
+ def value(self) -> int:
435
+ ...
436
+ def addDistanceMapToScene(distancemap: meshlib.mrmeshpy.DistanceMap, name: str, dmap_to_local_xf: meshlib.mrmeshpy.AffineXf3f) -> None:
437
+ """
438
+ Add given distance map to scene tree.
439
+ """
440
+ def addLinesToScene(lines: meshlib.mrmeshpy.Polyline3, name: str) -> None:
441
+ """
442
+ Add given lines to scene tree.
443
+ """
444
+ def addMeshToScene(mesh: meshlib.mrmeshpy.Mesh, name: str) -> None:
445
+ """
446
+ Add given mesh to scene tree.
447
+ """
448
+ def addPointCloudToScene(points: meshlib.mrmeshpy.PointCloud, name: str) -> None:
449
+ """
450
+ Add given point cloud to scene tree.
451
+ """
452
+ def addVoxelsToScene(voxels: meshlib.mrmeshpy.VdbVolume, name: str) -> None:
453
+ """
454
+ Add given voxels to scene tree.
455
+ """
456
+ def clearScene() -> None:
457
+ """
458
+ remove all objects from scene tree
459
+ """
460
+ def getSelectedDistanceMaps() -> meshlib.mrmeshpy.std_vector_DistanceMap:
461
+ """
462
+ Get copies of all selected voxel grids in the scene.
463
+ """
464
+ def getSelectedMeshEdges() -> meshlib.mrmeshpy.std_vector_TypedBitSet_Id_UndirectedEdgeTag:
465
+ """
466
+ Get selected edge bitsets of the selected mesh objects.
467
+ """
468
+ def getSelectedMeshFaces() -> meshlib.mrmeshpy.std_vector_TypedBitSet_Id_FaceTag:
469
+ """
470
+ Get selected face bitsets of the selected mesh objects.
471
+ """
472
+ def getSelectedMeshes() -> meshlib.mrmeshpy.std_vector_Mesh:
473
+ """
474
+ Get copies of all selected meshes in the scene.
475
+ """
476
+ def getSelectedObjects() -> meshlib.mrmeshpy.std_vector_std_shared_ptr_Object:
477
+ ...
478
+ def getSelectedPointCloudPoints() -> meshlib.mrmeshpy.std_vector_TypedBitSet_Id_VertTag:
479
+ """
480
+ Get selected point bitsets of the selected point cloud objects.
481
+ """
482
+ def getSelectedPointClouds() -> meshlib.mrmeshpy.std_vector_PointCloud:
483
+ """
484
+ Get copies of all selected point clouds in the scene.
485
+ """
486
+ def getSelectedPolylines() -> meshlib.mrmeshpy.std_vector_Polyline_Vector3_float:
487
+ """
488
+ Get copies of all selected polylines in the scene.
489
+ """
490
+ def getSelectedVoxels() -> meshlib.mrmeshpy.std_vector_VoxelsVolumeMinMax_FloatGrid:
491
+ """
492
+ Get copies of all selected voxel grids in the scene.
493
+ """
494
+ def launch(params: ViewerLaunchParams = ..., setup: ViewerSetup = ...) -> None:
495
+ """
496
+ starts default viewer with given params and setup
497
+ """
498
+ def modifySelectedMesh(mesh: meshlib.mrmeshpy.Mesh) -> None:
499
+ """
500
+ Assign a new mesh to the selected mesh object. Exactly one object must be selected.
501
+ """
502
+ def runFromGUIThread(lambda: typing.Callable) -> None:
503
+ """
504
+ Executes given function from GUI thread, and returns after it is done
505
+ """
506
+ def selectByName(objectName: str) -> None:
507
+ """
508
+ select objects in scene tree with given name, unselect others
509
+ """
510
+ def selectByType(typeName: str) -> None:
511
+ """
512
+ string typeName: {"Meshes", "Points", "Voxels"}
513
+ objects in scene tree with given type, unselect others
514
+ """
515
+ def setSelectedMeshEdges(arg0: meshlib.mrmeshpy.std_vector_TypedBitSet_Id_UndirectedEdgeTag) -> None:
516
+ """
517
+ Set selected edge bitsets of the selected mesh objects.
518
+ """
519
+ def setSelectedMeshFaces(arg0: meshlib.mrmeshpy.std_vector_TypedBitSet_Id_FaceTag) -> None:
520
+ """
521
+ Set selected face bitsets of the selected mesh objects.
522
+ """
523
+ def setSelectedPointCloudPoints(arg0: meshlib.mrmeshpy.std_vector_TypedBitSet_Id_VertTag) -> None:
524
+ """
525
+ Set selected point bitsets of the selected point cloud objects.
526
+ """
527
+ def uiListEntries(arg0: list[str]) -> list[UiEntry]:
528
+ """
529
+ List existing UI entries at the specified path.
530
+ Pass an empty list to see top-level groups.
531
+ Add group name to the end of the vector to see its contents.
532
+ When you find the button you need, pass it to `uiPressButton()`.
533
+ """
534
+ def uiPressButton(arg0: list[str]) -> None:
535
+ """
536
+ Simulate a button click. Use `uiListEntries()` to find button names.
537
+ """
538
+ def uiReadValueInt(arg0: list[str]) -> UiValueInt:
539
+ """
540
+ Read a value from a drag/slider widget. This overload is for signed integers.
541
+ """
542
+ def uiReadValueReal(arg0: list[str]) -> UiValueReal:
543
+ """
544
+ Read a value from a drag/slider widget. This overload is for real numbers.
545
+ """
546
+ def uiReadValueString(arg0: list[str]) -> UiValueString:
547
+ """
548
+ Read a value from a drag/slider widget. This overload is for strings.
549
+ """
550
+ def uiReadValueUint(arg0: list[str]) -> UiValueUint:
551
+ """
552
+ Read a value from a drag/slider widget. This overload is for unsigned integers.
553
+ """
554
+ def uiWriteValueInt(arg0: list[str], arg1: int) -> None:
555
+ """
556
+ Write a value to a drag/slider widget. This overload is for signed integers.
557
+ """
558
+ def uiWriteValueReal(arg0: list[str], arg1: float) -> None:
559
+ """
560
+ Write a value to a drag/slider widget. This overload is for real numbers.
561
+ """
562
+ def uiWriteValueString(arg0: list[str], arg1: str) -> None:
563
+ """
564
+ Write a value to a drag/slider widget. This overload is for strings.
565
+ """
566
+ def uiWriteValueUint(arg0: list[str], arg1: int) -> None:
567
+ """
568
+ Write a value to a drag/slider widget. This overload is for unsigned integers.
569
+ """
570
+ def unselectAll() -> None:
571
+ """
572
+ unselect all objects in scene tree
573
+ """
meshlib/mrviewerpy.so ADDED
Binary file