跳到正文
TakoAPI
返回技能列表

image-to-relief-stl

由 ajmwagar 提供

Transportation
2.0k下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Turn a source image (or multi-color mask image)

描述

该技能的功能

Converts an image into a watertight, 3D-printable bas-relief STL by mapping colors or grayscale values to surface heights. Works in palette mode for flat-color images with exact color-to-height assignments, or grayscale mode for continuous height mapping. Designed to pair with image generation skills so a generated image becomes a physical model.

Uses a raster heightfield approach that needs no CAD software or heavy 3D modeling dependencies, just Python and potrace.

何时使用

  • Converting AI-generated flat-color art into printable wall plaques
  • Turning a logo or icon into a bas-relief badge
  • Making lithophanes from grayscale source images
  • Creating embossed signs or name tags from simple illustrations
  • Producing physical keepsakes from digitally generated artwork

示例工作流

输入

User asks: convert my flat-color PNG logo into a printable STL with dark areas raised

智能体
  1. 1

    Receive the input PNG and identify the target color-to-height mapping

  2. 2

    Run image_to_relief.sh in palette mode with hex color codes mapped to heights

  3. 3

    Set base thickness and pixel resolution parameters

  4. 4

    Generate the heightfield mesh and write out the ASCII STL

  5. 5

    Produce an SVG preview via potrace for visual confirmation

输出

A watertight out.stl file ready for slicing, plus an optional out-preview.svg

前置要求

  • potrace and mkbitmap installed (apt: sudo apt install potrace, or brew: brew install potrace)

安装

clawhub install ajmwagar/image-to-relief-stl

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接