Skip to content

Commit

Permalink
reformated
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTesla committed Aug 4, 2024
1 parent 3739ce1 commit 4fea7de
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions xyzcad/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,12 +545,9 @@ def convert_corners2cubes(cubes_coord2cornersval_dict):
)



@njit(cache=True)
def convert_corners2pts(cubeCornerValsDict, r):

#ptsResDict = Dict()

with objmode(time1="f8"):
time1 = time.perf_counter()
pts_res_list = []
Expand All @@ -575,7 +572,6 @@ def convert_corners2pts(cubeCornerValsDict, r):
with objmode():
print("ptsResDict time: {}".format(time.perf_counter() - time1))


with objmode(time1="f8"):
time1 = time.perf_counter()
ptCoordDictKeys = np.asarray(list(ptsResDict.keys()))
Expand Down Expand Up @@ -747,9 +743,10 @@ def build_repair_polygons(single_edge_dict):
def repair_surface(poly_list):
with objmode(time1="f8"):
time1 = time.perf_counter()
poly_edge_list = [(0,0)]*(len(poly_list)*6)
poly_edge_list = [(e[(i + 1) % len(e)], e[i]) for e in poly_list \
for i, f in enumerate(e)]
poly_edge_list = [(0, 0)] * (len(poly_list) * 6)
poly_edge_list = [
(e[(i + 1) % len(e)], e[i]) for e in poly_list for i, f in enumerate(e)
]
s1 = set(poly_edge_list)
s2 = set([(e[1], e[0]) for e in poly_edge_list])
singleEdgeSet = s1.difference(s2)
Expand Down

0 comments on commit 4fea7de

Please sign in to comment.