convert CAD STEP data into realtime-ready OpenUSD and glTF assets
Project description
🐱 fascat
Fascat is a Python library and CLI for converting CAD STEP data into realtime-ready OpenUSD and glTF assets.
The V1 pipeline is intentionally narrow:
STEP CAD -> imported assembly -> tessellated meshes -> repaired meshes -> staged materials and UVs -> optimized LODs -> OpenUSD/glTF
Installation
Homebrew (macOS / Linux)
brew tap pavelsimo/homebrew-tap
brew install fascat
pip / pipx
pipx install fascat
# or
pip install fascat
Quick Start
# Show help
fascat --help
fascat help convert
# Print version
fascat version
# Inspect a STEP 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
# 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
Commands
| Command | Description |
|---|---|
fascat inspect input.step |
Inspect a STEP assembly before conversion |
fascat convert input.step [output.usdc] |
Convert STEP CAD into OpenUSD or glTF |
fascat validate output.usdc |
Validate generated USD or glTF 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
fc.convert(
"pump.step",
"pump.usdc",
tessellation=fc.Tessellation(sag=0.1, angle=15, max_edge_length=25),
stage=fc.StageOptions(materials="cad", uv0="box", uv1="unwrap"),
optimize=fc.OptimizeOptions(target_triangles=1_000_000, preserve_instances=True),
lods=fc.LODOptions((0.5, 0.25, 0.1)),
)
asset = fc.read_step("pump.step").tessellate().repair().stage().optimize()
asset.write_gltf("pump.glb")
Docs
Full documentation at pavelsimo.github.io/fascat.
License
MIT
Project details
Release history Release notifications | RSS feed
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.1.0.tar.gz.
File metadata
- Download URL: fascat-0.1.0.tar.gz
- Upload date:
- Size: 2.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4939211ad062ee7ecbd9942f1368eacc7f1259d2ec6fa0c58f100756fe0dc423
|
|
| MD5 |
bfa7c04123e951936bac02ec59759f6c
|
|
| BLAKE2b-256 |
0b6135d95c3b16828f84d86854efc1c821103a6b89cbab7d3706625c5d6ba393
|
Provenance
The following attestation bundles were made for fascat-0.1.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.1.0.tar.gz -
Subject digest:
4939211ad062ee7ecbd9942f1368eacc7f1259d2ec6fa0c58f100756fe0dc423 - Sigstore transparency entry: 1634051205
- Sigstore integration time:
-
Permalink:
pavelsimo/fascat@d7e53b0536938a25e376ab455a2c3a7a112d9813 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/pavelsimo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d7e53b0536938a25e376ab455a2c3a7a112d9813 -
Trigger Event:
push
-
Statement type:
File details
Details for the file fascat-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fascat-0.1.0-py3-none-any.whl
- Upload date:
- Size: 45.3 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 |
3dd4159dc993c3223e02795abb68c388269c13ee6a0f7595995221705aa6526d
|
|
| MD5 |
1016fd4289b1b9df67d2e08f608846ba
|
|
| BLAKE2b-256 |
4a439c277ea50be392b9259a25b3a1de8f8e25b1c2d58dc06db265b9de5ad466
|
Provenance
The following attestation bundles were made for fascat-0.1.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.1.0-py3-none-any.whl -
Subject digest:
3dd4159dc993c3223e02795abb68c388269c13ee6a0f7595995221705aa6526d - Sigstore transparency entry: 1634051211
- Sigstore integration time:
-
Permalink:
pavelsimo/fascat@d7e53b0536938a25e376ab455a2c3a7a112d9813 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/pavelsimo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d7e53b0536938a25e376ab455a2c3a7a112d9813 -
Trigger Event:
push
-
Statement type: