halfedge 0.12.1__tar.gz → 0.13.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.
- {halfedge-0.12.1 → halfedge-0.13.0}/PKG-INFO +1 -1
- {halfedge-0.12.1 → halfedge-0.13.0}/pyproject.toml +2 -2
- {halfedge-0.12.1 → halfedge-0.13.0}/src/halfedge/half_edge_constructors.py +1 -1
- {halfedge-0.12.1 → halfedge-0.13.0}/src/halfedge/half_edge_querries.py +6 -6
- {halfedge-0.12.1 → halfedge-0.13.0}/README.md +0 -0
- {halfedge-0.12.1 → halfedge-0.13.0}/src/halfedge/__init__.py +0 -0
- {halfedge-0.12.1 → halfedge-0.13.0}/src/halfedge/half_edge_elements.py +0 -0
- {halfedge-0.12.1 → halfedge-0.13.0}/src/halfedge/half_edge_object.py +0 -0
- {halfedge-0.12.1 → halfedge-0.13.0}/src/halfedge/py.typed +0 -0
- {halfedge-0.12.1 → halfedge-0.13.0}/src/halfedge/type_attrib.py +0 -0
- {halfedge-0.12.1 → halfedge-0.13.0}/src/halfedge/validations.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "halfedge"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.13.0"
|
|
4
4
|
description = "A typical half-edge data structure with some padding"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -27,7 +27,7 @@ dev = [
|
|
|
27
27
|
|
|
28
28
|
[tool.commitizen]
|
|
29
29
|
kame = "cz_conventional_commits"
|
|
30
|
-
version = "0.
|
|
30
|
+
version = "0.13.0"
|
|
31
31
|
tag_format = "$version"
|
|
32
32
|
major-version-zero = true
|
|
33
33
|
version_files = ["pyproject.toml:^version"]
|
|
@@ -143,31 +143,31 @@ class StaticHalfEdges(BlindHalfEdges):
|
|
|
143
143
|
return {vert: cnt for cnt, vert in enumerate(self.vl)}
|
|
144
144
|
|
|
145
145
|
@property
|
|
146
|
-
def ei(self) ->
|
|
146
|
+
def ei(self) -> list[tuple[int, int]]:
|
|
147
147
|
"""Edge indices - Edges as a set of paired vertex indices.
|
|
148
148
|
|
|
149
149
|
:return: A set of tuples where each tuple represents an edge as paired vertex
|
|
150
150
|
indices.
|
|
151
151
|
"""
|
|
152
152
|
v2i = self._vert2list_index
|
|
153
|
-
return
|
|
153
|
+
return [(v2i[edge.orig], v2i[edge.dest]) for edge in sorted(self.edges)]
|
|
154
154
|
|
|
155
155
|
@property
|
|
156
|
-
def fi(self) ->
|
|
156
|
+
def fi(self) -> list[tuple[int, ...]]:
|
|
157
157
|
"""Face indices - Faces as a set of tuples of vertex list indices.
|
|
158
158
|
|
|
159
159
|
:return: A set of tuples where each tuple represents a face as a sequence of
|
|
160
160
|
vertex indices.
|
|
161
161
|
"""
|
|
162
162
|
v2i = self._vert2list_index
|
|
163
|
-
return
|
|
163
|
+
return [tuple(v2i[x] for x in face.verts) for face in sorted(self.faces)]
|
|
164
164
|
|
|
165
165
|
@property
|
|
166
|
-
def hi(self) ->
|
|
166
|
+
def hi(self) -> list[tuple[int, ...]]:
|
|
167
167
|
"""Hole indices - Holes as a set of tuples of vertex list indices.
|
|
168
168
|
|
|
169
169
|
:return: A set of tuples where each tuple represents a hole as a sequence of
|
|
170
170
|
vertex indices.
|
|
171
171
|
"""
|
|
172
172
|
v2i = self._vert2list_index
|
|
173
|
-
return
|
|
173
|
+
return [tuple(v2i[x] for x in face.verts) for face in sorted(self.holes)]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|