Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
dwastberg committed Mar 27, 2024
1 parent 4b97ef3 commit daa36d5
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/dtcc_builder/geometry/multisurface.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,3 @@ def to_polygon(ms: MultiSurface, simplify=1e-2) -> Polygon:
merged = make_valid(merged)
merged = merged.simplify(simplify, preserve_topology=True)
return merged


def _flatten_multi_surfaces(multi_surfaces: [MultiSurface]):
offset_ms = [0]
offset_surfaces = []
vertices = np.ndarray(dtype=np.float64, shape=(0,))
array_size = 0
for ms in multi_surfaces:
for surface in ms.surfaces:
flat_vertices = surface.vertices.flatten()
array_size += len(flat_vertices)
print(f"array_size: {array_size}")
vertices = np.zeros(array_size, dtype=np.float64)
return vertices, offset_ms, offset_surfaces

0 comments on commit daa36d5

Please sign in to comment.