render-stl-png
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
02 资源文件 6
- 参考文档_meta.json282 B
- 许可证LICENSE1.0 KB
- 脚本scripts/render_stl_png.py11.1 KB
- 脚本scripts/render_stl_png.sh607 B
- 参考文档SOURCE.md359 B
- 参考文档TRUST.auto.yaml2.2 KB
03 SKILL.md 正文
render-stl-png
Render an STL to a PNG from a nice, consistent 3D angle ("Blender-ish" default perspective) with a solid color.
This is a deterministic software renderer:
- No OpenGL
- No Blender dependency
- Uses a simple camera + z-buffer + Lambert shading
Inputs
- STL file path (ASCII or binary)
- Output PNG path
Parameters
--size <px>: image width/height (square), default1024--bg "#rrggbb": background color, default#0b0f14--color "#rrggbb": mesh base color, default#4cc9f0--azim-deg <deg>: camera azimuth around Z, default-35--elev-deg <deg>: camera elevation, default25--fov-deg <deg>: perspective field of view, default35--margin <0..0.4>: framing margin as fraction of view, default0.08--light-dir "x,y,z": directional light vector, default-0.4,-0.3,1.0
Usage
One-shot
python3 scripts/render_stl_png.py \
--stl /path/to/model.stl \
--out /tmp/model.png \
--color "#ffb703" \
--bg "#0b0f14" \
--size 1200
Wrapper (recommended)
The wrapper creates a cached venv (so pillow is available) and runs the renderer.
bash scripts/render_stl_png.sh /path/to/model.stl /tmp/model.png --color "#ffb703"
Notes
- This is meant for marketing/preview images, not photorealism.
- If you need studio lighting / materials, use Blender — but this gets you 80% quickly and reproducibly.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.