Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Casting dataset

Parametric CAD generators for synthetic cast-iron casting datasets.

http://147.32.173.190:9011/

Generate Assets

The generator creates the representative category models described in docs/categories/. Outputs use catalog IDs such as brake_discs-001 and threaded_pipe_fittings-001.

CadQuery currently supports Python 3.10-3.12 best. From a compatible environment:

python -m pip install -r requirements.txt

Generate all STEP files, GLB meshes, section images, metadata, and generated/index.json:

.venv/bin/python src/categories/generate.py

Brake-disc-only wrapper:

.venv/bin/python src/categories/brake_discs/generate_brake_discs_assets.py

Threaded-pipe-fitting-only wrapper:

.venv/bin/python src/categories/threaded_pipe_fittings/generate_threaded_pipe_fittings_assets.py

Generate only STEP files plus metadata/index:

.venv/bin/python src/categories/generate.py --only-steps

Generate only category brake_discs:

.venv/bin/python src/categories/generate.py --only-category brake_discs

Generate only category threaded_pipe_fittings:

.venv/bin/python src/categories/generate.py --only-category threaded_pipe_fittings

Generate only one model:

.venv/bin/python src/categories/generate.py --only-model brake_discs-003

Generate only STEP for one model:

.venv/bin/python src/categories/generate.py --only-steps --only-model brake_discs-003

Skip index rebuilding during generation:

.venv/bin/python src/categories/generate.py --only-model brake_discs-003 --no-index

Rebuild generated/index.json from all metadata files:

.venv/bin/python src/categories/reindex.py

This also writes generated/index.csv for spreadsheet import.

Upload Assets

The uploader ships the flat browser asset layout to an S3-compatible bucket:

index.json
index.csv
metadata/brake_discs-001.json
mesh/brake_discs-001.glb
sections/brake_discs-001-x.png
step/brake_discs-001.step

It reads bucket credentials from .env. Required keys:

ACCESS_KEY = ...
SECRET_KEY = ...
ENDPOINT = ...
BUCKET = ...

Preview the upload plan without sending files:

.venv/bin/python -m uploader.upload_generated --dry-run

Upload the generated assets. Objects are uploaded with public-read ACL by default, and the uploader configures bucket CORS for the static browser:

.venv/bin/python -m uploader.upload_generated

For the current CESNET-style tenant bucket, the remote browser bucket URL has this shape:

https://s3.cl4.du.cesnet.cz/<TENANT>:<BUCKET>

Run the browser against uploaded S3 files through the local same-origin proxy:

.venv/bin/python browser/run.py --host 0.0.0.0 --port 9011 --bucket-url https://s3.cl4.du.cesnet.cz/<TENANT>:<BUCKET>

See uploader/README.md and browser/README.md for more details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages