convert CAD data into realtime-ready OpenUSD, glTF, OBJ, STL, and FBX assets
Project description
Fascat is a Python library and CLI for converting STEP, IGES, OpenCASCADE BREP, and JT CAD into realtime-ready OpenUSD, glTF, OBJ, STL, and FBX assets.
flowchart TD
A["STEP / IGES / BREP / JT CAD"] --> B["Imported assembly"]
B --> C["Tessellated meshes"]
C --> D["Repaired meshes"]
D --> E["Staged materials & UVs"]
E --> F["Optimized LODs"]
F --> G["OpenUSD / glTF / OBJ / STL / FBX"]
Installation
pip / pipx
pipx install fascat
# or
pip install fascat
Quick Start
# Show help
fascat --help
fascat help convert
# Print version
fascat version
# Inspect a CAD assembly
fascat inspect motor.step
fascat --json inspect motor.step
# Convert STEP to binary OpenUSD
fascat convert motor.step
fascat convert motor.step motor.usdc --profile realtime-desktop
# Convert STEP to binary glTF for VR/runtime engines
fascat convert motor.step motor.glb --profile virtual-reality
fascat convert motor.step motor.glb --profile mixed-reality
# Convert JT 8.x/9.x/10.x tessellation to GLB and import all stored JT LODs
fascat convert assembly.jt assembly.glb --jt-lod-selection all
# Tune tessellation, UVs, optimization, and LODs
fascat convert motor.step motor.usdc \
--sag 0.1 \
--angle 15 \
--max-edge-length 25 \
--target-triangles 500000 \
--materials display \
--uv1 box \
--lods 0.5,0.25,0.1
# Preview a conversion without writing files
fascat convert motor.step motor.usdc --dry-run
# Emit a debuggable ASCII USD and report
fascat convert motor.step motor.usda --debug --report report.json
# Validate generated output
fascat validate motor.usdc
fascat validate motor.glb
# Render multi-angle turntable previews of the result
fascat validate motor.glb --turntable-dir views/
Commands
| Command | Description |
|---|---|
fascat inspect input.step |
Inspect a CAD assembly before conversion |
fascat convert input.step [output.usdc] |
Convert STEP, IGES, BREP, or JT CAD into OpenUSD, glTF, OBJ, STL, or FBX |
fascat validate output.usdc |
Validate generated USD, glTF, OBJ, STL, or FBX output |
fascat help [command] |
Show top-level or command-specific help |
fascat version |
Print version and exit |
Fascat follows standard CLI stream conventions: primary output and JSON go to stdout, while errors and per-stage conversion progress go to stderr. Conversion validates the generated asset before reporting success. File arguments accept - for stdin/stdout where meaningful.
Python API
import fascat as fc
asset = fc.read_step("motor.step") # or read_iges(...) / read_brep(...) / read_jt(...)
asset = (
asset.tessellate(sag=0.1, angle=15.0)
.repair(tolerance=0.05)
.stage(materials="cad", uv0="box")
.optimize(target_triangles=500_000)
.lods([0.5, 0.25, 0.1])
)
asset.write_usd("motor.usdc")
asset.write_gltf("motor.glb")
Keyword arguments mirror each operation's *Options dataclass; pass a prebuilt
options object instead when you prefer (asset.repair(fc.RepairOptions(tolerance=0.05))).
Agentic Skill
skills/cad-to-rt3d is an agentic skill that
automates the whole CAD → RT3D tuning loop: it converts with a target profile, validates geometry
quality, renders the result from multiple turntable angles, compares each view
against a high-fidelity reference conversion, and adjusts fascat flags
iteration by iteration until the asset passes both deterministic gates
(topology, triangle and file-size budgets — checked by
scripts/gates.py) and a visual
inspection of the renders.
Open this repository in your coding agent (or copy the skill folder into your own project) and ask, for example:
Use the cad-to-rt3d skill to convert motor.step for realtime-web.
Every iteration's settings, reports, and renders are kept in a
<output>.fascat-work/ directory, so the tuning history stays auditable. The
turntable rendering it relies on is plain fascat validate --turntable-dir —
see the CLI reference for
the flags.
Docs
Full documentation at pavelsimo.github.io/fascat.
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fascat-0.5.0.tar.gz.
File metadata
- Download URL: fascat-0.5.0.tar.gz
- Upload date:
- Size: 3.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a9951054fa39bab2514686450a88ee24e81fec06ae14a73cdf9367a7114c56a
|
|
| MD5 |
4a83681a49bfb28a58036b6c59a5ee05
|
|
| BLAKE2b-256 |
e81042fd2f0f2974a7b628fae35d8255a18a74eb26fa835a372f031c67a420a2
|
Provenance
The following attestation bundles were made for fascat-0.5.0.tar.gz:
Publisher:
release.yml on pavelsimo/fascat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fascat-0.5.0.tar.gz -
Subject digest:
0a9951054fa39bab2514686450a88ee24e81fec06ae14a73cdf9367a7114c56a - Sigstore transparency entry: 2133499140
- Sigstore integration time:
-
Permalink:
pavelsimo/fascat@0c4334ae3faadebf5afeccf0991e386363a81cb2 -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/pavelsimo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0c4334ae3faadebf5afeccf0991e386363a81cb2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file fascat-0.5.0-py3-none-any.whl.
File metadata
- Download URL: fascat-0.5.0-py3-none-any.whl
- Upload date:
- Size: 418.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3df2f5f8a1e6e3663546ddcd297bb444c1c0ba1cb2824e1447e675c810bcc4a
|
|
| MD5 |
7406f6d268ce5a75afd54a38f13d8f2c
|
|
| BLAKE2b-256 |
1985d14b36990270586f6f050bec5d99e514d2fb868257e76cb14f74cae4dc53
|
Provenance
The following attestation bundles were made for fascat-0.5.0-py3-none-any.whl:
Publisher:
release.yml on pavelsimo/fascat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fascat-0.5.0-py3-none-any.whl -
Subject digest:
e3df2f5f8a1e6e3663546ddcd297bb444c1c0ba1cb2824e1447e675c810bcc4a - Sigstore transparency entry: 2133499217
- Sigstore integration time:
-
Permalink:
pavelsimo/fascat@0c4334ae3faadebf5afeccf0991e386363a81cb2 -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/pavelsimo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0c4334ae3faadebf5afeccf0991e386363a81cb2 -
Trigger Event:
push
-
Statement type: