AnchorSCAD to PyBullet mesh converter.
Project description
anchorscad-bullet
This library provides tools to convert anchorscad and pythonopenscad models into pybullet objects for physics simulation.
Modules
render_bullet.py
This module is the core converter. It takes models from anchorscad or pythonopenscad and converts them into a format that can be used with pybullet.
Key conversion functions in the APModel class:
from_manifold: Converts amanifold3d.Manifoldobject.from_posc_model: Converts apythonopenscad.PoscBaseobject.from_anchorscad_shape: Converts ananchorscad.Shapeinstance.from_anchorscad_shape_class: Converts ananchorscad.Shapeclass by using one of its examples.
pybullet_viewer.py
This module provides a simple viewer to display and simulate the converted models using pybullet. It can be run as a script to view specific models.
Usage
You can run the viewer from the command line to display a model from a specific module.
python -m anchorscad_bullet.pybullet_viewer --module <module_name> --shape <shape_class_name> [options]
Arguments:
--module: The Python module containing theanchorscadshape (e.g.,anchorscad.examples.basic_models).--shape: The name of theShapeclass to render.--example: The name of the example to use for the shape class (default:default).--part: The name of the part to render.--material: The name of the material to render.--physical: Whether to render the physical or non-physical version of the part.
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 anchorscad_bullet-0.1.2.tar.gz.
File metadata
- Download URL: anchorscad_bullet-0.1.2.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b369d8949f3bb005cb6f6170b871855a1a080ec5d563d16551e02a39260f59b
|
|
| MD5 |
d7444a47c3163b4779103e035fbd4f18
|
|
| BLAKE2b-256 |
66e814b1554260174af9330de50dedc258adbe306b3394ef038fcff953030672
|
Provenance
The following attestation bundles were made for anchorscad_bullet-0.1.2.tar.gz:
Publisher:
publish.yml on owebeeone/anchorscad-bullet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
anchorscad_bullet-0.1.2.tar.gz -
Subject digest:
0b369d8949f3bb005cb6f6170b871855a1a080ec5d563d16551e02a39260f59b - Sigstore transparency entry: 251151204
- Sigstore integration time:
-
Permalink:
owebeeone/anchorscad-bullet@6e39fd03aa318aaf6fc5fad74e1e47fdde9497ac -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/owebeeone
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6e39fd03aa318aaf6fc5fad74e1e47fdde9497ac -
Trigger Event:
release
-
Statement type:
File details
Details for the file anchorscad_bullet-0.1.2-py3-none-any.whl.
File metadata
- Download URL: anchorscad_bullet-0.1.2-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e00ba12a2540fb76844bdc8c45500e70f52b25d90a64f740ee34c249cd2fe83f
|
|
| MD5 |
21bc5fdb3fb5e9d5ae0cd4d5f1017243
|
|
| BLAKE2b-256 |
f74238fa9f39100fcdc6e1a967e436d33efd4aa1e4d5a20937a3ca1dd3bbdc52
|
Provenance
The following attestation bundles were made for anchorscad_bullet-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on owebeeone/anchorscad-bullet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
anchorscad_bullet-0.1.2-py3-none-any.whl -
Subject digest:
e00ba12a2540fb76844bdc8c45500e70f52b25d90a64f740ee34c249cd2fe83f - Sigstore transparency entry: 251151209
- Sigstore integration time:
-
Permalink:
owebeeone/anchorscad-bullet@6e39fd03aa318aaf6fc5fad74e1e47fdde9497ac -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/owebeeone
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6e39fd03aa318aaf6fc5fad74e1e47fdde9497ac -
Trigger Event:
release
-
Statement type: