Skip to content

Commit dfa58e5

Browse files
LINT
1 parent f7567fb commit dfa58e5

7 files changed

+5
-11
lines changed

docs/examples/example_meshing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from compas.geometry import scale_vector
1010
from compas.geometry import transform_points_numpy
1111
from compas_viewer import Viewer
12+
1213
from compas_cgal.meshing import mesh_remesh
1314

1415

@@ -27,7 +28,7 @@ def main():
2728
S = Scale.from_factors([100, 100, 100])
2829
R = Rotation.from_axis_and_angle(Vector(1, 0, 0), math.radians(90))
2930

30-
bunny.transform(R * S * T)
31+
# bunny.transform(R * S * T)
3132
V0, F0 = bunny.to_vertices_and_faces()
3233
V1 = transform_points_numpy(V0, R * S * T)
3334

docs/examples/example_straight_skeleton_2_interior_straight_skeleton_offset_polygon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from compas.geometry import Polygon
22
from compas_viewer import Viewer
33

4-
from compas_cgal.straight_skeleton_2 import offset_polygon, offset_polygon_with_holes
5-
4+
from compas_cgal.straight_skeleton_2 import offset_polygon
5+
from compas_cgal.straight_skeleton_2 import offset_polygon_with_holes
66

77

88
def main():

docs/examples/example_straight_skeleton_2_interior_straight_skeleton_weighted_offset_polygon.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from compas.geometry import Polygon
22
from compas_viewer import Viewer
3+
34
from compas_cgal.straight_skeleton_2 import weighted_offset_polygon
45

56

src/compas_cgal/straight_skeleton_2.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,6 @@ def offset_polygon_with_holes(points, holes, offset) -> list[Tuple[Polygon, list
202202
if not TOL.is_allclose(normal_hole, [0, 0, -1]):
203203
raise ValueError("The normal of the hole should be [0, 0, -1]. The normal of the provided {}-th hole is {}".format(i, normal_hole))
204204

205-
206-
207-
208205
hole = np.asarray(points, dtype=np.float64, order="C")
209206
H.append(hole)
210207

@@ -215,7 +212,6 @@ def offset_polygon_with_holes(points, holes, offset) -> list[Tuple[Polygon, list
215212

216213
result = []
217214
for points_list in offset_polygons:
218-
219215
polygon = Polygon(points_list[0].tolist())
220216
holes = []
221217
for hole in points_list[1:]:

tests/test_straight_skeleton_2_interior_straight_skeleton.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import pytest
21
from compas.geometry import Point, Polygon
32
from compas_cgal.straight_skeleton_2 import interior_straight_skeleton
43

tests/test_straight_skeleton_2_interior_straight_skeleton_offset_polygon.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from compas.geometry import Polygon
21
from compas_cgal.straight_skeleton_2 import offset_polygon, offset_polygon_with_holes
32

43

@@ -16,7 +15,6 @@ def test_offset_polygon_with_holes():
1615
(-1.91, 3.59, 0.0),
1716
]
1817

19-
polygon = Polygon(points)
2018
offset = 1.5
2119

2220
inner = offset_polygon(points, offset)

tests/test_straight_skeleton_2_interior_straight_skeleton_with_holes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import pytest
21
from compas.geometry import Polygon
32
from compas_cgal.straight_skeleton_2 import interior_straight_skeleton_with_holes
43

0 commit comments

Comments
 (0)