differt 0.1.2__py3-none-any.whl → 0.2.0__py3-none-any.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.
- differt/__init__.py +5 -3
- differt/_version.py +5 -5
- differt/geometry/_triangle_mesh.py +154 -19
- differt/geometry/_utils.py +61 -14
- differt/rt/_fermat.py +8 -8
- differt/rt/_image_method.py +4 -4
- differt/rt/_utils.py +54 -8
- differt/scene/_triangle_scene.py +20 -5
- {differt-0.1.2.dist-info → differt-0.2.0.dist-info}/METADATA +3 -3
- {differt-0.1.2.dist-info → differt-0.2.0.dist-info}/RECORD +12 -12
- {differt-0.1.2.dist-info → differt-0.2.0.dist-info}/WHEEL +0 -0
- {differt-0.1.2.dist-info → differt-0.2.0.dist-info}/entry_points.txt +0 -0
differt/__init__.py
CHANGED
differt/_version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
from differt_core import
|
|
1
|
+
from differt_core import ( # Re-export version from core module
|
|
2
|
+
__version__,
|
|
3
|
+
__version_info__,
|
|
4
|
+
)
|
|
2
5
|
|
|
3
|
-
__all__ = ("
|
|
4
|
-
|
|
5
|
-
VERSION: str = __version__
|
|
6
|
-
"""The current version of this module."""
|
|
6
|
+
__all__ = ("__version__", "__version_info__")
|
|
@@ -235,6 +235,20 @@ class TriangleMesh(eqx.Module):
|
|
|
235
235
|
:attr:`num_triangles` is even, but each two consecutive
|
|
236
236
|
triangles are assumed to represent a quadrilateral surface.
|
|
237
237
|
"""
|
|
238
|
+
mask: Bool[Array, " num_triangles"] | None = eqx.field(
|
|
239
|
+
converter=lambda x: jnp.asarray(x) if x is not None else None, default=None
|
|
240
|
+
)
|
|
241
|
+
"""An optional mask to indicate which triangles are active.
|
|
242
|
+
|
|
243
|
+
Using a mask allows to represent multiple sub-meshes of a single mesh, without changing
|
|
244
|
+
the memory allocated to each sub-mesh. Masks can be conveniently created using the
|
|
245
|
+
:meth:`sample` method by passing ``by_masking=True``.
|
|
246
|
+
|
|
247
|
+
.. important::
|
|
248
|
+
|
|
249
|
+
Unless specified, the transformation or selection operations, like :meth:`rotate`,
|
|
250
|
+
will not take the mask into account, and will apply to all triangles.
|
|
251
|
+
"""
|
|
238
252
|
|
|
239
253
|
def __check_init__(self) -> None: # noqa: PLW3201
|
|
240
254
|
if self.assume_quads and (self.triangles.shape[0] % 2) != 0:
|
|
@@ -265,6 +279,7 @@ class TriangleMesh(eqx.Module):
|
|
|
265
279
|
m.face_colors,
|
|
266
280
|
m.face_materials,
|
|
267
281
|
m.object_bounds,
|
|
282
|
+
m.mask,
|
|
268
283
|
),
|
|
269
284
|
self,
|
|
270
285
|
(
|
|
@@ -273,6 +288,7 @@ class TriangleMesh(eqx.Module):
|
|
|
273
288
|
self.face_colors[key, :] if self.face_colors is not None else None,
|
|
274
289
|
self.face_materials[key] if self.face_materials is not None else None,
|
|
275
290
|
None,
|
|
291
|
+
self.mask[key] if self.mask is not None else None,
|
|
276
292
|
),
|
|
277
293
|
is_leaf=lambda x: x is None,
|
|
278
294
|
)
|
|
@@ -297,6 +313,7 @@ class TriangleMesh(eqx.Module):
|
|
|
297
313
|
m.face_colors,
|
|
298
314
|
m.face_materials,
|
|
299
315
|
m.object_bounds,
|
|
316
|
+
m.mask,
|
|
300
317
|
),
|
|
301
318
|
self,
|
|
302
319
|
(
|
|
@@ -309,6 +326,7 @@ class TriangleMesh(eqx.Module):
|
|
|
309
326
|
if self.face_materials is not None
|
|
310
327
|
else None,
|
|
311
328
|
jnp.array([[0, stop - start]]),
|
|
329
|
+
self.mask[start:stop] if self.mask is not None else None,
|
|
312
330
|
),
|
|
313
331
|
is_leaf=lambda x: x is None,
|
|
314
332
|
)
|
|
@@ -441,12 +459,22 @@ class TriangleMesh(eqx.Module):
|
|
|
441
459
|
|
|
442
460
|
@property
|
|
443
461
|
def bounding_box(self) -> Float[Array, "2 3"]:
|
|
444
|
-
"""The bounding box (min. and max. coordinates).
|
|
462
|
+
"""The bounding box (min. and max. coordinates).
|
|
463
|
+
|
|
464
|
+
.. important::
|
|
465
|
+
|
|
466
|
+
Setting :attr:`mask` will have an effect on the bounding box,
|
|
467
|
+
as the bounding box is computed only for the active triangles.
|
|
468
|
+
"""
|
|
445
469
|
# Using self.triangle_vertices is important because, e.g., as a result of using
|
|
446
470
|
# __getitem__, some vertices in 'self.vertices' may no longer be used by this mesh.
|
|
447
471
|
vertices = self.triangle_vertices.reshape(-1, 3)
|
|
472
|
+
where = jnp.repeat(self.mask, 3)[:, None] if self.mask is not None else None
|
|
448
473
|
return jnp.vstack(
|
|
449
|
-
(
|
|
474
|
+
(
|
|
475
|
+
jnp.min(vertices, axis=0, initial=+jnp.inf, where=where),
|
|
476
|
+
jnp.max(vertices, axis=0, initial=-jnp.inf, where=where),
|
|
477
|
+
),
|
|
450
478
|
)
|
|
451
479
|
|
|
452
480
|
@property
|
|
@@ -539,6 +567,43 @@ class TriangleMesh(eqx.Module):
|
|
|
539
567
|
"""
|
|
540
568
|
return _TriangleMeshVerticesUpdateHelper(self)
|
|
541
569
|
|
|
570
|
+
def masked(self) -> Self:
|
|
571
|
+
"""Return a pruned copy of this object that only keeps masked (i.e., active) triangles.
|
|
572
|
+
|
|
573
|
+
.. important::
|
|
574
|
+
This method does not preserve the :attr:`object_bounds` attribute.
|
|
575
|
+
|
|
576
|
+
Returns:
|
|
577
|
+
A new paths instance with flattened batch dimensions and only valid paths.
|
|
578
|
+
"""
|
|
579
|
+
if self.mask is None:
|
|
580
|
+
return jax.tree.map(lambda m: m, self)
|
|
581
|
+
|
|
582
|
+
return eqx.tree_at(
|
|
583
|
+
lambda m: (
|
|
584
|
+
m.vertices,
|
|
585
|
+
m.triangles,
|
|
586
|
+
m.face_colors,
|
|
587
|
+
m.face_materials,
|
|
588
|
+
m.object_bounds,
|
|
589
|
+
m.mask,
|
|
590
|
+
),
|
|
591
|
+
self,
|
|
592
|
+
(
|
|
593
|
+
self.vertices,
|
|
594
|
+
self.triangles[self.mask, :],
|
|
595
|
+
self.face_colors[self.mask, :]
|
|
596
|
+
if self.face_colors is not None
|
|
597
|
+
else None,
|
|
598
|
+
self.face_materials[self.mask]
|
|
599
|
+
if self.face_materials is not None
|
|
600
|
+
else None,
|
|
601
|
+
None,
|
|
602
|
+
None,
|
|
603
|
+
),
|
|
604
|
+
is_leaf=lambda x: x is None,
|
|
605
|
+
)
|
|
606
|
+
|
|
542
607
|
def rotate(self, rotation_matrix: Float[ArrayLike, "3 3"]) -> Self:
|
|
543
608
|
"""
|
|
544
609
|
Return a new mesh by applying a rotation matrix to all triangle coordinates.
|
|
@@ -597,7 +662,7 @@ class TriangleMesh(eqx.Module):
|
|
|
597
662
|
"""
|
|
598
663
|
return cls(vertices=jnp.empty((0, 3)), triangles=jnp.empty((0, 3), dtype=int))
|
|
599
664
|
|
|
600
|
-
def append(self, other: "TriangleMesh") -> Self:
|
|
665
|
+
def append(self, other: "TriangleMesh") -> Self: # noqa: C901, PLR0912
|
|
601
666
|
"""
|
|
602
667
|
Return a new mesh by appending another mesh to this one.
|
|
603
668
|
|
|
@@ -620,6 +685,8 @@ class TriangleMesh(eqx.Module):
|
|
|
620
685
|
* The material names are merged, keeping only unique names;
|
|
621
686
|
* The object bounds are concatenated only if both meshes have them set,
|
|
622
687
|
otherwise, the object bounds are set to :data:`None`;
|
|
688
|
+
* The masks are concatenated if present in both meshes. If one mesh has a mask while the other does not,
|
|
689
|
+
then the mesh with no mask will have its mask set to all triangles being active (i.e., :data:`True`).
|
|
623
690
|
* The :attr:`assume_quads` flag is set to :data:`True` if both meshes have it set to :data:`True`.
|
|
624
691
|
|
|
625
692
|
Two important exceptions are:
|
|
@@ -734,6 +801,25 @@ class TriangleMesh(eqx.Module):
|
|
|
734
801
|
if (self.object_bounds is not None and other.object_bounds is not None)
|
|
735
802
|
else None
|
|
736
803
|
)
|
|
804
|
+
|
|
805
|
+
if self.mask is not None and other.mask is not None:
|
|
806
|
+
mask = jnp.concatenate((self.mask, other.mask), axis=0)
|
|
807
|
+
elif self.mask is not None:
|
|
808
|
+
mask = jnp.concatenate(
|
|
809
|
+
(self.mask, jnp.ones_like(self.mask, shape=(other.num_triangles,))),
|
|
810
|
+
axis=0,
|
|
811
|
+
)
|
|
812
|
+
elif other.mask is not None:
|
|
813
|
+
mask = jnp.concatenate(
|
|
814
|
+
(
|
|
815
|
+
jnp.ones_like(other.mask, shape=(self.num_triangles,)),
|
|
816
|
+
other.mask,
|
|
817
|
+
),
|
|
818
|
+
axis=0,
|
|
819
|
+
)
|
|
820
|
+
else:
|
|
821
|
+
mask = None
|
|
822
|
+
|
|
737
823
|
assume_quads = self.assume_quads and other.assume_quads
|
|
738
824
|
mesh = replace(self, material_names=material_names, assume_quads=assume_quads)
|
|
739
825
|
return eqx.tree_at(
|
|
@@ -743,9 +829,10 @@ class TriangleMesh(eqx.Module):
|
|
|
743
829
|
m.face_colors,
|
|
744
830
|
m.face_materials,
|
|
745
831
|
m.object_bounds,
|
|
832
|
+
m.mask,
|
|
746
833
|
),
|
|
747
834
|
mesh,
|
|
748
|
-
(vertices, triangles, face_colors, face_materials, object_bounds),
|
|
835
|
+
(vertices, triangles, face_colors, face_materials, object_bounds, mask),
|
|
749
836
|
is_leaf=lambda x: x is None,
|
|
750
837
|
)
|
|
751
838
|
|
|
@@ -761,6 +848,7 @@ class TriangleMesh(eqx.Module):
|
|
|
761
848
|
Returns:
|
|
762
849
|
A new mesh with duplicate vertices removed.
|
|
763
850
|
"""
|
|
851
|
+
# TODO: handle mask
|
|
764
852
|
vertices, unique_inverse = jnp.unique(
|
|
765
853
|
self.vertices, axis=0, return_inverse=True
|
|
766
854
|
)
|
|
@@ -817,6 +905,7 @@ class TriangleMesh(eqx.Module):
|
|
|
817
905
|
>>> fig = sorted_mesh.plot(opacity=0.5, backend="plotly")
|
|
818
906
|
>>> fig # doctest: +SKIP
|
|
819
907
|
"""
|
|
908
|
+
# TODO: handle mask
|
|
820
909
|
indices = jnp.lexsort(self.vertices.T[::-1])
|
|
821
910
|
vertices = self.vertices[indices]
|
|
822
911
|
triangles = jnp.argsort(indices)[self.triangles]
|
|
@@ -1383,8 +1472,9 @@ class TriangleMesh(eqx.Module):
|
|
|
1383
1472
|
... )
|
|
1384
1473
|
>>> fig # doctest: +SKIP
|
|
1385
1474
|
"""
|
|
1386
|
-
|
|
1387
|
-
|
|
1475
|
+
mesh = self.masked()
|
|
1476
|
+
if "face_colors" not in kwargs and mesh.face_colors is not None:
|
|
1477
|
+
kwargs["face_colors"] = mesh.face_colors
|
|
1388
1478
|
|
|
1389
1479
|
normals_kwargs = {} if normals_kwargs is None else normals_kwargs
|
|
1390
1480
|
triangle_edges_kwargs = (
|
|
@@ -1396,26 +1486,26 @@ class TriangleMesh(eqx.Module):
|
|
|
1396
1486
|
|
|
1397
1487
|
with reuse(pass_all_kwargs=False, **kwargs) as result:
|
|
1398
1488
|
draw_mesh(
|
|
1399
|
-
vertices=
|
|
1400
|
-
triangles=
|
|
1489
|
+
vertices=mesh.vertices,
|
|
1490
|
+
triangles=mesh.triangles,
|
|
1401
1491
|
**kwargs,
|
|
1402
1492
|
)
|
|
1403
1493
|
|
|
1404
1494
|
if show_normals:
|
|
1405
1495
|
draw_rays(
|
|
1406
|
-
|
|
1407
|
-
|
|
1496
|
+
mesh.triangle_vertices.mean(axis=-2),
|
|
1497
|
+
mesh.normals,
|
|
1408
1498
|
**normals_kwargs,
|
|
1409
1499
|
)
|
|
1410
1500
|
|
|
1411
1501
|
if show_triangle_edges:
|
|
1412
1502
|
draw_paths(
|
|
1413
|
-
|
|
1503
|
+
mesh.triangle_edges,
|
|
1414
1504
|
**triangle_edges_kwargs,
|
|
1415
1505
|
)
|
|
1416
1506
|
if show_diffraction_edges:
|
|
1417
1507
|
draw_paths(
|
|
1418
|
-
|
|
1508
|
+
mesh.diffraction_edges,
|
|
1419
1509
|
**diffraction_edges_kwargs,
|
|
1420
1510
|
)
|
|
1421
1511
|
|
|
@@ -1423,10 +1513,11 @@ class TriangleMesh(eqx.Module):
|
|
|
1423
1513
|
|
|
1424
1514
|
def sample(
|
|
1425
1515
|
self,
|
|
1426
|
-
size: int,
|
|
1516
|
+
size: int | Float[ArrayLike, " "],
|
|
1427
1517
|
replace: bool = False,
|
|
1428
1518
|
preserve: bool = False,
|
|
1429
1519
|
*,
|
|
1520
|
+
by_masking: bool = False,
|
|
1430
1521
|
key: PRNGKeyArray,
|
|
1431
1522
|
) -> Self:
|
|
1432
1523
|
"""
|
|
@@ -1438,7 +1529,13 @@ class TriangleMesh(eqx.Module):
|
|
|
1438
1529
|
|
|
1439
1530
|
Args:
|
|
1440
1531
|
size: The size of the sample, i.e., the number of triangles.
|
|
1532
|
+
|
|
1533
|
+
If a floating point number is provided, it is interpreted as a fill factor,
|
|
1534
|
+
i.e., the fraction of triangles to sample from the mesh. This is only supported
|
|
1535
|
+
if ``by_masking`` is set to :data:`True`.
|
|
1441
1536
|
replace: Whether to sample with or without replacement.
|
|
1537
|
+
|
|
1538
|
+
Cannot be used with ``by_masking`` set to :data:`True`.
|
|
1442
1539
|
preserve: Whether to preserve :attr:`object_bounds`, otherwise
|
|
1443
1540
|
it is discarded.
|
|
1444
1541
|
|
|
@@ -1447,17 +1544,53 @@ class TriangleMesh(eqx.Module):
|
|
|
1447
1544
|
|
|
1448
1545
|
Setting this to :data:`True` has no effect if :attr:`object_bounds`
|
|
1449
1546
|
is :data:`None`.
|
|
1547
|
+
|
|
1548
|
+
Cannot be used with ``by_masking`` set to :data:`True`.
|
|
1549
|
+
by_masking: Whether to sample by masking the triangles.
|
|
1550
|
+
If :data:`True`, then the :attr:`mask` attribute set (ignoring any existing mask).
|
|
1450
1551
|
key: The :func:`jax.random.key` to be used.
|
|
1451
1552
|
|
|
1452
1553
|
Returns:
|
|
1453
1554
|
A new random mesh.
|
|
1555
|
+
|
|
1556
|
+
Raises:
|
|
1557
|
+
TypeError: If ``by_masking`` is :data:`False` and ``size`` is not an integer.
|
|
1558
|
+
ValueError: If ``by_masking`` is :data:`True` and ``replace`` or ``preserve`` are set to :data:`True`.
|
|
1454
1559
|
"""
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1560
|
+
if by_masking:
|
|
1561
|
+
if replace:
|
|
1562
|
+
msg = "Cannot sample with replacement when 'by_masking' is True."
|
|
1563
|
+
raise ValueError(msg)
|
|
1564
|
+
if preserve:
|
|
1565
|
+
msg = "Cannot preserve 'object_bounds' when 'by_masking' is True."
|
|
1566
|
+
raise ValueError(msg)
|
|
1567
|
+
if isinstance(size, int):
|
|
1568
|
+
mask = jnp.zeros(self.num_objects, dtype=bool)
|
|
1569
|
+
mask = mask.at[:size].set(True)
|
|
1570
|
+
mask = jax.random.permutation(key, mask)
|
|
1571
|
+
else:
|
|
1572
|
+
mask = jax.random.uniform(key, (self.num_objects,)) <= size
|
|
1573
|
+
|
|
1574
|
+
if self.assume_quads:
|
|
1575
|
+
mask = jnp.repeat(mask, 2)
|
|
1576
|
+
|
|
1577
|
+
return eqx.tree_at(
|
|
1578
|
+
lambda m: (m.object_bounds, m.mask),
|
|
1579
|
+
self,
|
|
1580
|
+
(None, mask),
|
|
1581
|
+
is_leaf=lambda x: x is None,
|
|
1582
|
+
)
|
|
1583
|
+
|
|
1584
|
+
if isinstance(size, int):
|
|
1585
|
+
indices = jax.random.choice(
|
|
1586
|
+
key,
|
|
1587
|
+
self.num_objects,
|
|
1588
|
+
shape=(size,),
|
|
1589
|
+
replace=replace,
|
|
1590
|
+
)
|
|
1591
|
+
else:
|
|
1592
|
+
msg = "'size' must be an integer when 'by_masking' is False."
|
|
1593
|
+
raise TypeError(msg)
|
|
1461
1594
|
|
|
1462
1595
|
if self.assume_quads:
|
|
1463
1596
|
indices *= 2
|
|
@@ -1484,6 +1617,7 @@ class TriangleMesh(eqx.Module):
|
|
|
1484
1617
|
m.face_colors,
|
|
1485
1618
|
m.face_materials,
|
|
1486
1619
|
m.object_bounds,
|
|
1620
|
+
m.mask,
|
|
1487
1621
|
),
|
|
1488
1622
|
self,
|
|
1489
1623
|
(
|
|
@@ -1494,6 +1628,7 @@ class TriangleMesh(eqx.Module):
|
|
|
1494
1628
|
if self.face_materials is not None
|
|
1495
1629
|
else None,
|
|
1496
1630
|
object_bounds,
|
|
1631
|
+
self.mask[indices] if self.mask is not None else None,
|
|
1497
1632
|
),
|
|
1498
1633
|
is_leaf=lambda x: x is None,
|
|
1499
1634
|
)
|
differt/geometry/_utils.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from functools import partial
|
|
2
|
-
from typing import Literal, overload
|
|
2
|
+
from typing import Literal, no_type_check, overload
|
|
3
3
|
|
|
4
4
|
import jax
|
|
5
5
|
import jax.numpy as jnp
|
|
@@ -468,30 +468,77 @@ def fibonacci_lattice(
|
|
|
468
468
|
return spherical_to_cartesian(pa).astype(dtype)
|
|
469
469
|
|
|
470
470
|
|
|
471
|
+
@overload
|
|
472
|
+
def assemble_paths(
|
|
473
|
+
from_vertices: Float[ArrayLike, "*#batch 3"],
|
|
474
|
+
intermediate_vertices: Float[ArrayLike, "*#batch num_inter_vertices 3"],
|
|
475
|
+
to_vertices: Float[ArrayLike, "*#batch 3"],
|
|
476
|
+
) -> Float[Array, "*batch num_inter_vertices+2 3"]: ...
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
@overload
|
|
480
|
+
def assemble_paths(
|
|
481
|
+
from_vertices: Float[ArrayLike, "*#batch 3"],
|
|
482
|
+
intermediate_vertices: Float[ArrayLike, "*#batch 3"],
|
|
483
|
+
to_vertices: None = None,
|
|
484
|
+
) -> Float[Array, "*batch 2 3"]: ...
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
# NOTE: Jaxtyping does not match the correct shape for `intermediate_vertices` and will match
|
|
488
|
+
# `Float[ArrayLike, "*#batch 3"]` instead of `Float[ArrayLike, "*#batch num_inter_vertices 3"]`.
|
|
489
|
+
# This is why we use `no_type_check` here.
|
|
490
|
+
# TODO: fix this.
|
|
491
|
+
@no_type_check
|
|
471
492
|
def assemble_paths(
|
|
472
|
-
|
|
473
|
-
|
|
493
|
+
from_vertices: Float[ArrayLike, "*#batch 3"],
|
|
494
|
+
intermediate_vertices: Float[ArrayLike, "*#batch num_inter_vertices 3"]
|
|
495
|
+
| Float[ArrayLike, "*#batch 3"],
|
|
496
|
+
to_vertices: Float[ArrayLike, "*#batch 3"] | None = None,
|
|
497
|
+
) -> Float[Array, "*batch num_inter_vertices+2 3"] | Float[Array, "*batch 2 3"]:
|
|
474
498
|
"""
|
|
475
|
-
Assemble paths by concatenating
|
|
499
|
+
Assemble paths vertices by concatenating start-, intermediate, and end-vertices.
|
|
476
500
|
|
|
477
501
|
Arrays broadcasting is automatically performed, and the total
|
|
478
|
-
|
|
502
|
+
number of vertices per path is simply ``num_inter_vertices+2``.
|
|
479
503
|
|
|
480
504
|
Args:
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
505
|
+
from_vertices: The starting vertices of the paths.
|
|
506
|
+
intermediate_vertices: The intermediate vertices of the paths.
|
|
507
|
+
If ``to_vertices`` is not provided, then this argument is interpreted
|
|
508
|
+
as the end vertices of the paths.
|
|
509
|
+
to_vertices: The ending vertices of the paths.
|
|
485
510
|
|
|
486
511
|
Returns:
|
|
487
|
-
The assembled
|
|
512
|
+
The assembled path vertices.
|
|
488
513
|
"""
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
514
|
+
from_vertices = jnp.asarray(from_vertices)
|
|
515
|
+
intermediate_vertices = jnp.asarray(intermediate_vertices)
|
|
516
|
+
if to_vertices is None:
|
|
517
|
+
batch = jnp.broadcast_shapes(
|
|
518
|
+
from_vertices.shape[:-1], intermediate_vertices.shape[:-1]
|
|
519
|
+
)
|
|
520
|
+
return jnp.concatenate(
|
|
521
|
+
(
|
|
522
|
+
jnp.broadcast_to(from_vertices[..., None, :], (*batch, 1, 3)),
|
|
523
|
+
jnp.broadcast_to(intermediate_vertices[..., None, :], (*batch, 1, 3)),
|
|
524
|
+
),
|
|
525
|
+
axis=-2,
|
|
526
|
+
)
|
|
527
|
+
to_vertices = jnp.asarray(to_vertices)
|
|
528
|
+
batch = jnp.broadcast_shapes(
|
|
529
|
+
from_vertices.shape[:-1],
|
|
530
|
+
intermediate_vertices.shape[:-2],
|
|
531
|
+
to_vertices.shape[:-1],
|
|
532
|
+
)
|
|
492
533
|
|
|
493
534
|
return jnp.concatenate(
|
|
494
|
-
|
|
535
|
+
(
|
|
536
|
+
jnp.broadcast_to(from_vertices[..., None, :], (*batch, 1, 3)),
|
|
537
|
+
jnp.broadcast_to(
|
|
538
|
+
intermediate_vertices, (*batch, *intermediate_vertices.shape[-2:])
|
|
539
|
+
),
|
|
540
|
+
jnp.broadcast_to(to_vertices[..., None, :], (*batch, 1, 3)),
|
|
541
|
+
),
|
|
495
542
|
axis=-2,
|
|
496
543
|
)
|
|
497
544
|
|
differt/rt/_fermat.py
CHANGED
|
@@ -110,9 +110,9 @@ def fermat_path_on_linear_objects(
|
|
|
110
110
|
paths = fermat_path_on_linear_objects(...)
|
|
111
111
|
|
|
112
112
|
full_paths = assemble_paths(
|
|
113
|
-
from_vertices
|
|
113
|
+
from_vertices,
|
|
114
114
|
paths,
|
|
115
|
-
to_vertices
|
|
115
|
+
to_vertices,
|
|
116
116
|
)
|
|
117
117
|
|
|
118
118
|
Examples:
|
|
@@ -156,9 +156,9 @@ def fermat_path_on_linear_objects(
|
|
|
156
156
|
... )
|
|
157
157
|
...
|
|
158
158
|
... full_path = assemble_paths(
|
|
159
|
-
... from_vertex
|
|
159
|
+
... from_vertex,
|
|
160
160
|
... path,
|
|
161
|
-
... to_vertex
|
|
161
|
+
... to_vertex,
|
|
162
162
|
... )
|
|
163
163
|
... draw_paths(full_path, marker={"color": "green"}, name="Final path")
|
|
164
164
|
... markers = jnp.vstack((from_vertex, to_vertex))
|
|
@@ -309,9 +309,9 @@ def fermat_path_on_planar_mirrors(
|
|
|
309
309
|
paths = fermat_path_on_planar_mirrors(...)
|
|
310
310
|
|
|
311
311
|
full_paths = assemble_paths(
|
|
312
|
-
from_vertices
|
|
312
|
+
from_vertices,
|
|
313
313
|
paths,
|
|
314
|
-
to_vertices
|
|
314
|
+
to_vertices,
|
|
315
315
|
)
|
|
316
316
|
|
|
317
317
|
Examples:
|
|
@@ -350,9 +350,9 @@ def fermat_path_on_planar_mirrors(
|
|
|
350
350
|
... ).plot(color="red")
|
|
351
351
|
...
|
|
352
352
|
... full_path = assemble_paths(
|
|
353
|
-
... from_vertex
|
|
353
|
+
... from_vertex,
|
|
354
354
|
... path,
|
|
355
|
-
... to_vertex
|
|
355
|
+
... to_vertex,
|
|
356
356
|
... )
|
|
357
357
|
... draw_paths(full_path, marker={"color": "green"}, name="Final path")
|
|
358
358
|
... markers = jnp.vstack((from_vertex, to_vertex))
|
differt/rt/_image_method.py
CHANGED
|
@@ -195,9 +195,9 @@ def image_method(
|
|
|
195
195
|
)
|
|
196
196
|
|
|
197
197
|
full_paths = assemble_paths(
|
|
198
|
-
from_vertices
|
|
198
|
+
from_vertices,
|
|
199
199
|
paths,
|
|
200
|
-
to_vertices
|
|
200
|
+
to_vertices,
|
|
201
201
|
)
|
|
202
202
|
|
|
203
203
|
Examples:
|
|
@@ -252,9 +252,9 @@ def image_method(
|
|
|
252
252
|
... ).plot(color="red")
|
|
253
253
|
...
|
|
254
254
|
... full_path = assemble_paths(
|
|
255
|
-
... from_vertex
|
|
255
|
+
... from_vertex,
|
|
256
256
|
... path,
|
|
257
|
-
... to_vertex
|
|
257
|
+
... to_vertex,
|
|
258
258
|
... )
|
|
259
259
|
... draw_paths(
|
|
260
260
|
... full_path,
|
differt/rt/_utils.py
CHANGED
|
@@ -351,6 +351,7 @@ def rays_intersect_any_triangle(
|
|
|
351
351
|
ray_origins: Float[ArrayLike, "*#batch 3"],
|
|
352
352
|
ray_directions: Float[ArrayLike, "*#batch 3"],
|
|
353
353
|
triangle_vertices: Float[ArrayLike, "*#batch num_triangles 3 3"],
|
|
354
|
+
active_triangles: Bool[ArrayLike, "*#batch num_triangles"] | None = None,
|
|
354
355
|
*,
|
|
355
356
|
hit_tol: Float[ArrayLike, " "] | None = None,
|
|
356
357
|
smoothing_factor: None = None,
|
|
@@ -363,6 +364,7 @@ def rays_intersect_any_triangle(
|
|
|
363
364
|
ray_origins: Float[ArrayLike, "*#batch 3"],
|
|
364
365
|
ray_directions: Float[ArrayLike, "*#batch 3"],
|
|
365
366
|
triangle_vertices: Float[ArrayLike, "*#batch num_triangles 3 3"],
|
|
367
|
+
active_triangles: Bool[ArrayLike, "*#batch num_triangles"] | None = None,
|
|
366
368
|
*,
|
|
367
369
|
hit_tol: Float[ArrayLike, " "] | None = None,
|
|
368
370
|
smoothing_factor: Float[ArrayLike, " "],
|
|
@@ -375,6 +377,7 @@ def rays_intersect_any_triangle(
|
|
|
375
377
|
ray_origins: Float[ArrayLike, "*#batch 3"],
|
|
376
378
|
ray_directions: Float[ArrayLike, "*#batch 3"],
|
|
377
379
|
triangle_vertices: Float[ArrayLike, "*#batch num_triangles 3 3"],
|
|
380
|
+
active_triangles: Bool[ArrayLike, "*#batch num_triangles"] | None = None,
|
|
378
381
|
*,
|
|
379
382
|
hit_tol: Float[ArrayLike, " "] | None = None,
|
|
380
383
|
smoothing_factor: Float[ArrayLike, " "] | None = None,
|
|
@@ -395,6 +398,10 @@ def rays_intersect_any_triangle(
|
|
|
395
398
|
ray_directions: An array of ray direction. The ray ends
|
|
396
399
|
should be equal to ``ray_origins + ray_directions``.
|
|
397
400
|
triangle_vertices: An array of triangle vertices.
|
|
401
|
+
active_triangles: An optional array of boolean values indicating
|
|
402
|
+
which triangles are active, i.e., should be considered for intersection.
|
|
403
|
+
|
|
404
|
+
If not specified, all triangles are considered active.
|
|
398
405
|
hit_tol: The tolerance applied to check if a ray hits another object or not,
|
|
399
406
|
before it reaches the expected position, i.e., the 'interaction' object.
|
|
400
407
|
|
|
@@ -427,6 +434,11 @@ def rays_intersect_any_triangle(
|
|
|
427
434
|
|
|
428
435
|
# Put 'num_triangles' axis as leading axis
|
|
429
436
|
triangle_vertices = jnp.moveaxis(triangle_vertices, -3, 0)
|
|
437
|
+
active_triangles = (
|
|
438
|
+
jnp.moveaxis(active_triangles, -1, 0)
|
|
439
|
+
if active_triangles is not None
|
|
440
|
+
else jnp.ones(triangle_vertices.shape[:-2], dtype=bool)
|
|
441
|
+
)
|
|
430
442
|
|
|
431
443
|
batch = jnp.broadcast_shapes(
|
|
432
444
|
ray_origins.shape[:-1],
|
|
@@ -438,8 +450,11 @@ def rays_intersect_any_triangle(
|
|
|
438
450
|
|
|
439
451
|
def scan_fun(
|
|
440
452
|
intersect: Float[Array, " *batch"],
|
|
441
|
-
|
|
453
|
+
triangle_vertices_and_active: tuple[
|
|
454
|
+
Float[Array, "*#batch 3 3"], Bool[Array, "*#batch"] | None
|
|
455
|
+
],
|
|
442
456
|
) -> tuple[Float[Array, " *batch"], None]:
|
|
457
|
+
triangle_vertices, active_triangles = triangle_vertices_and_active
|
|
443
458
|
t, hit = rays_intersect_triangles(
|
|
444
459
|
ray_origins,
|
|
445
460
|
ray_directions,
|
|
@@ -447,6 +462,7 @@ def rays_intersect_any_triangle(
|
|
|
447
462
|
smoothing_factor=smoothing_factor,
|
|
448
463
|
**kwargs,
|
|
449
464
|
)
|
|
465
|
+
hit *= active_triangles
|
|
450
466
|
intersect = (
|
|
451
467
|
intersect
|
|
452
468
|
+ jnp.minimum(
|
|
@@ -461,15 +477,18 @@ def rays_intersect_any_triangle(
|
|
|
461
477
|
|
|
462
478
|
def scan_fun(
|
|
463
479
|
intersect: Bool[Array, " *batch"],
|
|
464
|
-
|
|
480
|
+
triangle_vertices_and_active: tuple[
|
|
481
|
+
Float[Array, "*#batch 3 3"], Bool[Array, "*#batch"] | None
|
|
482
|
+
],
|
|
465
483
|
) -> tuple[Bool[Array, " *batch"], None]:
|
|
484
|
+
triangle_vertices, active_triangles = triangle_vertices_and_active
|
|
466
485
|
t, hit = rays_intersect_triangles(
|
|
467
486
|
ray_origins,
|
|
468
487
|
ray_directions,
|
|
469
488
|
triangle_vertices,
|
|
470
489
|
**kwargs,
|
|
471
490
|
)
|
|
472
|
-
intersect |= (t < hit_threshold) & hit
|
|
491
|
+
intersect |= (t < hit_threshold) & hit & active_triangles
|
|
473
492
|
return intersect, None
|
|
474
493
|
|
|
475
494
|
init = (
|
|
@@ -481,7 +500,7 @@ def rays_intersect_any_triangle(
|
|
|
481
500
|
return jax.lax.scan(
|
|
482
501
|
scan_fun,
|
|
483
502
|
init=init,
|
|
484
|
-
xs=triangle_vertices,
|
|
503
|
+
xs=(triangle_vertices, active_triangles),
|
|
485
504
|
)[0]
|
|
486
505
|
|
|
487
506
|
|
|
@@ -489,6 +508,7 @@ def rays_intersect_any_triangle(
|
|
|
489
508
|
def triangles_visible_from_vertices(
|
|
490
509
|
vertices: Float[ArrayLike, "*#batch 3"],
|
|
491
510
|
triangle_vertices: Float[ArrayLike, "*#batch num_triangles 3 3"],
|
|
511
|
+
active_triangles: Bool[ArrayLike, "*#batch num_triangles"] | None = None,
|
|
492
512
|
num_rays: int = int(1e6),
|
|
493
513
|
**kwargs: Any,
|
|
494
514
|
) -> Bool[Array, "*batch num_triangles"]:
|
|
@@ -509,6 +529,10 @@ def triangles_visible_from_vertices(
|
|
|
509
529
|
|
|
510
530
|
Usually, this would be an array of transmitter positions.
|
|
511
531
|
triangle_vertices: An array of triangle vertices.
|
|
532
|
+
active_triangles: An optional array of boolean values indicating
|
|
533
|
+
which triangles are active, i.e., should be considered for intersection.
|
|
534
|
+
|
|
535
|
+
If not specified, all triangles are considered active.
|
|
512
536
|
num_rays: The number of rays to launch.
|
|
513
537
|
|
|
514
538
|
The larger, the more accurate.
|
|
@@ -561,6 +585,8 @@ def triangles_visible_from_vertices(
|
|
|
561
585
|
|
|
562
586
|
# [2 3]
|
|
563
587
|
# note: currently we don't handle batches and generate one frustum for everything
|
|
588
|
+
# TODO: compute frustum for each batch
|
|
589
|
+
# TODO: handle 'active_triangles'
|
|
564
590
|
frustum = viewing_frustum(
|
|
565
591
|
ray_origins,
|
|
566
592
|
triangle_vertices.reshape(*triangle_vertices.shape[:-3], -1, 3),
|
|
@@ -584,7 +610,14 @@ def triangles_visible_from_vertices(
|
|
|
584
610
|
)
|
|
585
611
|
# A triangle is visible if it is the first triangle to be intersected by a ray.
|
|
586
612
|
visible = visible | (
|
|
587
|
-
t
|
|
613
|
+
t
|
|
614
|
+
== jnp.min(
|
|
615
|
+
t,
|
|
616
|
+
axis=-1,
|
|
617
|
+
keepdims=True,
|
|
618
|
+
initial=jnp.inf,
|
|
619
|
+
where=(hit & active_triangles if active_triangles is not None else hit),
|
|
620
|
+
)
|
|
588
621
|
)
|
|
589
622
|
|
|
590
623
|
return visible, None
|
|
@@ -601,6 +634,7 @@ def first_triangles_hit_by_rays(
|
|
|
601
634
|
ray_origins: Float[ArrayLike, "*#batch 3"],
|
|
602
635
|
ray_directions: Float[ArrayLike, "*#batch 3"],
|
|
603
636
|
triangle_vertices: Float[ArrayLike, "*#batch num_triangles 3 3"],
|
|
637
|
+
active_triangles: Bool[ArrayLike, "*#batch num_triangles"] | None = None,
|
|
604
638
|
**kwargs: Any,
|
|
605
639
|
) -> tuple[Int[Array, " *batch"], Float[Array, " *batch"]]:
|
|
606
640
|
"""
|
|
@@ -615,6 +649,10 @@ def first_triangles_hit_by_rays(
|
|
|
615
649
|
ray_directions: An array of ray direction. The ray ends
|
|
616
650
|
should be equal to ``ray_origins + ray_directions``.
|
|
617
651
|
triangle_vertices: An array of triangle vertices.
|
|
652
|
+
active_triangles: An optional array of boolean values indicating
|
|
653
|
+
which triangles are active, i.e., should be considered for intersection.
|
|
654
|
+
|
|
655
|
+
If not specified, all triangles are considered active.
|
|
618
656
|
kwargs: Keyword arguments passed to
|
|
619
657
|
:func:`rays_intersect_triangles`.
|
|
620
658
|
|
|
@@ -630,6 +668,11 @@ def first_triangles_hit_by_rays(
|
|
|
630
668
|
|
|
631
669
|
# Put 'num_triangles' axis as leading axis
|
|
632
670
|
triangle_vertices = jnp.moveaxis(triangle_vertices, -3, 0)
|
|
671
|
+
active_triangles = (
|
|
672
|
+
jnp.moveaxis(active_triangles, -1, 0)
|
|
673
|
+
if active_triangles is not None
|
|
674
|
+
else jnp.ones(triangle_vertices.shape[:-2], dtype=bool)
|
|
675
|
+
)
|
|
633
676
|
|
|
634
677
|
batch = jnp.broadcast_shapes(
|
|
635
678
|
ray_origins.shape[:-1],
|
|
@@ -639,18 +682,21 @@ def first_triangles_hit_by_rays(
|
|
|
639
682
|
|
|
640
683
|
def scan_fun(
|
|
641
684
|
carry: tuple[Int[Array, " *batch"], Float[Array, "*batch"], Int[Array, " "]],
|
|
642
|
-
|
|
685
|
+
triangle_vertices_and_active: tuple[
|
|
686
|
+
Float[Array, "*#batch 3 3"], Bool[Array, "*#batch"] | None
|
|
687
|
+
],
|
|
643
688
|
) -> tuple[
|
|
644
689
|
tuple[Int[Array, " *batch"], Float[Array, "*batch"], Int[Array, " "]], None
|
|
645
690
|
]:
|
|
646
691
|
indices, t_hit, index = carry
|
|
692
|
+
triangle_vertices, active_triangles = triangle_vertices_and_active
|
|
647
693
|
t, hit = rays_intersect_triangles(
|
|
648
694
|
ray_origins,
|
|
649
695
|
ray_directions,
|
|
650
696
|
triangle_vertices,
|
|
651
697
|
**kwargs,
|
|
652
698
|
)
|
|
653
|
-
t = jnp.where(hit, t, jnp.full_like(t, jnp.inf))
|
|
699
|
+
t = jnp.where((hit & active_triangles), t, jnp.full_like(t, jnp.inf))
|
|
654
700
|
indices = jnp.where(t < t_hit, index, indices)
|
|
655
701
|
t_hit = jnp.minimum(t, t_hit)
|
|
656
702
|
return (indices, t_hit, index + 1), None
|
|
@@ -658,5 +704,5 @@ def first_triangles_hit_by_rays(
|
|
|
658
704
|
return jax.lax.scan(
|
|
659
705
|
scan_fun,
|
|
660
706
|
init=(-jnp.ones(batch, dtype=int), jnp.full(batch, jnp.inf), jnp.array(0)),
|
|
661
|
-
xs=triangle_vertices,
|
|
707
|
+
xs=(triangle_vertices, active_triangles),
|
|
662
708
|
)[0][:2]
|
differt/scene/_triangle_scene.py
CHANGED
|
@@ -85,6 +85,13 @@ def _compute_paths( # noqa: C901, PLR0915
|
|
|
85
85
|
num_path_candidates, order, 3, 3
|
|
86
86
|
) # reshape required if mesh is empty
|
|
87
87
|
|
|
88
|
+
if mesh.mask is not None:
|
|
89
|
+
# For a ray to be active, it must hit triangles that are not masked out (i.e, inactive).
|
|
90
|
+
# [num_path_candidates] # noqa: ERA001
|
|
91
|
+
active_rays = jnp.take(mesh.mask, path_candidates, axis=0).all(axis=-1)
|
|
92
|
+
else:
|
|
93
|
+
active_rays = None
|
|
94
|
+
|
|
88
95
|
if mesh.assume_quads:
|
|
89
96
|
# [num_path_candidates order 2 3]
|
|
90
97
|
quads = jnp.take(
|
|
@@ -110,7 +117,7 @@ def _compute_paths( # noqa: C901, PLR0915
|
|
|
110
117
|
# [num_path_candidates order 3]
|
|
111
118
|
mirror_normals = jnp.take(mesh.normals, path_candidates, axis=0)
|
|
112
119
|
|
|
113
|
-
def fun(
|
|
120
|
+
def fun( # noqa: PLR0912
|
|
114
121
|
tx_vertices: Float[Array, "num_tx_vertices 3"],
|
|
115
122
|
rx_vertices: Float[Array, "num_rx_vertices 3"],
|
|
116
123
|
) -> tuple[
|
|
@@ -133,9 +140,9 @@ def _compute_paths( # noqa: C901, PLR0915
|
|
|
133
140
|
|
|
134
141
|
# [num_tx_vertices num_rx_vertices num_path_candidates order+2 3]
|
|
135
142
|
full_paths = assemble_paths(
|
|
136
|
-
tx_vertices[:, None, None,
|
|
143
|
+
tx_vertices[:, None, None, :],
|
|
137
144
|
paths,
|
|
138
|
-
rx_vertices[None, :, None,
|
|
145
|
+
rx_vertices[None, :, None, :],
|
|
139
146
|
)
|
|
140
147
|
|
|
141
148
|
# 3 - Identify invalid paths
|
|
@@ -213,6 +220,7 @@ def _compute_paths( # noqa: C901, PLR0915
|
|
|
213
220
|
ray_origins,
|
|
214
221
|
ray_directions,
|
|
215
222
|
mesh.triangle_vertices,
|
|
223
|
+
active_triangles=mesh.mask,
|
|
216
224
|
epsilon=epsilon,
|
|
217
225
|
hit_tol=hit_tol,
|
|
218
226
|
smoothing_factor=smoothing_factor,
|
|
@@ -222,6 +230,7 @@ def _compute_paths( # noqa: C901, PLR0915
|
|
|
222
230
|
ray_origins,
|
|
223
231
|
ray_directions,
|
|
224
232
|
mesh.triangle_vertices,
|
|
233
|
+
active_triangles=mesh.mask,
|
|
225
234
|
epsilon=epsilon,
|
|
226
235
|
hit_tol=hit_tol,
|
|
227
236
|
).any(axis=-1) # Reduce on 'order'
|
|
@@ -256,8 +265,12 @@ def _compute_paths( # noqa: C901, PLR0915
|
|
|
256
265
|
),
|
|
257
266
|
axis=-1,
|
|
258
267
|
).min(axis=-1, initial=1.0)
|
|
268
|
+
if active_rays is not None:
|
|
269
|
+
confidence *= active_rays
|
|
259
270
|
return full_paths, confidence
|
|
260
271
|
mask = inside_triangles & valid_reflections & ~blocked & ~too_small & is_finite
|
|
272
|
+
if active_rays is not None:
|
|
273
|
+
mask &= active_rays
|
|
261
274
|
return full_paths, mask
|
|
262
275
|
|
|
263
276
|
if parallel:
|
|
@@ -352,6 +365,7 @@ def _compute_paths_sbr(
|
|
|
352
365
|
)
|
|
353
366
|
|
|
354
367
|
# [num_tx_vertices 2 3]
|
|
368
|
+
# TODO: handle mesh.mask
|
|
355
369
|
frustums = jax.vmap(viewing_frustum, in_axes=(0, None))(tx_vertices, world_vertices)
|
|
356
370
|
|
|
357
371
|
# [num_tx_vertices num_rays 2 3]
|
|
@@ -397,6 +411,7 @@ def _compute_paths_sbr(
|
|
|
397
411
|
ray_origins,
|
|
398
412
|
ray_directions,
|
|
399
413
|
triangle_vertices,
|
|
414
|
+
active_triangles=mesh.mask,
|
|
400
415
|
epsilon=epsilon,
|
|
401
416
|
)
|
|
402
417
|
|
|
@@ -499,9 +514,9 @@ def _compute_paths_sbr(
|
|
|
499
514
|
# 4 - Generate output paths and reshape
|
|
500
515
|
|
|
501
516
|
vertices = assemble_paths(
|
|
502
|
-
tx_vertices[:, None, None,
|
|
517
|
+
tx_vertices[:, None, None, :],
|
|
503
518
|
vertices[:, None, ...], # We already excluded last vertex
|
|
504
|
-
rx_vertices[None, :, None,
|
|
519
|
+
rx_vertices[None, :, None, :], # And replace it with receiver vertices
|
|
505
520
|
)
|
|
506
521
|
|
|
507
522
|
object_dtype = path_candidates.dtype
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: DiffeRT
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Differentiable Ray Tracing Toolbox for Radio Propagation Simulations
|
|
5
5
|
Project-URL: Changelog, https://github.com/jeertmans/DiffeRT/releases
|
|
6
6
|
Project-URL: Documentation, https://eertmans.be/DiffeRT
|
|
@@ -20,7 +20,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
20
20
|
Classifier: Topic :: Scientific/Engineering
|
|
21
21
|
Requires-Python: >=3.10
|
|
22
22
|
Requires-Dist: chex>=0.1.86
|
|
23
|
-
Requires-Dist: differt-core==0.
|
|
23
|
+
Requires-Dist: differt-core==0.2.0
|
|
24
24
|
Requires-Dist: equinox>=0.12.2
|
|
25
25
|
Requires-Dist: filelock>=3.15.4
|
|
26
26
|
Requires-Dist: jax>=0.4.32
|
|
@@ -139,7 +139,7 @@ If you use this software, please cite it as:
|
|
|
139
139
|
author = {Eertmans, Jérome},
|
|
140
140
|
url = {https://github.com/jeertmans/DiffeRT},
|
|
141
141
|
license = {MIT},
|
|
142
|
-
version = {v0.
|
|
142
|
+
version = {v0.2.0}
|
|
143
143
|
}
|
|
144
144
|
```
|
|
145
145
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
differt/__init__.py,sha256
|
|
2
|
-
differt/_version.py,sha256=
|
|
1
|
+
differt/__init__.py,sha256=-iUJotwHLuv1X6IU32sCC7p88LRWbOkvatffBk1VNZU,175
|
|
2
|
+
differt/_version.py,sha256=uTz7aW-bhAtOT1i_I_nRAWjijPXAkbcmUKBOnMbDiT4,153
|
|
3
3
|
differt/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
differt/utils.py,sha256=KiNGYTX44M65fknSX_O95fOshnr7C8-S-xZW_B6Qvao,10079
|
|
5
5
|
differt/em/__init__.py,sha256=eoAfwZRa9-RsWrDxM2UGRrncJvkFkgtrIPSWOsdy7jM,1265
|
|
@@ -12,8 +12,8 @@ differt/em/_utd.py,sha256=PVt80G3BCkGRShtRTH2W9DYFDDtxmbPdbFoQF7J-hFQ,10608
|
|
|
12
12
|
differt/em/_utils.py,sha256=VRZpTiOJDGt6PyHfPDAe-2a458KIR1YtLNQCn-5n1rI,12732
|
|
13
13
|
differt/geometry/__init__.py,sha256=Blx_3_VgkKgRmSQ5zQvi6rjrnY6XmA3K4CeUla-g330,1177
|
|
14
14
|
differt/geometry/_paths.py,sha256=ueFEHL365UL0geCQ7tvPfOPQuFo1knxxXT0thifZ5_A,22598
|
|
15
|
-
differt/geometry/_triangle_mesh.py,sha256=
|
|
16
|
-
differt/geometry/_utils.py,sha256=
|
|
15
|
+
differt/geometry/_triangle_mesh.py,sha256=PL-XGnS6winIjbVZb4PpOQ_x4miN2aolXNobXnQYLUA,58345
|
|
16
|
+
differt/geometry/_utils.py,sha256=_IycOPL1Ft0EN065OdH4G12OZb-6Eqkcusp--c_YvUU,27387
|
|
17
17
|
differt/plotting/__init__.py,sha256=pcvMZw-MlJhK9l1ypx3MHrNSP8oaKN8rx_RQg54S7zE,3276
|
|
18
18
|
differt/plotting/_core.py,sha256=pjeph3n9zkCWVeZteavMDlmI-nCrjV3S1441zFsso80,33646
|
|
19
19
|
differt/plotting/_utils.py,sha256=vn45Crjmy8-D-39ehPCABuo_tfxXrkm2BDLrKDgXIW8,21498
|
|
@@ -21,13 +21,13 @@ differt/plugins/__init__.py,sha256=OfF7mDh2N9O8mvBQti0x9RDE-MRObFFLFyeEZMI5wM8,1
|
|
|
21
21
|
differt/plugins/_deepmimo_types.py,sha256=_eTNYGFjI8LutfaqdsXLOSjW4Le09LsvUiHZJ3_-61U,249
|
|
22
22
|
differt/plugins/deepmimo.py,sha256=PsKLv_LO7G6oC68uD1WkiYacxVZjpenSVn_otXbu_Qs,21430
|
|
23
23
|
differt/rt/__init__.py,sha256=CVJ1MLDl4wt7q0TNODJwgMMG_pQ_Ac_r7sY8q_kE4pk,1136
|
|
24
|
-
differt/rt/_fermat.py,sha256=
|
|
25
|
-
differt/rt/_image_method.py,sha256=
|
|
26
|
-
differt/rt/_utils.py,sha256=
|
|
24
|
+
differt/rt/_fermat.py,sha256=U63rb5_3PMKVmt6umCY5M4TQeLO2ZdKY7cr9IDHZVtU,14442
|
|
25
|
+
differt/rt/_image_method.py,sha256=mihtcj3r74-wrz10CuZT4d_-cQi5N-YyJpDZ54zU6D4,17117
|
|
26
|
+
differt/rt/_utils.py,sha256=_pqv-lBznVDlaQlTsCzUvyRIeEwqyB9X8bWv86xcdjc,25205
|
|
27
27
|
differt/scene/__init__.py,sha256=3Rsd46SitJpdmwqe3hWrSctrLM6bmt-BzSUf0zL6Bt4,265
|
|
28
28
|
differt/scene/_sionna.py,sha256=gmR4mtSEUG9p_UFV73SP1s8iz8l4AF-uCQ9wharjhHU,8720
|
|
29
|
-
differt/scene/_triangle_scene.py,sha256=
|
|
30
|
-
differt-0.
|
|
31
|
-
differt-0.
|
|
32
|
-
differt-0.
|
|
33
|
-
differt-0.
|
|
29
|
+
differt/scene/_triangle_scene.py,sha256=3WgR1SJJvJSTZYrCmLqz9Fp8rrqNOaZR09Ys0fO8Efg,44300
|
|
30
|
+
differt-0.2.0.dist-info/METADATA,sha256=li9-nlX1BFXmAzChFCk30bAb0-lc41uvDINYmsBT9nQ,5957
|
|
31
|
+
differt-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
32
|
+
differt-0.2.0.dist-info/entry_points.txt,sha256=hWDguBZsyxba8dw_h5wfvSr-57UxXJLYNqVqikSGAE8,70
|
|
33
|
+
differt-0.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|