pyvista-trueform 0.2.0__tar.gz

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 (34) hide show
  1. pyvista_trueform-0.2.0/LICENSE +11 -0
  2. pyvista_trueform-0.2.0/LICENSE.noncommercial +73 -0
  3. pyvista_trueform-0.2.0/PKG-INFO +358 -0
  4. pyvista_trueform-0.2.0/README.md +263 -0
  5. pyvista_trueform-0.2.0/pyproject.toml +45 -0
  6. pyvista_trueform-0.2.0/setup.cfg +4 -0
  7. pyvista_trueform-0.2.0/src/pyvista_trueform/__init__.py +68 -0
  8. pyvista_trueform-0.2.0/src/pyvista_trueform/_accessor/__init__.py +112 -0
  9. pyvista_trueform-0.2.0/src/pyvista_trueform/_accessor/_booleans.py +62 -0
  10. pyvista_trueform-0.2.0/src/pyvista_trueform/_accessor/_curves.py +55 -0
  11. pyvista_trueform-0.2.0/src/pyvista_trueform/_accessor/_iso.py +43 -0
  12. pyvista_trueform-0.2.0/src/pyvista_trueform/_accessor/_queries.py +253 -0
  13. pyvista_trueform-0.2.0/src/pyvista_trueform/_accessor/_remesh.py +90 -0
  14. pyvista_trueform-0.2.0/src/pyvista_trueform/_accessor/_repair.py +118 -0
  15. pyvista_trueform-0.2.0/src/pyvista_trueform/_accessor/_topology.py +113 -0
  16. pyvista_trueform-0.2.0/src/pyvista_trueform/_agents.md +420 -0
  17. pyvista_trueform-0.2.0/src/pyvista_trueform/_agents.py +26 -0
  18. pyvista_trueform-0.2.0/src/pyvista_trueform/_colormaps.py +61 -0
  19. pyvista_trueform-0.2.0/src/pyvista_trueform/_conversion.py +252 -0
  20. pyvista_trueform-0.2.0/src/pyvista_trueform/_factory.py +334 -0
  21. pyvista_trueform-0.2.0/src/pyvista_trueform/_forward.py +23 -0
  22. pyvista_trueform-0.2.0/src/pyvista_trueform/_generators.py +126 -0
  23. pyvista_trueform-0.2.0/src/pyvista_trueform/_io.py +86 -0
  24. pyvista_trueform-0.2.0/src/pyvista_trueform/_lines.py +40 -0
  25. pyvista_trueform-0.2.0/src/pyvista_trueform/_pick.py +176 -0
  26. pyvista_trueform-0.2.0/src/pyvista_trueform/_registration.py +208 -0
  27. pyvista_trueform-0.2.0/src/pyvista_trueform/_tube.py +56 -0
  28. pyvista_trueform-0.2.0/src/pyvista_trueform.egg-info/PKG-INFO +358 -0
  29. pyvista_trueform-0.2.0/src/pyvista_trueform.egg-info/SOURCES.txt +32 -0
  30. pyvista_trueform-0.2.0/src/pyvista_trueform.egg-info/dependency_links.txt +1 -0
  31. pyvista_trueform-0.2.0/src/pyvista_trueform.egg-info/entry_points.txt +2 -0
  32. pyvista_trueform-0.2.0/src/pyvista_trueform.egg-info/requires.txt +6 -0
  33. pyvista_trueform-0.2.0/src/pyvista_trueform.egg-info/top_level.txt +1 -0
  34. pyvista_trueform-0.2.0/tests/test_pyvista_trueform.py +1545 -0
