use projection before calling is_path_simple in rouinded_prism

rewrite vnf_bend so it doesn't rely on pseudo 3d polygon self-intersection
This commit is contained in:
Adrian Mariano 2021-10-05 16:14:36 -04:00
parent d986db2e1e
commit 0093d10993
2 changed files with 1368 additions and 1400 deletions

View File

@ -1931,8 +1931,8 @@ function rounded_prism(bottom, top, joint_bot=0, joint_top=0, joint_sides=0, k_b
top_patch[i][4][4]
]
],
top_simple = is_path_simple(faces[0],closed=true),
bot_simple = is_path_simple(faces[1],closed=true),
top_simple = is_path_simple(project_plane(faces[0],faces[0]),closed=true),
bot_simple = is_path_simple(project_plane(faces[1],faces[1]),closed=true),
// verify vertical edges
verify_vert =
[for(i=[0:N-1],j=[0:4])

2764
vnf.scad

File diff suppressed because it is too large Load Diff