Skip to main content

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.

release license MIT Python PyPI Homebrew DeepWiki

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fascat-0.1.0.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fascat-0.1.0-py3-none-any.whl (45.3 kB view details)

Uploaded Python 3

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

Hashes for fascat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4939211ad062ee7ecbd9942f1368eacc7f1259d2ec6fa0c58f100756fe0dc423
MD5 bfa7c04123e951936bac02ec59759f6c
BLAKE2b-256 0b6135d95c3b16828f84d86854efc1c821103a6b89cbab7d3706625c5d6ba393

See more details on using hashes here.

Provenance

The following attestation bundles were made for fascat-0.1.0.tar.gz:

Publisher: release.yml on pavelsimo/fascat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for fascat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3dd4159dc993c3223e02795abb68c388269c13ee6a0f7595995221705aa6526d
MD5 1016fd4289b1b9df67d2e08f608846ba
BLAKE2b-256 4a439c277ea50be392b9259a25b3a1de8f8e25b1c2d58dc06db265b9de5ad466

See more details on using hashes here.

Provenance

The following attestation bundles were made for fascat-0.1.0-py3-none-any.whl:

Publisher: release.yml on pavelsimo/fascat

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page