- More projection and extrusion in place

This commit is contained in:
bklronin
2024-07-10 23:19:43 +02:00
parent b5c965bf2e
commit cb471b4108
4 changed files with 185 additions and 90 deletions

View File

@@ -31,11 +31,11 @@ def create_3D(lines, z_origin, depth):
for coordinate2d in lines:
start, end = coordinate2d
xs,ys = start
coordinate3d_start_orig = xs, ys, z_origin + depth
xs, ys = start
coordinate3d_start_orig = xs, -ys, z_origin + depth
xe, ye = end
coordinate3d_end_orig = xe, ye, z_origin + depth
coordinate3d_end_orig = xe, -ye, z_origin + depth
line3d_orig = coordinate3d_start_orig, coordinate3d_end_orig