Skip to main content

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 a manifold3d.Manifold object.
  • from_posc_model: Converts a pythonopenscad.PoscBase object.
  • from_anchorscad_shape: Converts an anchorscad.Shape instance.
  • from_anchorscad_shape_class: Converts an anchorscad.Shape class 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 the anchorscad shape (e.g., anchorscad.examples.basic_models).
  • --shape: The name of the Shape class 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.

Download files

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

Source Distribution

anchorscad_bullet-0.1.2.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

anchorscad_bullet-0.1.2-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

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

Hashes for anchorscad_bullet-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0b369d8949f3bb005cb6f6170b871855a1a080ec5d563d16551e02a39260f59b
MD5 d7444a47c3163b4779103e035fbd4f18
BLAKE2b-256 66e814b1554260174af9330de50dedc258adbe306b3394ef038fcff953030672

See more details on using hashes here.

Provenance

The following attestation bundles were made for anchorscad_bullet-0.1.2.tar.gz:

Publisher: publish.yml on owebeeone/anchorscad-bullet

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

File details

Details for the file anchorscad_bullet-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for anchorscad_bullet-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e00ba12a2540fb76844bdc8c45500e70f52b25d90a64f740ee34c249cd2fe83f
MD5 21bc5fdb3fb5e9d5ae0cd4d5f1017243
BLAKE2b-256 f74238fa9f39100fcdc6e1a967e436d33efd4aa1e4d5a20937a3ca1dd3bbdc52

See more details on using hashes here.

Provenance

The following attestation bundles were made for anchorscad_bullet-0.1.2-py3-none-any.whl:

Publisher: publish.yml on owebeeone/anchorscad-bullet

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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

Supported by

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