mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-17 22:20:51 +00:00
2cc7b66641
* Section View: right-click a face to add up to six cutting planes (#8717) A planar face's menu has Section View. It starts a section on the face's plane. With a section on, the face's plane joins it, up to 6. Each plane hides its own side. The view keeps what every plane keeps. A positive distance cuts into the part, in the dialog and in inspect.section. Edit Section View moves or flips the plane clicked. Turn Off Section View removes that plane. On the Analysis folder it removes them all. The folder lists a row per plane, each with its own eye. Every section change is an undo step, and checkpoints keep the section. The shared viewport crates take the planes as plain data: (normal, d) and a hatch index per plane. The shader holds 6 planes. Each plane's cut is hatched at its own angle, by its id. A new plane takes the lowest free id, so no 2 planes share an angle. A cut face past another plane is capped whole. A line marks where 2 cuts meet. Hidden material casts no ambient occlusion. The Distance box sits past the arrow's tip. The agent chat keeps a turn's undo history as an opaque Revision. The host compares it with the history, since a section step keeps the design. The chat's Undo stops once the user has sectioned since. cargo xtask ci: 107 test binaries, 15776 passed, 22 failed, 72 ignored. 15 failures are listed in KNOWN_FAILING_TESTS. 3 fail alone on main1df54142f7too. 4 pass alone on this branch and on main. (cherry picked from commit 2f0fe001ef826200814cb5aa326cff88bf7deee5) * Tests: the refused-upload test's buffer cap leaves room for six section planes refused_scene_upload_keeps_the_previous_picture_and_retries (#4796) caps max_buffer_size at 2 KiB so a 4 KiB index buffer is refused. With six section planes and their hatches the viewport uniform is 2080 bytes, so Renderer::new failed on the cap before the test reached its upload. The cap is now 3 KiB: above the uniform, below the refused index buffer. (cherry picked from commit6a46a96020)