Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Krande committed Dec 13, 2024
1 parent 7458ccd commit 0a1c64e
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/ada/cadit/sat/write/write_plate.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import numpy as np

import ada
from ada import LineSegment
from ada.base.types import GeomRepr
from ada.cadit.sat.utils import make_ints_if_possible
from ada.cadit.sat.write import sat_entities as se
Expand Down Expand Up @@ -96,21 +95,6 @@ def plate_to_sat_entities(
straight_curves = []

seg3d = pl.poly.segments3d
# By making seg3d counter clockwise area of the face will be positive (in genie checks)
seg3d_ccw = []
# z = seg3d[0].p1.z
# new_seg3d = [
# LineSegment((10,0,z), (10,10,z)),
# LineSegment((0,0,z), (10,0,z)),
# LineSegment((0,0,z), (0,10,z)),
# LineSegment((0,10,z), (10,10,z)),
# ]
# seg3d = new_seg3d
# for i, edge in enumerate(seg3d):
# new_edge = ada.LineSegment(edge.p2, edge.p1)
# seg3d_ccw.append(new_edge)
# seg3d_ccw.reverse()
# seg3d = seg3d_ccw

coedge_ids = []
for i, edge in enumerate(seg3d):
Expand Down Expand Up @@ -185,7 +169,7 @@ def plate_to_sat_entities(
sat_entities.append(fusedge)
sw.edge_name_id += 1

coedge = se.CoEdge(coedge_id, prev_coedge_id, next_coedge_id, edge, loop, "forward")
coedge = se.CoEdge(coedge_id, prev_coedge_id, next_coedge_id, edge, loop, "forward")
coedges.append(coedge)
edges.append(edge)
straight_curves.append(straight_curve)
Expand Down

0 comments on commit 0a1c64e

Please sign in to comment.