@@ -0,0 +1,11 @@
1
+ pyvista-trueform Dual License
2
+ =============================
3
+
4
+ This project is distributed under a dual-license model maintained by XLAB.
5
+
6
+ - **Noncommercial use** is covered by the PolyForm Noncommercial License 1.0.0. See `LICENSE.noncommercial` for the full text and abide by its terms.
7
+ - **Commercial use** requires a separate paid agreement with XLAB.
8
+
9
+ If you need commercial licensing, email `info@polydera.com`.
10
+
11
+ Contributors certify that their work may be distributed under both the PolyForm Noncommercial License and any commercial licenses XLAB offers.
@@ -0,0 +1,73 @@
1
+ # PolyForm Noncommercial License 1.0.0
2
+
3
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
4
+
5
+ ## Acceptance
6
+
7
+ In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
8
+
9
+ ## Copyright License
10
+
11
+ The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
12
+
13
+ ## Distribution License
14
+
15
+ The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
16
+
17
+ ## Notices
18
+
19
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
20
+
21
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
22
+
23
+ ## Changes and New Works License
24
+
25
+ The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
26
+
27
+ ## Patent License
28
+
29
+ The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
30
+
31
+ ## Noncommercial Purposes
32
+
33
+ Any noncommercial purpose is a permitted purpose.
34
+
35
+ ## Personal Uses
36
+
37
+ Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
38
+
39
+ ## Noncommercial Organizations
40
+
41
+ Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
42
+
43
+ ## Fair Use
44
+
45
+ You may have "fair use" rights for the software under the law. These terms do not limit them.
46
+
47
+ ## No Other Rights
48
+
49
+ These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
50
+
51
+ ## Patent Defense
52
+
53
+ If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
54
+
55
+ ## Violations
56
+
57
+ The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
58
+
59
+ ## No Liability
60
+
61
+ ***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
62
+
63
+ ## Definitions
64
+
65
+ The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
66
+
67
+ **You** refers to the individual or entity agreeing to these terms.
68
+
69
+ **Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
70
+
71
+ **Your licenses** are all the licenses granted to you for the software under these terms.
72
+
73
+ **Use** means anything you do with the software requiring one of your licenses.
@@ -0,0 +1,358 @@
1
+ Metadata-Version: 2.4
2
+ Name: pyvista-trueform
3
+ Version: 0.2.0
4
+ Summary: PyVista accessor for trueform: exact mesh booleans, arrangements, intersection curves, and scalar-field cuts.
5
+ Author: XLAB
6
+ Author-email: Ziga Sajovic <info@polydera.com>
7
+ License: # PolyForm Noncommercial License 1.0.0
8
+
9
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
10
+
11
+ ## Acceptance
12
+
13
+ In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
14
+
15
+ ## Copyright License
16
+
17
+ The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
18
+
19
+ ## Distribution License
20
+
21
+ The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
22
+
23
+ ## Notices
24
+
25
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
26
+
27
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
28
+
29
+ ## Changes and New Works License
30
+
31
+ The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
32
+
33
+ ## Patent License
34
+
35
+ The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
36
+
37
+ ## Noncommercial Purposes
38
+
39
+ Any noncommercial purpose is a permitted purpose.
40
+
41
+ ## Personal Uses
42
+
43
+ Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
44
+
45
+ ## Noncommercial Organizations
46
+
47
+ Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
48
+
49
+ ## Fair Use
50
+
51
+ You may have "fair use" rights for the software under the law. These terms do not limit them.
52
+
53
+ ## No Other Rights
54
+
55
+ These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
56
+
57
+ ## Patent Defense
58
+
59
+ If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
60
+
61
+ ## Violations
62
+
63
+ The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
64
+
65
+ ## No Liability
66
+
67
+ ***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
68
+
69
+ ## Definitions
70
+
71
+ The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
72
+
73
+ **You** refers to the individual or entity agreeing to these terms.
74
+
75
+ **Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
76
+
77
+ **Your licenses** are all the licenses granted to you for the software under these terms.
78
+
79
+ **Use** means anything you do with the software requiring one of your licenses.
80
+
81
+ Project-URL: Homepage, https://trueform.polydera.com
82
+ Project-URL: Repository, https://github.com/polydera/pyvista-trueform
83
+ Project-URL: Issues, https://github.com/polydera/pyvista-trueform/issues
84
+ Keywords: pyvista,mesh,geometry,mesh-boolean,csg,computational-geometry
85
+ Requires-Python: >=3.11
86
+ Description-Content-Type: text/markdown
87
+ License-File: LICENSE
88
+ License-File: LICENSE.noncommercial
89
+ Requires-Dist: trueform>=0.10.3
90
+ Requires-Dist: pyvista>=0.48
91
+ Requires-Dist: numpy>=1.23
92
+ Provides-Extra: test
93
+ Requires-Dist: pytest; extra == "test"
94
+ Dynamic: license-file
95
+
96
+ ![pyvista-trueform](https://raw.githubusercontent.com/polydera/pyvista-trueform/main/assets/header.png)
97
+
98
+ ![Six overlapping spheres split into their domains by one csg_graph arrangement](https://raw.githubusercontent.com/polydera/pyvista-trueform/main/assets/hero_domains_multiblock.png)
99
+
100
+ Exact mesh booleans, intersection curves, self-intersection repair,
101
+ isocontours and isobands, and N-ary CSG on [PyVista](https://pyvista.org)
102
+ meshes. PyVista in, PyVista out, through one `.trueform` accessor on
103
+ `pyvista.PolyData`.
104
+
105
+ ## Getting Started
106
+
107
+ ```bash
108
+ pip install pyvista-trueform
109
+ ```
110
+
111
+ **The accessor** registers itself on import and answers through
112
+ `.trueform` on any `pyvista.PolyData`:
113
+
114
+ ```python
115
+ import pyvista as pv
116
+ import pyvista_trueform # registers the accessor
117
+
118
+ pv.Cube().trueform.volume()
119
+ ```
120
+
121
+ **The cache** is whole-value, keyed by the dataset's VTK modification
122
+ time — the held instance is what lets trueform's spatial tree, face
123
+ membership, and edge link build lazily once:
124
+
125
+ ```python
126
+ import numpy as np
127
+
128
+ a = pv.Cube()
129
+ mesh = a.trueform.to_mesh()
130
+ assert a.trueform.to_mesh() is mesh # same cached instance, MTime unchanged
131
+
132
+ np.asarray(a.points)[0] += 1.0 # raw mutation: MTime NOT bumped
133
+ a.Modified() # tell VTK, so the cache rebuilds
134
+ assert a.trueform.to_mesh() is not mesh
135
+ ```
136
+
137
+ **A worked example** — a boolean carves the shape, `domains` reads the
138
+ pieces the arrangement made, and `pick` names the one a ray struck:
139
+
140
+ ```python
141
+ import numpy as np
142
+ import pyvista as pv
143
+ import pyvista_trueform as tfpv
144
+ import trueform as tf
145
+
146
+ a = pv.Cube()
147
+ b = pv.Cube(center=(0.5, 0.5, 0.5))
148
+
149
+ carved = a.trueform.difference(b)
150
+ carved.cell_data["trueform_labels"] # per-face source: 0 (a) or 1 (b)
151
+ blocks = tfpv.domains([a, b]) # every overlap pocket, its own block
152
+ ray = tf.Ray(origin=np.array([-2, 0, 0], dtype=np.float32),
153
+ direction=np.array([1, 0, 0], dtype=np.float32))
154
+ hit = tfpv.pick(blocks, ray)
155
+ hit.block_index # which block the ray struck
156
+ ```
157
+
158
+ **The contract** the package holds itself to — dialect laws, the full
159
+ surface, the gotchas — is one call away:
160
+
161
+ ```python
162
+ print(tfpv.agents()) # the package contract, for agents and humans alike
163
+ ```
164
+
165
+ The sections below cover the rest of the surface these three lean on.
166
+
167
+ ### N-ary CSG
168
+
169
+ Build one arrangement of N operands and answer arbitrarily many boolean
170
+ expressions against it:
171
+
172
+ ```python
173
+ from pyvista_trueform import csg_graph
174
+
175
+ c = pv.Cube(center=(0.25, 0.5, 0.0)) # quads, mixed ngons: normalized losslessly
176
+ graph = csg_graph([a, b, c])
177
+ graph.mesh(tf.op(0) - (tf.op(1) | tf.op(2)))
178
+
179
+ graph.domains() # every watertight piece, as a MultiBlock
180
+ graph.intersection_curves() # the seams, as line PolyData
181
+ graph.outer_shell() # boundary of everything the operands enclose
182
+ graph.native # escape hatch: the raw trueform.CsgGraph
183
+
184
+ csg_graph([a]) # one operand is legal: its own self arrangement
185
+ ```
186
+
187
+ ### Conversions
188
+
189
+ `to_trueform` and `to_pyvista` cross the boundary; only `to_trueform`
190
+ copies:
191
+
192
+ ```python
193
+ from pyvista_trueform import to_trueform, to_pyvista, curves_to_pyvista
194
+
195
+ mesh = to_trueform(a) # detached trueform.Mesh, copies the geometry
196
+ to_pyvista(mesh) # zero-copy: shares mesh's own NumPy buffers
197
+ curves_to_pyvista(tf.boundary_curves(mesh)) # any (paths, points) pair, zero-copy
198
+ ```
199
+
200
+ ### IO
201
+
202
+ ```python
203
+ from pyvista_trueform import read, write
204
+
205
+ write("cube.obj", a) # dispatched on suffix; .obj keeps a's own quad faces
206
+ read("cube.obj") # zero-copy conversion back to PolyData
207
+
208
+ write("cube.stl", a.trueform.triangulated()) # STL: triangles only
209
+ read("cube.stl") # STL welds duplicate vertices on the way in
210
+ ```
211
+
212
+ ### Domains and N-ary arrangements
213
+
214
+ ```python
215
+ from pyvista_trueform import domains, mesh_arrangements, split_into_domains
216
+
217
+ domains([a, b, c]) # every watertight domain, named by id, as a MultiBlock
218
+ mesh_arrangements([a, b, c]) # the whole arrangement instead, as one labeled PolyData
219
+ a.trueform.domains() # one mesh's own overlap pockets, from its self arrangement
220
+
221
+ arranged = mesh_arrangements([a, b, c])
222
+ split_into_domains(arranged, exclude_outer_shell=True) # already cut: labeled and
223
+ # split, no second arrangement
224
+ ```
225
+
226
+ ### Picking
227
+
228
+ `pick` and `closest` answer over any MultiBlock (nested ones flatten; a
229
+ plain PolyData works too, as block 0):
230
+
231
+ ```python
232
+ from pyvista_trueform import pick, closest
233
+
234
+ blocks = domains(csg_graph([a, b]))
235
+ ray = tf.Ray(origin=np.array([-2, 0, 0], dtype=np.float32),
236
+ direction=np.array([1, 0, 0], dtype=np.float32))
237
+ pick(blocks, ray) # hit.block_index, hit.point: first block struck
238
+ closest(blocks, [0.0, 0.0, 0.0]) # same shape, by proximity instead of a ray
239
+ ```
240
+
241
+ ### Remesh
242
+
243
+ ```python
244
+ tri = a.trueform.triangulated()
245
+
246
+ tri.trueform.remeshed(0.1) # isotropic, target edge length
247
+ tri.trueform.decimated(0.5) # quadric-error, target face proportion
248
+ tri.trueform.simplified() # quadric-error, to an error budget instead
249
+
250
+ labels = np.zeros(tri.n_cells, dtype=np.int32)
251
+ remeshed = tri.trueform.remeshed(0.1, preserve_regions=labels)
252
+ remeshed.cell_data["trueform_labels"] # preserve_regions rides back as cell data
253
+ ```
254
+
255
+ ### Queries
256
+
257
+ ```python
258
+ a.trueform.volume() # .area(), .signed_volume(), .mean_edge_length() too
259
+ a.trueform.is_closed() # .is_open(), .is_manifold(), .is_non_manifold(),
260
+ # .euler_characteristic() too
261
+ a.trueform.distance(b) # euclidean; .intersects(b) too
262
+ a.trueform.signed_distance(b) # negative inside b; batched over a's own points
263
+ a.plot(scalars=a.trueform.signed_distance(b), cmap="polydera_div") # packaged map, registered on import
264
+ a.trueform.closest_point([0, 0, 0]) # (face_id, distance, point)
265
+ a.trueform.closest_points([2, 0, 0], k=3) # the k nearest, closest first
266
+ a.trueform.closest_point_pair(b) # witness pair between a and b
267
+ a.trueform.principal_curvatures() # (k0, k1); .shape_index() too
268
+
269
+ seg = tf.Segment(np.array([[2, 0, 0], [3, 0, 0]], dtype=np.float32))
270
+ a.trueform.distance(seg) # queries take trueform primitives; .closest_point(seg) too
271
+
272
+ n, labels = a.trueform.connected_components() # (n, per-face component labels)
273
+ a.trueform.split_components() # one block per component, as a MultiBlock
274
+ a.trueform.boundary_curves() # open edges, as line PolyData
275
+ a.trueform.boundary_edges() # the dataset's own point ids instead; .boundary_paths(),
276
+ # .non_manifold_edges(), .non_manifold_paths() too
277
+
278
+ ray = tf.Ray(origin=np.array([-2, 0, 0], dtype=np.float32),
279
+ direction=np.array([1, 0, 0], dtype=np.float32))
280
+ a.trueform.ray_cast(ray) # (face_id, t); config=(min_t, max_t) bounds it
281
+ ```
282
+
283
+ All of these answer against the cached mesh, so the spatial tree
284
+ amortizes across calls.
285
+
286
+ ### Registration
287
+
288
+ ```python
289
+ from pyvista_trueform import (align_rigid, align_similarity, align_icp,
290
+ align_obb, align_knn, chamfer_distance)
291
+
292
+ align_rigid(a, b) # Kabsch: rotation + translation, correspondence required
293
+ align_similarity(a, b) # + uniform scale, same correspondence requirement
294
+ align_icp(a, b) # iterative closest point, no correspondence needed
295
+ align_obb(a, b) # oriented-bounding-box alignment, no correspondence
296
+ align_knn(a, b) # one soft-correspondence step
297
+ chamfer_distance(a, b) # one-way chamfer measure
298
+
299
+ matrix = align_rigid(a, b) # 4x4 delta: maps a's current points onto b
300
+ aligned = a.transform(matrix, inplace=False) # apply to a itself to align it with b
301
+ ```
302
+
303
+ ### Lines and tubes
304
+
305
+ ```python
306
+ from pyvista_trueform import connect_lines, tube
307
+
308
+ line = pv.Line((0, 0, 0), (1, 0, 0))
309
+ tube(line, radius=0.1) # triangle tube; unordered 2-point segments connect first
310
+ connect_lines(line) # just the assembly: segments in, polylines out, same point ids
311
+ ```
312
+
313
+ ### Generators
314
+
315
+ ```python
316
+ tfpv.box(2.0, 1.0, 3.0) # ticks subdivide each axis
317
+ tfpv.sphere(1.0, stacks=20, segments=20)
318
+ tfpv.cylinder(1.0, 2.0, segments=20)
319
+ tfpv.plane(10.0, 5.0) # ticks subdivide each axis
320
+ tfpv.sphere(1.0, dtype=np.float64, index_dtype=np.int64) # trueform's defaults apply when omitted
321
+ ```
322
+
323
+ ### Examples
324
+
325
+ ![A sphere fractured by a grid of cutters in one csg_graph expression, read back as exploded domain chunks](https://raw.githubusercontent.com/polydera/pyvista-trueform/main/assets/hero_csg_fracture.png)
326
+
327
+ Seven standalone scripts in `examples/`, each with an importable
328
+ `compute()` and a plotting `main()` (`python examples/<name>.py`); the
329
+ gallery ships in the Polydera color scheme through the shared
330
+ `examples/_theme.py`:
331
+
332
+ - `boolean.py` — a boolean difference recut live under a dragged sphere
333
+ widget, the result labeled by source.
334
+ - `csg_fracture.py` — a sphere minus a grid of cutters through one
335
+ csg_graph expression, read back as volumetric chunks; clicking a chunk
336
+ names it through `closest`.
337
+ - `isobands.py` — height isobands and isocontours overlaid on a
338
+ surface, recut live from a band-count slider.
339
+ - `signed_distance.py` — a hills surface recolored live by signed
340
+ distance to a dragged torus probe, diverging about the zero seam.
341
+ - `curvature.py` — Gaussian curvature across a torus and mean curvature
342
+ across a hills surface, from one `principal_curvatures` call each.
343
+ - `remesh_and_simplify.py` — remeshed, decimated, and simplified side by
344
+ side.
345
+ - `raycast_depth.py` — an orthographic depth image from one batched
346
+ `tf.Ray` cast.
347
+
348
+ ### Coming with trueform 0.11
349
+
350
+ Orientation verdicts (`orient_faces_consistently`,
351
+ `ensure_positive_orientation`) — the Python binding still returns only the
352
+ repaired faces array, no verdict yet.
353
+
354
+ ## License
355
+
356
+ Dual-licensed:
357
+ - **Noncommercial**: [PolyForm Noncommercial License 1.0.0](./LICENSE.noncommercial)
358
+ - **Commercial**: Contact [info@polydera.com](mailto:info@polydera.com)