返回顶部
i

image-to-relief-stl图像转浮雕STL

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
2,398
下载量
免费
免费
2
收藏
概述
安装方式
版本历史

image-to-relief-stl

image-to-relief-stl

通过将颜色(或灰度)映射为高度,从输入图像生成防水、可打印的STL文件。

这是一个适合编排器的工作流程:

  • - 使用 nano-banana-pro(或任何图像模型)生成纯色图像。
  • 运行此技能将其转换为浅浮雕模型。

实用约束(以确保良好效果)

要求图像模型具备:

  • - 恰好N种纯色(无渐变)
  • 无阴影/无抗锯齿
  • 边缘清晰的粗体形状

这样可确保分割的可靠性。

快速开始(给定图像)

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

灰度模式

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

输出

  • - out.stl(ASCII STL格式)
  • 可选 out-preview.svg(通过potrace生成的矢量预览;尽力而为)

说明

  • - 此v0版本采用栅格高度场网格化方法(稳健,无需繁重的CAD依赖)。
  • --pixel参数控制分辨率(数值越小,细节越丰富,STL文件越大)。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 image-to-relief-stl-1776373767 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 image-to-relief-stl-1776373767 技能

通过命令行安装

skillhub install image-to-relief-stl-1776373767

下载

⬇ 下载 image-to-relief-stl v0.1.0(免费)

文件大小: 5.5 KB | 发布时间: 2026-4-17 13:55

v0.1.0 最新 2026-4-17 13:55
Initial release: deterministic raster bas-relief STL from image (palette/grayscale), uses pillow via cached venv; potrace optional preview

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部