halfedge 0.6.0__py3-none-any.whl → 0.7.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.
- halfedge/half_edge_elements.py +21 -1
- {halfedge-0.6.0.dist-info → halfedge-0.7.0.dist-info}/METADATA +1 -1
- {halfedge-0.6.0.dist-info → halfedge-0.7.0.dist-info}/RECORD +5 -5
- {halfedge-0.6.0.dist-info → halfedge-0.7.0.dist-info}/WHEEL +0 -0
- {halfedge-0.6.0.dist-info → halfedge-0.7.0.dist-info}/top_level.txt +0 -0
halfedge/half_edge_elements.py
CHANGED
|
@@ -84,11 +84,31 @@ class MeshElementBase:
|
|
|
84
84
|
"""
|
|
85
85
|
self.sn = next(self._sn_generator)
|
|
86
86
|
self.attrib: dict[str, Attrib[Any]] = {}
|
|
87
|
-
self.
|
|
87
|
+
self._mesh = mesh
|
|
88
88
|
|
|
89
89
|
for attribute in attributes:
|
|
90
90
|
self.set_attrib(attribute)
|
|
91
91
|
|
|
92
|
+
@property
|
|
93
|
+
def mesh(self) -> BlindHalfEdges:
|
|
94
|
+
"""Return the mesh instance.
|
|
95
|
+
|
|
96
|
+
:return: the mesh instance
|
|
97
|
+
:raise AttributeError: if mesh not set for self
|
|
98
|
+
"""
|
|
99
|
+
if self._mesh is not None:
|
|
100
|
+
return self._mesh
|
|
101
|
+
msg = "mesh not set for self"
|
|
102
|
+
raise AttributeError(msg)
|
|
103
|
+
|
|
104
|
+
@mesh.setter
|
|
105
|
+
def mesh(self, mesh: BlindHalfEdges) -> None:
|
|
106
|
+
"""Set the mesh instance.
|
|
107
|
+
|
|
108
|
+
:param mesh: the mesh instance
|
|
109
|
+
"""
|
|
110
|
+
self._mesh = mesh
|
|
111
|
+
|
|
92
112
|
def set_attrib(self, attrib: Attrib[Any]) -> None:
|
|
93
113
|
"""Set an attribute.
|
|
94
114
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
halfedge/__init__.py,sha256=O5tfw3JIBJH83JlpwdYoTNHFsmcg959rAJd6RU51E4s,661
|
|
2
2
|
halfedge/half_edge_constructors.py,sha256=ToGcOYW2b848ynlY59xRNd7ibZuu3OqQpauPCl-N1YE,8654
|
|
3
|
-
halfedge/half_edge_elements.py,sha256=
|
|
3
|
+
halfedge/half_edge_elements.py,sha256=oX4ti6f6L1gcYsoP-KGNwdF4-cRpTJeBoMGMTJuIN14,18554
|
|
4
4
|
halfedge/half_edge_object.py,sha256=Cc1t_hy2tF52O9iD5tvZN6_w4H7Wt9hwDGFLdBqUxr4,28451
|
|
5
5
|
halfedge/half_edge_querries.py,sha256=q5xVOFdpw7t6fhs-Z8yF5j3RlG4DOrOgoLbBsAfkm4A,5179
|
|
6
6
|
halfedge/py.typed,sha256=MsSFjiLMLJZ7QhUPpVBWKiyDnCzryquRyr329NoCACI,2
|
|
7
7
|
halfedge/type_attrib.py,sha256=1W06nlyTSc0Q6f6PnQec_VNNRLVSgdNStoBlJmMgJNQ,20420
|
|
8
8
|
halfedge/validations.py,sha256=FhUv_J7XcaAduyudYGmi7ZL1tEqwJoCxKZwJU2zQolg,4512
|
|
9
|
-
halfedge-0.
|
|
10
|
-
halfedge-0.
|
|
11
|
-
halfedge-0.
|
|
12
|
-
halfedge-0.
|
|
9
|
+
halfedge-0.7.0.dist-info/METADATA,sha256=UYimfFRmGpY38Ipy9QgOqWwrW28El8aKnTybjhjKQVc,7411
|
|
10
|
+
halfedge-0.7.0.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
|
11
|
+
halfedge-0.7.0.dist-info/top_level.txt,sha256=iqphKHiIR4DfFMs14-gkFOWTXVkRWfGmDZmCYHhuoFM,9
|
|
12
|
+
halfedge-0.7.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|