feat(editor): add --gen-mesh-hitching-post stable fixture

67th procedural mesh primitive. Standard town/stable
hitching post:

  • two vertical posts separated by `span`
  • horizontal cross-bar at upper-post height (length =
    span - postW so it tucks INSIDE the post inner faces,
    matching real fence joinery)
  • optional decorative caps on each post — set capH=0
    for a bare working-yard post

All axis-aligned boxes, exercises every shared helper
(stripExt, initWomDefaults, addFlatBox,
finalizeAsSingleBatch, saveWomOrError). Watertight under
weld (verified 90 manifold edges, 0 boundary, 0
non-manifold).

Useful for stables, taverns with mount parking, town
squares, frontier outposts, ranger camps, post-and-rail
fence segments.
This commit is contained in:
Kelsi 2026-05-09 12:15:41 -07:00
parent b1fd3382a9
commit 38d9575eb2
3 changed files with 71 additions and 1 deletions

View file

@ -256,6 +256,8 @@ void printUsage(const char* argv0) {
std::printf(" Water trough: 4-walled rectangular basin with flat floor (stable / farm / tavern set dressing)\n");
std::printf(" --gen-mesh-training-dummy <wom-base> [baseH] [postW] [torsoSize] [armSpan] [armT] [headSize]\n");
std::printf(" Training dummy: post + cubic torso + cross-bar arms + optional head (sparring / drill yard)\n");
std::printf(" --gen-mesh-hitching-post <wom-base> [span] [height] [postW] [barT] [capH]\n");
std::printf(" Hitching post: 2 vertical posts + horizontal cross-bar + optional decorative caps (stable / town square)\n");
std::printf(" --gen-mesh-table <wom-base> [width] [depth] [height] [legThick] [topThick]\n");
std::printf(" Table: flat top slab on 4 corner legs (default 1.6/1.0/0.85/0.10/0.06)\n");
std::printf(" --gen-mesh-lamppost <wom-base> [poleH] [poleT] [baseSize] [lanternSize] [lanternH]\n");