ajmwagar

Image To Relief Stl

设计创意v0.1.0
作者:ajmwagar更新于 2026-05-11image-to-relief-stl@clawhub_ajmwagar/image-to-relief-stl
图片编辑视觉素材

据 AlphaMoat 统计,截至 2026-09,Image To Relief Stl 累计下载 3,690 次、获 3 个星标,在全部 5,078 个 AI 技能中排名第 2,925 位,在「设计创意」分类(512 个)中排名第 273 位。

累计安装
362
累计下载
3,690
星标
3
全站排名
#2,925
全站前 58% · 「设计创意」前 54%
平台累计安装累计下载星标评论
ClawHub ↗1163,5712-
SkillHub ↗3623,6903—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

以栅格高度场把调色板颜色或灰度映射为高度,输出 ASCII STL,可选尽力生成 SVG 预览。纯色、清晰边缘、无渐变和阴影有助分割。需 Python、potrace 与 mkbitmap,像素大小影响细节和文件体积。应审查固定依赖;卡片指出预览路径存在代码执行问题,不可信路径应避免预览选项。

资料发布于 2026-10-27

可以用来做什么

  • 从纯色或灰度图准备浅浮雕 STL

什么时候用

  • 图像需要确定性转换为浮雕几何时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

审查输入图和依赖,选择高度与分辨率,避开不安全预览路径准备转换。

月度数据趋势

累计下载3,690
2,4583,1203,7812026-03 · 累计下载 2,5492026-05 · 累计下载 2,9262026-07 · 累计下载 3,3112026-08 · 累计下载 3,4442026-09 · 累计下载 3,69026-0326-09
星标3
2332026-03 · 星标 22026-05 · 星标 32026-07 · 星标 32026-08 · 星标 32026-09 · 星标 326-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,690—3
2026-083,444+4.0%3
2026-073,311—3
2026-052,926—3
2026-032,549—2

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

1.9 KB · ClawHub v0.1.0
---
name: image-to-relief-stl
description: Turn a source image (or multi-color mask image) into a 3D-printable bas-relief STL by mapping colors (or grayscale) to heights. Use when you have an image from an image-gen skill (nano-banana-pro, etc.) and want a real, printable model (STL) via a deterministic pipeline.
metadata:
  openclaw:
    requires:
      bins: ["python3", "potrace", "mkbitmap"]
    install:
      - id: apt
        kind: apt
展开全部(共 68 行)
        package: potrace
        bins: ["potrace", "mkbitmap"]
        label: Install potrace + mkbitmap (apt)
      - id: brew
        kind: brew
        formula: potrace
        bins: ["potrace", "mkbitmap"]
        label: Install potrace + mkbitmap (brew)
---

# image-to-relief-stl

Generate a **watertight, printable STL** from an input image by mapping colors (or grayscale) to heights.

This is an orchestrator-friendly workflow:
- Use **nano-banana-pro** (or any image model) to generate a **flat-color** image.
- Run this skill to convert it into a **bas-relief** model.

## Practical constraints (to make it work well)

Ask the image model for:
- **exactly N solid colors** (no gradients)
- **no shadows / no antialiasing**
- bold shapes with clear edges

That makes segmentation reliable.

## Quick start (given an image)

```bash
bash scripts/image_to_relief.sh input.png --out out.stl \
  --mode palette \
  --palette '#000000=3.0,#ffffff=0.0' \
  --base 1.5 \
  --pixel 0.4
```

### Grayscale mode

```bash
bash scripts/image_to_relief.sh input.png --out out.stl \
  --mode grayscale \
  --min-height 0.0 \
  --max-height 3.0 \
  --base 1.5 \
  --pixel 0.4
```

## Outputs

- `out.stl` (ASCII STL)
- optional `out-preview.svg` (vector preview via potrace; best-effort)

## Notes

- This v0 uses a **raster heightfield** meshing approach (robust, no heavy CAD deps).
- The `--pixel` parameter controls resolution (smaller = higher detail, bigger STL).

「设计创意」分类下的热门技能

ajmwagar 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。