Complete SLICE command behavior

This commit is contained in:
ramox81 committed 2026-09-08 10:27:23 +03:00
1 parent febedad916
commit 21a357f55a
12 files changed
+969 -76

No files matched your search

+33
View File
@@ -2346,11 +2346,44 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
"SLICE offset along X:" => Some(("draw", "slice-offset-along-x")),
"SLICE offset along Y:" => Some(("draw", "slice-offset-along-y")),
"SLICE offset along Z:" => Some(("draw", "slice-offset-along-z")),
"SLICE Select solids or surfaces to slice, then press Enter:" => Some(("draw", "slice-select-targets")),
"SLICE Specify first point on slicing plane or [planar Object/Surface/Zaxis/View/XY/YZ/ZX/3points] <3points>:" => Some(("draw", "slice-first-point-or-method")),
"SLICE Specify first point on slicing plane:" => Some(("draw", "slice-first-plane-point")),
"SLICE Specify second point on slicing plane:" => Some(("draw", "slice-second-plane-point")),
"SLICE Specify third point on slicing plane:" => Some(("draw", "slice-third-plane-point")),
"SLICE Specify a point on the slicing plane:" => Some(("draw", "slice-point-on-plane")),
"SLICE Specify a point on the plane's normal axis:" => Some(("draw", "slice-point-on-normal-axis")),
"SLICE Specify a point on the current view plane:" => Some(("draw", "slice-point-on-view-plane")),
"SLICE Specify a point on the current UCS plane:" => Some(("draw", "slice-point-on-ucs-plane")),
"SLICE Select a planar curve object:" => Some(("draw", "slice-select-planar-object")),
"SLICE Select a planar surface:" => Some(("draw", "slice-select-planar-surface")),
"SLICE Select a cutting surface:" => Some(("draw", "slice-select-cutting-surface")),
"SLICE Specify a point on the desired side or [Both] <Both>:" => Some(("draw", "slice-select-side-or-both")),
"SLICE Select a sliced object to keep or [Both] <Both>:" => Some(("draw", "slice-select-object-or-both")),
"SLICE The selected surface is not planar. Select a planar surface:" => Some(("draw", "slice-surface-not-planar")),
"SLICE The selected surface does not define one supported cutting sheet. Select another surface:" => Some(("draw", "slice-surface-not-supported")),
"SLICE The selected object does not define a plane. Select a planar curve object:" => Some(("draw", "slice-object-not-planar")),
"planar Object" => Some(("draw", "slice-planar-object")),
"Zaxis" => Some(("draw", "slice-zaxis")),
"3points" => Some(("draw", "slice-three-points")),
"Both" => Some(("common", "both")),
"SLICE failed — the plane may not cross the solid." => Some(("common", "slice-failed-the-plane-may-not-cross-the-solid")),
"SLICE: could not determine the solid's extent." => Some(("common", "slice-could-not-determine-the-solid-s-extent")),
"SLICE: cut at {ax}={value}, kept the {} half." => Some(("common", "slice-cut-at-ax-value-kept-the-half")),
"SLICE: select exactly one solid created this session." => Some(("common", "slice-select-exactly-one-solid-created-this-se")),
"SLICE: the plane does not cross the solid on the kept side." => Some(("common", "slice-the-plane-does-not-cross-the-solid-on-th")),
"SLICE: select at least one solid or surface." => Some(("common", "slice-select-at-least-one-target")),
"SLICE: the cutting plane is invalid." => Some(("common", "slice-invalid-plane")),
"SLICE: choose a point away from the cutting plane." => Some(("common", "slice-side-point-on-plane")),
"SLICE: the cutting plane does not cross every selected object; no object was changed." => Some(("common", "slice-plane-misses-target")),
"SLICE: the selected geometry has an unsupported surface intersection; no object was changed." => Some(("common", "slice-unsupported-intersection")),
"SLICE: the cutting plane is coincident with source geometry; no object was changed." => Some(("common", "slice-coincident-plane")),
"SLICE: the selected topology could not be split safely; no object was changed." => Some(("common", "slice-topology-refused")),
"SLICE: a result could not be encoded; no object was changed." => Some(("common", "slice-result-encode-failed")),
"SLICE: a result could not be displayed completely; no object was changed." => Some(("common", "slice-result-display-failed")),
"SLICE: a result could not be committed; all source objects were retained." => Some(("common", "slice-result-commit-failed")),
"SLICE: a retained result could not be updated." => Some(("common", "slice-retained-update-failed")),
"SLICE: created %{count} result object(s)." => Some(("common", "slice-created-results")),
"SOLID Specify first point:" => Some(("draw", "solid-specify-first-point")),
"SOLID Specify fourth point:" => Some(("draw", "solid-specify-fourth-point")),
"SOLID Specify second point:" => Some(("draw", "solid-specify-second-point")),