ai-3d-generatorGénère automatiquement des modèles 3D paramétriques détaillés en Python/Trimesh à partir de descriptions textuelles, avec export STL optimisé.
Install via ClawdBot CLI:
clawdbot install vonzellu/ai-3d-generatorGénération automatique de modèles 3D détaillés à partir de descriptions textuelles.
Prompt utilisateur → LLM (Kimi/Gemini) → Code Python/Trimesh → Génération STL → Export
Crée un fichier prompts/3d-generator.txt:
Tu es un expert en modélisation 3D paramétrique. Génère un script Python utilisant Trimesh
pour créer le modèle 3D décrit ci-dessous.
RÈGLES:
- Utilise trimesh.creation (icosphere, cylinder, cone, torus, box)
- Pour les détails complexes: utiliser des boucles et paramètres
- Résolution élevée: subdivisions=4-5 pour les sphères, sections=32-64 pour cylindres
- Ajouter des détails de surface (panneaux, textures géométriques)
- Structure modulaire avec fonctions réutilisables
- Exporter en STL binaire à la fin
SCRIPT TEMPLATE:python
#!/usr/bin/env python3
import numpy as np
import trimesh
from trimesh.creation import icosphere, cylinder, cone, torus, box
from trimesh.transformations import rotation_matrix
import os
EXPORT_DIR = "/home/celluloid/.openclaw/workspace/stl-exports"
def save_mesh(mesh, filename):
os.makedirs(EXPORT_DIR, exist_ok=True)
filepath = os.path.join(EXPORT_DIR, filename)
mesh.export(filepath)
print(f"✓ Exporté: {filepath}")
print(f" Triangles: {len(mesh.faces):,}")
return filepath
def rotate_mesh(mesh, angle, axis, point=None):
if point is None:
point = [0, 0, 0]
mat = rotation_matrix(angle, axis, point)
mesh.apply_transform(mat)
return mesh
def create_model():
meshes = []
# [GÉNÈRE LE MODÈLE ICI]
# Fusion et optimisation
combined = trimesh.util.concatenate(meshes)
combined.merge_vertices()
return combined
if name == "main":
mesh = create_model()
save_mesh(mesh, "[NOM_DU_MODELE].stl")
DESCRIPTION DU MODÈLE À CRÉER:
{{USER_DESCRIPTION}}
Génère uniquement le code Python complet, sans explications.
Crée le fichier ~/.openclaw/workspace/skills/ai-3d-generator/SKILL.md:
# Génère un modèle à partir d'une description
~/.openclaw/workspace/skills/ai-3d-generator/scripts/generate-from-prompt.sh "vaisseau spatial avec ailes delta et cockpit vitré"
# Avec spécifications techniques
~/.openclaw/workspace/skills/ai-3d-generator/scripts/generate-from-prompt.sh \
"robot humanoïde articulé" \
--scale=50mm \
--detail=high \
--output=robot.stl
Crée un château médiéval avec:
- Tours cylindriques aux 4 coins (diamètre 8mm, hauteur 25mm)
- Créneaux sur les tours
- Mur d'enceinte carré (40x40mm)
- Pont-levis à l'avant
- Texture de pierre avec des blocs individuels
- Échelle 1:100 pour impression 3D
Fais-moi un château
{
"name": "3d:generate-daily",
"schedule": {"kind": "cron", "expr": "0 9 * * *"},
"payload": {
"message": "Génère un modèle 3D aléatoire du jour (animaux, architecture, véhicules) et exporte en STL",
"model": "openrouter/moonshotai/kimi-k2.5"
}
}
# Ajouter du bruit de surface pour texture
def add_surface_noise(mesh, amplitude=0.1):
vertices = mesh.vertices.copy()
noise = np.random.normal(0, amplitude, vertices.shape)
mesh.vertices = vertices + noise
return mesh
# Générer des détails répétitifs
for i in range(100): # 100 panneaux de surface
angle = i * 2 * np.pi / 100
panel = create_detailed_panel()
position_on_surface(panel, radius=20, angle=angle)
# Utiliser trimesh.boolean pour les découpes complexes
from trimesh.boolean import difference, union, intersection
result = difference(base_mesh, cutting_tool)
Génère un modèle 3D d'une station spatiale en anneau avec:
- Anneau principal de 80mm de diamètre
- 6 modules d'habitation sur l'anneau
- Sphère centrale de commande
- Antennes et panneaux solaires
- Style cyberpunk avec câbles et tuyaux
Exporte en STL haute résolution.
trimesh.smoothing pour lisser les surfaces si nécessaireGenerated Mar 1, 2026
Designers can quickly generate 3D models from textual descriptions to visualize concepts, create prototypes for consumer electronics, furniture, or tools, and iterate designs before finalizing for 3D printing or CAD refinement.
Educators and students use this skill to create 3D models of scientific concepts like molecular structures, architectural landmarks, or mechanical parts, enhancing interactive learning and enabling hands-on projects with 3D printing.
Tabletop gamers and hobbyists generate detailed 3D models of characters, creatures, or terrain features from game descriptions, allowing for personalized miniatures that can be 3D printed for use in role-playing or wargaming sessions.
Architects and artists create preliminary 3D models of buildings, interiors, or urban elements based on descriptive prompts, facilitating early-stage design reviews, client presentations, and integration into larger visualization pipelines.
Healthcare professionals generate 3D models of anatomical structures or medical devices from textual descriptions, supporting surgical planning, educational demonstrations, or custom prosthetic design with high-resolution STL outputs.
Offer a platform where users pay a monthly fee to access the AI 3D generator, with tiered plans based on model complexity, export limits, and priority support, targeting small businesses and individual creators.
Provide an API that allows developers to integrate the 3D generation capability into their applications, charging per model generated or based on computational resources used, appealing to software companies and app developers.
Sell customized versions of the skill to large organizations in industries like manufacturing or education, including tailored templates, dedicated support, and integration with existing CAD or 3D printing workflows.
💬 Integration Tip
Integrate with existing 3D printing software via STL export and use cron jobs for automated batch processing to streamline workflows.
Extract text from PDFs with OCR support. Perfect for digitizing documents, processing invoices, or analyzing content. Zero dependencies required.
Fast local PDF parsing with PyMuPDF (fitz) for Markdown/JSON outputs and optional images/tables. Use when speed matters more than robustness, or as a fallback while heavier parsers are unavailable. Default to single-PDF parsing with per-document output folders.
Find, evaluate, and recommend ClawHub skills by need with quality filtering and preference learning.
Fetch full tweets, long tweets, quoted tweets, and X Articles from X/Twitter without login or API keys, using no dependencies and zero configuration.
Skill 查找器 | Skill Finder. 帮助发现和安装 ClawHub Skills | Discover and install ClawHub Skills. 回答'有什么技能可以X'、'找一个技能' | Answers 'what skill can X', 'find a skill'. 触发...
Generate QR codes from text or URL for mobile scanning.