Skip to main content

convert CAD data into realtime-ready OpenUSD, glTF, OBJ, STL, and FBX assets

Project description

fascat

release license MIT Python PyPI DeepWiki

Fascat is a Python library and CLI for converting CAD data into RT3D assets.

flowchart TD
    A["STEP / IGES / BREP 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

# 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 CAD assembly before conversion
fascat convert input.step [output.usdc] Convert STEP, IGES, or BREP 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

asset = fc.read_step("motor.step")          # or read_iges(...) / read_brep(...)

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))).

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.4.0.tar.gz (3.1 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.4.0-py3-none-any.whl (360.5 kB view details)

Uploaded Python 3

File details

Details for the file fascat-0.4.0.tar.gz.

File metadata

  • Download URL: fascat-0.4.0.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fascat-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b2b72de8eb1a147aec4e54d9434f842beebc1b51ce95ac501c40948be2db7366
MD5 30ce03dc91e73eadecddf8c0d59d97a5
BLAKE2b-256 d2ab7f78c4997952bd7e88daa1f4ed8c472138fa017e7d2567fc7e6e8d20499e

See more details on using hashes here.

Provenance

The following attestation bundles were made for fascat-0.4.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.4.0-py3-none-any.whl.

File metadata

  • Download URL: fascat-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 360.5 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac8d8cbe66e45c86743cc9e4543b3e740de0094d1e7543a6e804d2ff0450206b
MD5 4e116f9084f25030e674586484f35e30
BLAKE2b-256 52b0301b171ddc06c398fb7e1f32b5855c954ace91007bc6362af00c7c2120ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for fascat-0.4.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