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.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
Search aliases: plain sculpting words only; Quick tour for experienced sculptors chapter
islandmed744129e7e7a4
diff --git a/docs/guide/images/quick-tour/01-where.jpg b/docs/guide/images/quick-tour/01-where.jpgnew file mode 100644index 00000000..cc32ec00Binary files /dev/null and b/docs/guide/images/quick-tour/01-where.jpg differdiff --git a/docs/guide/images/quick-tour/02-voxel.jpg b/docs/guide/images/quick-tour/02-voxel.jpgnew file mode 100644index 00000000..ac04b36aBinary files /dev/null and b/docs/guide/images/quick-tour/02-voxel.jpg differdiff --git a/docs/guide/images/quick-tour/03-dynamic.jpg b/docs/guide/images/quick-tour/03-dynamic.jpgnew file mode 100644index 00000000..2c9b9b22Binary files /dev/null and b/docs/guide/images/quick-tour/03-dynamic.jpg differdiff --git a/docs/guide/images/quick-tour/04-quad.jpg b/docs/guide/images/quick-tour/04-quad.jpgnew file mode 100644index 00000000..ca638fffBinary files /dev/null and b/docs/guide/images/quick-tour/04-quad.jpg differdiff --git a/docs/guide/images/quick-tour/05-levels.jpg b/docs/guide/images/quick-tour/05-levels.jpgnew file mode 100644index 00000000..51798bc0Binary files /dev/null and b/docs/guide/images/quick-tour/05-levels.jpg differdiff --git a/docs/guide/images/quick-tour/06-masking.jpg b/docs/guide/images/quick-tour/06-masking.jpgnew file mode 100644index 00000000..9ae30219Binary files /dev/null and b/docs/guide/images/quick-tour/06-masking.jpg differdiff --git a/docs/guide/images/quick-tour/07-cut.jpg b/docs/guide/images/quick-tour/07-cut.jpgnew file mode 100644index 00000000..dfc1643eBinary files /dev/null and b/docs/guide/images/quick-tour/07-cut.jpg differdiff --git a/docs/guide/images/quick-tour/08-library.jpg b/docs/guide/images/quick-tour/08-library.jpgnew file mode 100644index 00000000..972e6791Binary files /dev/null and b/docs/guide/images/quick-tour/08-library.jpg differdiff --git a/docs/guide/images/quick-tour/09-bake.jpg b/docs/guide/images/quick-tour/09-bake.jpgnew file mode 100644index 00000000..68926bd8Binary files /dev/null and b/docs/guide/images/quick-tour/09-bake.jpg differdiff --git a/docs/guide/quick-tour.md b/docs/guide/quick-tour.mdindex 12952cc6..470df9e4 100644--- a/docs/guide/quick-tour.md+++ b/docs/guide/quick-tour.md@@ -1,46 +1,121 @@# Quick tour for experienced sculptors-If you have sculpted in another app, most habits carry over. This page shows where things are and how to set-SculptForge up the way your hands expect.+You know how to sculpt; you just need to know where SculptForge keeps things. Here are ten stops, each with a+picture of the panel it talks about.-## Keys and layout+The pictures are SculptForge in its default look and layout.-At the first start, pick **Classic sculpting keys** when SculptForge asks what you are coming from. It turns on the-classic keys and gestures and the **Classic layout**: a title strip, the alphabetical palette bar and a two-row top-shelf. Change either later in **Edit > Preferences > Input** and **Edit > Preferences > Interface > Look**.+## Where things are-With the Classic sculpting keys you sculpt with a left drag, hold <kbd>Alt</kbd> to subtract and <kbd>Shift</kbd>-to smooth, drag on the background to rotate, <kbd>Alt</kbd>+drag to pan, and hold <kbd>Ctrl</kbd> to mask.-<kbd>S</kbd>, <kbd>U</kbd>, <kbd>I</kbd> and <kbd>O</kbd> put the Draw Size, Intensity, RGB Intensity and Falloff-sliders under the cursor, <kbd>Space</kbd> opens the Quick Menu, <kbd>B</kbd> opens the brush pop-up with the same-letter keys (B, S, T picks Standard), <kbd>,</kbd> opens the Library and <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>I</kbd>-stores your interface. Every key is listed in [Keyboard and mouse](shortcuts.md#classic-sculpting-keys).+-## Where things are+The menus along the top are sorted by task: **Sculpt** (brushes, strokes, alphas, symmetry), **Paint**, **Mesh**,+**View** and **Render**. The right tray holds the **Tool** palette: Parts, Geometry, Remesh, Masking, Cut, Bake and+more. The shelves around the view hold the brush, its size and strength, and the brush, stroke, alpha and material+tiles. See [The interface](interface.md).-| Looking for | In SculptForge |+Lost? Press <kbd>F3</kbd> and type what you are after in your own words. The search knows the usual sculpting+words too, and says which one it matched:++| Type | Finds ||---|---|-| Separate meshes in one scene | **Parts**: **Tool > Parts** ([Parts](parts.md)) |-| Blocking out from spheres | **Forge Spheres**: **Tool > Forge Spheres** ([Forge Spheres](forge-spheres.md)) |-| Colour on the vertices | **Vertex Paint** ([Vertex paint and materials](vertex-paint.md)) |-| Groups of faces to mask, hide and split by | **Face Groups** ([Face groups and visibility](face-groups.md)) |-| Viewport materials from a lit-sphere image | **Lit Spheres** (**Material**) |-| Your projects, brushes, alphas and materials | **Library** (<kbd>,</kbd>) |-| An even, watertight remesh | **Tool > Remesh > Voxel Remesh** ([Geometry](geometry.md)) |-| Automatic quad retopology | **Tool > Geometry > Quad Remesh** ([Retopology](retopology.md)) |-| Sculpting that adds detail where the brush goes | **Dynamic topology** ([Dynamic topology](dynamic-topology.md)) |-| Subdivision levels | **Tool > Geometry > Divide** ([Subdivision levels](subdivision-levels.md)) |+| `remesh`, `voxel`, `block out` | **Voxel Remesh** |+| `retopo`, `retopology`, `quads` | **Quad Remesh** |+| `subdivide`, `multires`, `levels` | **Divide**, **Lower Res**, **Higher Res** |+| `groups` | **Face Groups** |+| `clip`, `trim`, `slice` | **Tool > Cut** |+| `folders`, `objects` | **Tool > Parts** |+| `insert`, `kitbash` | **Append** (a mesh as a new Part) |+| `vertex color` | **Vertex Paint** |+| `armature` | **Forge Spheres** |++## Voxel Remesh++++A fast remesh for blocking out. Pull shapes far out or merge pieces, then rebuild one even surface: open+**Tool > Remesh** in the right tray, set **Resolution** and click **Voxel Remesh**. A higher resolution keeps more+detail. The mask and vertex paint carry over, so you can keep going. See+[Geometry](geometry.md#voxel-remesh).++## Dynamic topology++++Dynamic topology adds detail where you sculpt. Turn on **Dynamic** on the top shelf and the brush adds triangles+where it needs them and removes them where it doesn't; **Detail** sets how small they get. Pull horns, ears or+fingers out of a ball without remeshing. **Wire** (<kbd>Shift</kbd>+<kbd>F</kbd>) shows the new triangles. See+[Dynamic topology](dynamic-topology.md).++## Quad Remesh++++Automatic quad retopology: **Tool > Remesh > Quad Remesh** rebuilds a sculpt as clean quads whose edge loops follow+the forms. Set **Target Polygons** and leave **Keep Original** on. Divide the result, then **Project All**+(**Tool > Parts**) brings the detail back. Draw **Quad Remesh Guides** to steer the loops. See+[Quad retopology](retopology.md).++## Levels, Parts and Face Groups++++<kbd>Ctrl</kbd>+<kbd>D</kbd> divides and keeps the lower levels: <kbd>Shift</kbd>+<kbd>D</kbd> steps down,+<kbd>D</kbd> steps up, and you can sculpt at any level (**Tool > Geometry**). A scene holds several+[Parts](parts.md) (**Tool > Parts**); <kbd>Alt</kbd>+click one in the view to work on it.+[Face Groups](face-groups.md) split a Part into coloured regions to hide, isolate or mask (**Tool > Face Groups**).+See [Subdivision levels](subdivision-levels.md).++## Masking++++Hold <kbd>Ctrl</kbd> and paint to mask, <kbd>Ctrl</kbd>+<kbd>Alt</kbd> to unmask. **Tool > Masking** inverts,+blurs and grows the mask, and builds one **By cavity**, **By face group** or along the border. Press <kbd>G</kbd>+for the stroke popup: its **Shapes** row picks **Mask Pen**, **Mask Lasso** or **Mask Rect** for the next+<kbd>Ctrl</kbd> stroke. See [Masking](masking.md).++## Cut, Clip and Close Holes++++Pick a shape in **Tool > Cut** and draw it with <kbd>Ctrl</kbd>+<kbd>Shift</kbd>: a line, lasso, rectangle or+polyline goes straight through the whole Part, and a closed Part stays closed. Cut it away, cut in, add, or+**Clip**: press everything outside the shape flat onto its outline. **Close Holes** (**Tool > Geometry**) caps every+open boundary. See [Cut](cut.md) and [Close Holes](geometry.md#close-holes).++## Brushes, alphas and the Library++++<kbd>B</kbd> opens the brush picker; type the first letters of a name to pick one. The **Alpha** tile picks the+stamp shape. The **Library** (<kbd>,</kbd>) holds starter meshes, brushes, alphas, Lit Spheres and snapshots. A+pack (`.sfpack`) brings brushes, alphas and Lit Spheres in one file; **File > Install Pack** shows what is inside+before anything is installed. See [Sculpting and brushes](sculpting.md) and [Packs and macros](packs-and-macros.md).++## Baking and texturing++++**Tool > Bake** makes normal, displacement, ambient occlusion, cavity and colour maps from your sculpt onto a+low-poly Part with UVs, in the background. <kbd>P</kbd> picks the Paint brush for vertex paint; **New Texture** on+the top shelf paints into a texture instead (Auto UV runs first), with paint layers and material channels. See+[Baking](baking.md), [Texture painting](texture-painting.md) and [Material painting](pbr-painting.md).++## SculptForge stays free-The command palette (<kbd>F3</kbd>) finds any feature by what it does: type "remesh", "groups" or "folders".+Everything in this tour is free, and stays free. If SculptForge helps your work, a membership keeps it moving:+members vote on what we build next in #feature-vote on Discord, and Insiders get daily drops and preview builds.+See [sculptforge.app/support.html](https://sculptforge.app/support.html).-## Bringing your work over+## Keys-Export OBJ, FBX, glTF or USD from the other app and open it here: quads, UVs and groups come along. Or use the-**Bridge** (**File > Bridge**) to send Parts back and forth with face groups, mask and vertex paint; see-[Exporting, Unreal and Bridge](exporting.md#exchange-models-through-the-bridge).+**Edit > Preferences > Input > Style** picks the keys: **SculptForge** (the default), **Classic sculpting keys**,+Blender or Maya. See+[Keyboard and mouse](shortcuts.md).## See also+- [Your first sculpt in 10 minutes](first-sculpt.md)- [The interface](interface.md)-- [Keyboard and mouse](shortcuts.md)- [Glossary](glossary.md)diff --git a/src/app/CommandPalette.cpp b/src/app/CommandPalette.cppindex 1259f2ba..05f56ee9 100644--- a/src/app/CommandPalette.cpp+++ b/src/app/CommandPalette.cpp@@ -6,7 +6,7 @@#include "app/App.h"#include "app/I18n.h"#include "app/Ui.h"-#include "app/ZBrushNames.h"+#include "app/SearchAliases.h"#include <IconsLucide.h>#include <imgui_internal.h>@@ -74,8 +74,17 @@ int fuzzy(const std::string& hay, const std::string& word, bool allowScattered =} // namespace-std::string CommandPalette::zbrushHint(const Action&, const std::string&) {- return {}; // the palette finds a feature by its other names (score) without naming them+std::string CommandPalette::aliasHint(const Action& a, const std::string& query) {+ const std::vector<std::string> other = searchAliasesIn(a.label, a.palette);+ if (other.empty()) return {};+ const std::string label = lower(a.label);+ std::string hit;+ for (const auto& w : words(query)) {+ if (w.size() < 2 || fuzzy(label, w, false) > 0) continue;+ for (const auto& o : other)+ if (fuzzy(lower(o), w, false) > 0 && hit.find(o) == std::string::npos) hit += (hit.empty() ? "" : ", ") + o;+ }+ return hit.empty() ? std::string() : "(also: " + hit + ")";}int CommandPalette::score(const Action& a, const std::string& query) {@@ -84,10 +93,11 @@ int CommandPalette::score(const Action& a, const std::string& query) {const std::string label = lower(a.label), palette = lower(a.palette), id = lower(a.id), command = lower(a.command),description = lower(a.description);const std::string shown = lower(trAction(a.id, a.label)); // the label in the interface language finds it too (#44)- const std::string zbrush = lower(zbrushNamesIn(a.label, a.palette, true)); // and the ZBrush (or earlier) name+ std::string other; // and the other words for it (SearchAliases.h)+ for (const auto& o : searchAliasesIn(a.label, a.palette)) other += lower(o) + " ";int total = 0;for (const auto& w : ws) {- const int s = 3 * std::max({fuzzy(label, w), shown == label ? 0 : fuzzy(shown, w), fuzzy(zbrush, w, false)}) ++ const int s = 3 * std::max({fuzzy(label, w), shown == label ? 0 : fuzzy(shown, w), fuzzy(other, w, false)}) +2 * fuzzy(palette, w, false) + 2 * std::max(fuzzy(id, w), fuzzy(command, w)) +fuzzy(description, w, false);if (s == 0) return 0; // every word must match somewhere@@ -263,7 +273,8 @@ void CommandPalette::draw(App& app, const CanvasRect& area) {const char* shownLabel = trAction(a.id, a.label);rows->AddText(ImVec2(x, ty), fg, shownLabel);x += ImGui::CalcTextSize(shownLabel).x + 10.0f * s;- if (const std::string hint = zbrushHint(a, query_); !hint.empty()) {+ // Found by another word for it: "Quad Remesh (also: retopo)".+ if (const std::string hint = aliasHint(a, query_); !hint.empty()) {rows->AddText(ImVec2(x - 4.0f * s, ty), ui::color::accent, hint.c_str());if (ImGui::GetCurrentContext()->LogEnabled) ImGui::LogText("\n%s %s", shownLabel, hint.c_str());x += ImGui::CalcTextSize(hint.c_str()).x + 6.0f * s;diff --git a/src/app/CommandPalette.h b/src/app/CommandPalette.hindex 2d833334..a4b5ef0c 100644--- a/src/app/CommandPalette.h+++ b/src/app/CommandPalette.h@@ -24,8 +24,8 @@ public:// Ranks actions for QUERY (best first); exposed for tests.static int score(const Action& action, const std::string& query);- // A note shown after an action the query found by another name; empty (other names are never shown).- static std::string zbrushHint(const Action& action, const std::string& query);+ // "(also: retopo)" when `query` found the action by another word for it (SearchAliases.h), else "".+ static std::string aliasHint(const Action& action, const std::string& query);// The palette's search: indices into ActionRegistry::all() of the actions matching QUERY, best first, at most// LIMIT, only those ACCEPT takes (null: all). Radial menus pick their items with it.static std::vector<size_t> find(const App& app, const std::string& query, size_t limit,diff --git a/src/app/SearchAliases.h b/src/app/SearchAliases.hnew file mode 100644index 00000000..1f4c9403--- /dev/null+++ b/src/app/SearchAliases.h@@ -0,0 +1,99 @@+// SculptForge - open source digital sculpting+// SPDX-License-Identifier: GPL-3.0-or-later+//+// Plain words that find a feature in the command search (F3) when its label says it another way: "retopo" finds+// Quad Remesh, "multires" finds Divide, "kitbash" finds Append. Generic sculpting words only, never another+// product's feature names (docs/legal/trademarks.md). A hit shows as "Quad Remesh (also: retopo)".+#pragma once++#include <cctype>+#include <string>+#include <string_view>+#include <vector>++namespace sf {++struct SearchAlias {+ const char* ours; // a word or phrase of SculptForge's labels or palette paths+ const char* words; // the other words for it, joined by ", "+ bool wholeLabel; // only when it is the whole label ("Dynamic": too common inside other labels)+};++inline constexpr SearchAlias kSearchAliases[] = {+ {"Voxel Remesh", "remesh, voxel, block out, rebuild, uniform mesh", false},+ {"Quad Remesh", "retopology, retopo, quads, auto retopo", false},+ {"Dynamic", "dynamic topology, adaptive detail, tessellation", true},+ {"Dynamic Topology", "adaptive detail, tessellation", false},+ {"Face Group", "groups, regions", false},+ {"face group", "groups, regions", false},+ {"Cut", "clip, trim, slice, boolean", false},+ {"Clip", "trim, slice, flatten", true},+ {"Part", "folders, objects, meshes", false},+ {"Divide", "subdivide, subdivision, multires, levels", false},+ {"Higher Res", "subdivision, multires, levels", true},+ {"Lower Res", "subdivision, multires, levels", true},+ {"Vertex Paint", "vertex color, vertex colour, color, colour", false},+ {"vertex paint", "vertex color, vertex colour", false},+ {"Append", "insert, kitbash, add mesh, import mesh", true},+ {"Library", "assets, browser", false},+ {"Forge Sphere", "armature, skeleton, base mesh", false},+ {"Lit Sphere", "sphere material, shader", false},+ {"Close Holes", "fill holes, cap, watertight", false},+ {"Snapshot", "checkpoint, backup", false},+ {"Steady Stroke", "stabilizer, smoothing", false},+ {"Falloff", "softness, hardness", false},+ {"Bake", "normal map, displacement map", false},+ {"Gizmo", "manipulator, transform handle", false},+};++namespace aliases {++inline std::string lowered(std::string_view s) {+ std::string r(s);+ for (auto& c : r) c = char(std::tolower(static_cast<unsigned char>(c)));+ return r;+}++// Whether `text` holds `word` as whole words (a plural s still counts: "Parts", "Face Groups").+inline bool holdsWord(std::string_view text, std::string_view word) {+ auto isWord = [](unsigned char c) { return std::isalnum(c) != 0; };+ // Phrases of two words or more also match in sentence case ("Forge sphere set" from a command's name).+ const bool anyCase = word.find(' ') != std::string_view::npos;+ const std::string textStore = anyCase ? lowered(text) : std::string(text);+ const std::string wordStore = anyCase ? lowered(word) : std::string(word);+ const std::string_view t = textStore, w = wordStore;+ for (size_t at = t.find(w); at != std::string_view::npos; at = t.find(w, at + 1)) {+ const size_t end = at + w.size();+ const bool startOk = at == 0 || !isWord(static_cast<unsigned char>(t[at - 1]));+ const bool endOk = end >= t.size() || !isWord(static_cast<unsigned char>(t[end])) ||+ (t[end] == 's' && (end + 1 >= t.size() || !isWord(static_cast<unsigned char>(t[end + 1]))));+ if (startOk && endOk) return true;+ }+ return false;+}++} // namespace aliases++// The other words for what `label` (and its palette path) names, one per entry, without repeats; empty when none.+// Matches whole words, so "Part" finds "Parts" and "Tool > Parts" but not "Partial".+inline std::vector<std::string> searchAliasesIn(std::string_view label, std::string_view palette = {}) {+ std::vector<std::string> out;+ for (const SearchAlias& a : kSearchAliases) {+ const bool hit = a.wholeLabel ? label == a.ours+ : (aliases::holdsWord(label, a.ours) || aliases::holdsWord(palette, a.ours));+ if (!hit) continue;+ std::string_view rest = a.words;+ while (!rest.empty()) {+ const size_t comma = rest.find(',');+ std::string w(rest.substr(0, comma));+ rest = comma == std::string_view::npos ? std::string_view{} : rest.substr(comma + 1);+ while (!rest.empty() && rest.front() == ' ') rest.remove_prefix(1);+ bool seen = false;+ for (const auto& o : out) seen = seen || o == w;+ if (!seen) out.push_back(std::move(w));+ }+ }+ return out;+}++} // namespace sfdiff --git a/src/app/ZBrushNames.h b/src/app/ZBrushNames.hdeleted file mode 100644index 35fb4ee4..00000000--- a/src/app/ZBrushNames.h+++ /dev/null@@ -1,108 +0,0 @@-// SculptForge - open source digital sculpting-// SPDX-License-Identifier: GPL-3.0-or-later-//-// SculptForge's own names for features ZBrush users know by ZBrush's names (Forge Spheres: ZSpheres, Parts:-// SubTools...), so the command search finds a feature by the name a ZBrush user types, shown as-// "Forge Spheres (ZBrush users: ZSpheres)".-#pragma once--#include <cctype>-#include <string>-#include <string_view>--namespace sf {--struct ZBrushName {- const char* ours; // as SculptForge's interface writes it- const char* theirs; // the ZBrush name- bool wholeLabel; // only when it is the whole label ("Add", "Intensity": too common inside other labels)-};--inline constexpr ZBrushName kZBrushNames[] = {- {"Forge Sphere", "ZSpheres", false},- {"Library", "LightBox", false},- {"Vertex Paint", "Polypaint", false},- {"vertex paint", "Polypaint", false},- {"Part", "SubTool", false},- {"Send to ZBrush", "GoZ", false},- {"Add", "Zadd", true},- {"Sub", "Zsub", true},- {"Intensity", "Z Intensity", true},- {"Intensity at cursor", "Z Intensity", true},- {"Smooth Intensity", "Smooth Z Intensity", true},- {"Voxel Remesh", "DynaMesh", false},- {"Quad Remesh", "ZRemesher", false},- {"Dynamic", "Sculptris Pro", true},- {"Dynamic Topology", "Sculptris Pro", false},- {"Snapshot", "QuickSave", false},- {"Gizmo", "Gizmo 3D, Transpose", false},- {"Lazy Stroke", "LazyMouse", false},- {"Steady Stroke", "LazyMouse", false},- {"Wire", "PolyF", true},- {"Wireframe", "PolyFrame", false},- {"Face Group", "Polygroups", false},- {"face group", "Polygroups", false},- {"Sharp Crease", "DamStandard", false},- {"Clay Block", "ClayBuildup", false},- {"Elastic Tendril", "KelvinSnake", false},- {"Tendril", "SnakeHook", false},- {"Falloff", "Focal Shift", false},- {"Drag Stamp", "DragRect", false},- {"Slide Stamp", "DragDot", false},- {"Quick Menu", "QuickMenu", false},- {"Project All", "ProjectAll", false},- {"Lit Sphere", "MatCap", false},- {"Mask Pen", "MaskPen", false},- {"Mask Lasso", "MaskLasso", false},- {"Mask Rectangle", "MaskRect", false},- {"Select Rectangle", "SelectRect", false},- {"Select Lasso", "SelectLasso", false},-};--// SculptForge's own earlier names, which search still finds (never shown as a ZBrush name).-inline constexpr ZBrushName kEarlierNames[] = {- {"Quad Remesh", "QRemesh", false},-};--// The ZBrush names of the renamed features `label` (and its palette path) names, joined by ", "; "" when none.-// Matches whole words, so "Part" finds "Parts" and "Tool > Parts" but not "Partial". `earlier` adds SculptForge's-// own earlier names (for search).-inline std::string zbrushNamesIn(std::string_view label, std::string_view palette = {}, bool earlier = false) {- std::string out;- auto add = [&](const char* theirs) {- if (out.find(theirs) != std::string::npos) return;- if (!out.empty()) out += ", ";- out += theirs;- };- auto isWord = [](unsigned char c) { return std::isalnum(c) != 0; };- auto lowered = [](std::string_view s) {- std::string r(s);- for (auto& c : r) c = char(std::tolower(static_cast<unsigned char>(c)));- return r;- };- auto contains = [&](std::string_view original, std::string_view name) {- // Names of two words or more also match in sentence case ("Forge sphere set" from a command's name).- const bool anyCase = name.find(' ') != std::string_view::npos;- const std::string textStore = anyCase ? lowered(original) : std::string(original);- const std::string wordStore = anyCase ? lowered(name) : std::string(name);- const std::string_view text = textStore, word = wordStore;- for (size_t at = text.find(word); at != std::string_view::npos; at = text.find(word, at + 1)) {- const size_t end = at + word.size();- const bool startOk = at == 0 || !isWord(static_cast<unsigned char>(text[at - 1]));- // "Parts", "Snapshots", "Face Groups": a plural s is still the word.- const bool endOk = end >= text.size() || !isWord(static_cast<unsigned char>(text[end])) ||- (text[end] == 's' && (end + 1 >= text.size() || !isWord(static_cast<unsigned char>(text[end + 1]))));- if (startOk && endOk) return true;- }- return false;- };- auto scan = [&](const auto& table) {- for (const ZBrushName& n : table)- if (n.wholeLabel ? label == n.ours : (contains(label, n.ours) || contains(palette, n.ours))) add(n.theirs);- };- scan(kZBrushNames);- if (earlier) scan(kEarlierNames);- return out;-}--} // namespace sfdiff --git a/tests/test_actions.cpp b/tests/test_actions.cppindex 8dd6dd1d..4cfba43e 100644--- a/tests/test_actions.cpp+++ b/tests/test_actions.cpp@@ -83,19 +83,22 @@ TEST(action_registry_commands) {}#endif-#include "app/ZBrushNames.h"+#include <algorithm>+#include "app/SearchAliases.h"#include "core/Sculpt.h"-TEST(zbrush_names_find_renamed_features) {+TEST(search_aliases_are_generic_words) {using namespace sf;- CHECK(zbrushNamesIn("Forge Spheres") == "ZSpheres");- CHECK(zbrushNamesIn("Append", "Tool > Parts") == "SubTool");- CHECK(zbrushNamesIn("Partial redo").empty()); // whole words only- CHECK(zbrushNamesIn("Add") == "Zadd");- CHECK(zbrushNamesIn("Add a folder").empty()); // "Add" only as the whole label- CHECK(zbrushNamesIn("Load Lit Sphere...") == "MatCap");- CHECK(zbrushNamesIn("Quad Remesh") == "ZRemesher");- CHECK(zbrushNamesIn("Quad Remesh", {}, true) == "ZRemesher, QRemesh");+ auto has = [](const std::vector<std::string>& v, const char* w) { return std::find(v.begin(), v.end(), w) != v.end(); };+ CHECK(has(searchAliasesIn("Quad Remesh"), "retopo"));+ CHECK(has(searchAliasesIn("Voxel Remesh"), "block out"));+ CHECK(has(searchAliasesIn("Append", "Tool > Parts"), "kitbash"));+ CHECK(has(searchAliasesIn("Duplicate", "Tool > Parts"), "folders"));+ CHECK(has(searchAliasesIn("Clip", "Tool > Cut"), "trim"));+ CHECK(has(searchAliasesIn("Divide"), "multires"));+ CHECK(has(searchAliasesIn("Show face groups"), "groups"));+ CHECK(searchAliasesIn("Partial redo").empty()); // whole words only+ CHECK(searchAliasesIn("Dynamic stroke spacing").empty()); // "Dynamic" only as the whole label// Brushes: stored names stay (old projects, hotkeys and scripts), labels are SculptForge's.BrushType t = BrushType::Standard;CHECK(std::string(brushName(BrushType::DamStandard)) == "DamStandard");diff --git a/tests/ui/zbrush_feel.sfui b/tests/ui/zbrush_feel.sfuiindex a8481b1b..5b7f22aa 100644--- a/tests/ui/zbrush_feel.sfui+++ b/tests/ui/zbrush_feel.sfui@@ -238,3 +238,4 @@ click "Classic sculpting keys##input.style_zbrush"expect_value input_style == 0key 1expect_value brush_type == 2+diff --git a/tools/marks_pending.txt b/tools/marks_pending.txtindex 6af74950..6f02709b 100644--- a/tools/marks_pending.txt+++ b/tools/marks_pending.txt@@ -1,6 +1,5 @@# Files not fully renamed yet (tools/check_marks.py). This list only shrinks; empty it, don't add to it.# Phase 2 of fix/ip-audit renames code identifiers, comments, command names and on-disk keys (with read aliases).-src/app/ZBrushNames.h skip # feat/quick-tour replaces it with SearchAliases.h (generic words)website/guide/search-index.js skip # built from docs/guide, which is checked; command names follow phase 2src/** stringstests/** skip # test code and data: phase 2 (identifiers, comments, fixtures)