跳到正文

正在自动登录…

← 返回项目列表

awv-informatik/smlibpy

3D建模CAD文件处理模型渲染

smlibpy 是一个基于 SMLib NURBS 内核的 Python 3D 建模库,提供精确的实体和曲面建模、草图绘制、钣金、变形、测量、文件导入导出及渲染功能,并附带 MCP 服务器,使 AI 代理也能进行建模。适用于需要程序化 CAD 建模的开发者、工程师和研究人员。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/21 00:46:25 · 查看原文

值得看Python库与框架
累计 Stars
190
当前热度
未达当前门槛
仓库创建时间
打开 GitHub ↗项目网站 ↗

选用指南

AI 根据 README 整理 · 2026/10/21 00:46:25

使用方式

通过 Python 库使用,支持命令行安装和导入;也提供 MCP 服务器供 AI 代理调用,以及 JavaScript/TypeScript 版本(smlibwasm)可在浏览器或 Node 中运行。

查看 README 依据
to Python: to build exact parts from short scripts, to draw what it has built, and to prove the work in numbers. In four parts: the library, the renderer, the MCP server, the skill. MMXXVI."></picture> # smlibpy A Python library for 3D modeling on the [SMLib NURBS kernel](https://github.com/NVIDIA-Omniverse/usd-brep). The API follows the style of [build123d](https://github.com/gumyr/build123d)'s algebra mode and shares a few ideas with [CadQuery](https://github.com/cadquery/cadquery), but not its method chains: shapes are plain values, and every operation returns a new one.
It comes with an MCP server, so your agent can build parts too. And it runs in the browser: [smlibwasm](#in-javascript) is the same library for JavaScript and TypeScript, on the kernel compiled to WebAssembly. **[Website](https://smlibpy.classcad.ch)** · **[Documentation](https://smlibpy.classcad.ch/docs/)** · **[Getting started](https://smlibpy.classcad.ch/docs/getting-started)** · **[API reference](https://smlibpy.classcad.ch/docs/api)** · **[For agents](https://smlibpy.classcad.ch/docs/mcp)** · **[JavaScript](https://smlibpy.classcad.ch/docs/javascript)** ```python from smlibpy import *
smlibwasm (`@classcad/smlibwasm` on npm) is smlibpy for JavaScript and TypeScript: the same API on the same kernel, compiled to WebAssembly. It runs in the browser and in Node, without a server and without dependencies. ```bash npm install @classcad/smlibwasm ``` ```js import { Box, Cylinder, GridLocations, Z, toStep } from '@classcad/smlibwasm' let plate = Box(80, 60, 10) plate = plate.fillet(plate.edges().parallelTo(Z), 8) plate = plate.cut(GridLocations(60, 40, 2, 2).mul(Cylinder(4, 10))) const step = toStep(plate) // the STEP file as text ```
部署要求

Python 3.10 至 3.14,支持 Linux、macOS、Windows;仅依赖 numpy。从源码构建需要 CMake 和 C++17 编译器。

查看 README 依据
for every function. People who want parametric apps that rebuild from sketches and features are sent to the [ClassCAD](https://classcad.ai) MCP. - A Claude Code plugin, installed from this repository (see below) ## Install ```bash pip install smlibpy ``` There are wheels for Linux (x86_64, aarch64), macOS (arm64, x86_64) and Windows, for Python 3.10 to 3.14, with the kernel compiled in. They are 5 to 7 MB, and numpy is the only dependency. For agents, `pip install "smlibpy[mcp]"` adds the MCP server; see [AI agents](https://smlibpy.classcad.ch/docs/mcp).
To build from source you need CMake and a C++17 compiler (about a minute on a laptop): ```bash git clone --recursive https://github.com/awv-informatik/smlibpy cd smlibpy pip install . ``` ## For agents The MCP server lets Claude and other agents model with smlibpy. In Claude Code: ```bash claude plugin marketplace add awv-informatik/smlibpy claude plugin install smlibpy@smlibpy ``` Other hosts start `uvx --from "smlibpy[mcp]" smlibpy-mcp`; see [AI agents](https://smlibpy.classcad.ch/docs/mcp). The agent works in four steps:
已知限制

当前版本(0.3)尚未支持带产品结构的装配体和带尺寸的二维工程图。

查看 README 依据
- [Examples](https://smlibpy.classcad.ch/docs/examples) - [The kernel](https://smlibpy.classcad.ch/docs/kernel): how smlibpy uses SMLib, accuracy, limitations - [API reference](https://smlibpy.classcad.ch/docs/api) ## Status smlibpy is new (version 0.3). It covers solid and surface modeling, text, and reads and writes STEP, USD and DXF with the exact geometry; smlibwasm has all of it in JavaScript. Assemblies with product structure and dimensioned 2D drawings are not there yet. ## License smlibpy and smlibwasm are MIT licensed. They build and bundle the SMLib kernel from

README

正在加载 README…

收录信息

仓库创建时间
2026/10/13 00:55:06
首次达标收录
2026/10/14 00:45:56
统计更新时间
2026/10/22 19:05:58

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

模型评估

值得看加权总分 3.9 / 5

新颖度
3.8
实用价值
4.3
成熟度
4.1
实质含量
3.5

由 Jev 模型根据仓库描述与 README 评估,2026/10/21 00:46:25 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。

仓库信息

最近推送
2026/10/21 19:24:22
许可证标识
MIT
Fork 数
20
当前状态
未归档

收录记录

按创建时长与累计 Stars 首次收录:小火
首次发现项目