Skip to content

Add scatter terrain crates for 32mm miniatures - #3

Merged
srfraser merged 2 commits into
mainfrom
copilot/create-scatter-terrain-crates
Feb 28, 2026
Merged

Add scatter terrain crates for 32mm miniatures#3
srfraser merged 2 commits into
mainfrom
copilot/create-scatter-terrain-crates

Conversation

Copilot AI commented Feb 28, 2026

Copy link
Copy Markdown
Contributor

Adds procedural STL generation for scatter terrain crates sized for 32mm miniature wargaming. Three crate variants are provided, each with optional open lid and D-ring handle, and no attached miniature base.

New functions (stl_generator.scenery.crates)

  • wooden_crate — box body with horizontal plank-line ridges and vertical corner reinforcements
  • metal_crate — smooth box body with raised horizontal bands
  • wooden_crate_with_bands — wooden crate with additional metal band strips (num_bands param)

All three share the same signature shape:

wooden_crate(
    width=20.0, depth=18.0, height=16.0,  # default 32mm-appropriate dims
    open_lid=False,   # True → hollow shell + rim; False → solid closed top
    handle=False,     # True → D-ring handle on front and back faces
    center=(0, 0, 0), # placement
)

# Example variants
wooden_crate(width=18, height=14)                          # small closed
wooden_crate(open_lid=True, handle=True)                   # open with handles
metal_crate(open_lid=True)                                 # open metal
wooden_crate_with_bands(num_bands=3, handle=True)          # banded wood with handles

All three are exported from stl_generator.scenery and the top-level stl_generator package.

Internal helpers (private)

_solid_box, _open_box_shell, _plank_detail, _corner_strip_detail, _metal_band_detail, _lid_rim, _handle — geometry primitives composited via BaseGenerator.

Original prompt

please make scatter terrain crates scaled for 32mm miniatures. wooden and metal. closed and open lids. some with handles. some wooden with metal bands. no bases


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: srfraser <5933384+srfraser@users.noreply.github.com>
Copilot AI changed the title [WIP] Add scatter terrain crates for 32mm miniatures Add scatter terrain crates for 32mm miniatures Feb 28, 2026
@srfraser
srfraser marked this pull request as ready for review February 28, 2026 13:24
@srfraser
srfraser merged commit 6a27616 into main Feb 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants