Skip to content

Commit 09d3d54

Browse files
committed
remove map to list
1 parent 9af43a9 commit 09d3d54

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
* Changed `compas_triangle.rhino.discretise_boundary` and `compas_triangle.rhino.discretise_constraint` to not convert points to lists.
15+
1416
### Removed
1517

1618

src/compas_triangle/rhino.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def discretise_boundary(guids, length):
1818
curve: Curve = guid_to_compas_curve(segment)
1919
N = int(curve.length() / length)
2020
_, points = curve.divide_by_count(N, return_points=True)
21-
boundary.extend(map(list, points))
21+
boundary.extend(points)
2222

2323
rs.DeleteObjects(segments)
2424
rs.EnableRedraw(True)
@@ -32,5 +32,5 @@ def discretise_constraints(guids, length):
3232
curve: Curve = guid_to_compas_curve(guid)
3333
N = int(curve.length() / length)
3434
_, points = curve.divide_by_count(N, return_points=True)
35-
polylines.append(map(list, points))
35+
polylines.append(points)
3636
return polylines

0 commit comments

Comments
 (0)