你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
updated code in a few files to make it more understandable, also used .join method at a place to increase the speed.
这个提交包含在:
@@ -1,3 +1,4 @@
|
||||
import itertools
|
||||
import multiprocessing as mp
|
||||
import sys
|
||||
|
||||
@@ -90,10 +91,7 @@ def triangle_to_intersecting_lines(triangle, height, pixels, lines):
|
||||
y = int(same[0][1])
|
||||
pixels[y][x] = True
|
||||
else:
|
||||
cross_lines = []
|
||||
for a in above:
|
||||
for b in below:
|
||||
cross_lines.append((b, a))
|
||||
cross_lines = [(b, a) for a, b in itertools.product(above, below)]
|
||||
side1 = where_line_crosses_z(cross_lines[0][0], cross_lines[0][1], height)
|
||||
side2 = where_line_crosses_z(cross_lines[1][0], cross_lines[1][1], height)
|
||||
lines.append((side1, side2))
|
||||
|
在新工单中引用
屏蔽一个用户