Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

cut_symmetry.sfui: replay the double cut that took one side only before

islandmed6feb1349cc3b
diff --git a/tests/ui/sizes/cut_symmetry.sfui b/tests/ui/sizes/cut_symmetry.sfui
index 9a4e2369..771b8ee2 100644
--- a/tests/ui/sizes/cut_symmetry.sfui
+++ b/tests/ui/sizes/cut_symmetry.sfui
@@ -1,6 +1,6 @@
# Cut with X symmetry (Discord, dm4nd) for the look review at 1440 logical px (CMake: ui_cut_symmetry_1440 at 100 %,
# ui_cut_symmetry_1440_200 at 200 %): Cut In with a rectangle across the middle (both sides to the same depth), a
-# second cut across its caps from an angled view (the caps close; Wire on, close up), and the Blender keys' Alt+Q in
+# replay of the double cut that took one side only before (Wire on, close up), and the Blender keys' Alt+Q in
# Controls. Every shot comes before the checks, so the script also shows an older build as it was.
logical_width 1440
run ui_look look=classic layout=classic
@@ -32,19 +32,26 @@ camera 0 -35
wait_idle 10
shot cut-in-after-from-above
-# --- (2) A second cut across the first one's caps, from an angled view: Away, Wire on, close up ---
-click "Away##cut.away"
-camera 30 -20
+# --- (2) The case the cut tests found broken (tests/test_cut.cpp cut_symmetry_overlapping_mirror_images): Away
+# across the middle from the front, then a rectangle across that cut from an angled view, both with X symmetry. The
+# first cut's mirror image left zero-area slivers in its walls, the second cut's mirror image cracked on them and was
+# dropped: one side cut only. Now both sides are cut and every cap closes. (The views as in the test, not the app's.)
+run new_sphere subdivisions=4
+run cut shape=rect points="-0.1 -0.2 0.4 0.2" mode=away symmetry=x view_proj="0.666666667 0 0 0 0 0.666666667 0 0 0 0 -0.02002002 0 0 0 -0.921921922 1"
+run cut shape=rect points="-0.15 -0.3 0.35 0.1" mode=away symmetry=x view_proj="2.0818069 -0.102480516 -0.168633393 -0.168296463 0 2.68238683 -0.216814362 -0.216381167 -0.364316207 -0.585602946 -0.963619387 -0.961694074 -2.34639438e-16 1.23918953e-16 3.96745365 4.15932687"
+camera 0 0
+click "Frame##view.frame"
wait_idle 10
-hold ctrl+shift
-drag_path 0.3 0.3 0.62 0.55
-hold none
+shot replay-front
+camera 0 40
wait_idle 10
+shot replay-from-below
mouse_move 0.5 0.5
key shift+f
-zoom 1.8
+camera 20 -15
+zoom 1.6
wait_idle 10
-shot cap-wire-closeup
+shot replay-wire-closeup
key shift+f
# --- (3) Blender keys: Alt+Q in Controls > Mouse & pen ---