Skip to main content

Interactive canvas for editing 3D geometry, using matplotlib.pyplot

Project description

xyz_canvas

Interactive canvas for editing 3D geometry, using matplotlib.pyplot

Current classes: In xyz_canvas.gui:

  • xyz_mouse: uses specified callbacks on mouse (left) click and on mouse move to return 3D co-ordinates
  • xyz_lines: adds lines to a collection of lines with sequentially specified end points

I'm thinking of adding xyz_canvas.transforms

  • rotatations
  • translations
  • sheers etc xyz_canvas.utils ....

Installation

Install with pip:

pip install xyz_canvas

Demo Screenshot

The file demo.py currently allows you to add lines to the canvas by clicking end points sequentially. The callback function then has access to the lines collection. At the moment, no markers precede line generation but that's my next step, as well as adding delete, move, attach, snap to grid, snap to object methods.

The XYZ co-ordinates all snap to the nearest backplane (XY, XZ, YZ) but I will add ways to put the lines into arbitrary locations.

Capture

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

xyz_canvas-0.1.3.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

xyz_canvas-0.1.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file xyz_canvas-0.1.3.tar.gz.

File metadata

  • Download URL: xyz_canvas-0.1.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for xyz_canvas-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a60f1eb428860bf4f8ac6186bad9f05a2b125d5fb7bb154af81b07578ad19647
MD5 ed36ee2fbb2bc688c0bb303702f7c23a
BLAKE2b-256 3d12b6404939a75944a0dfb63e34282eb4877e871f48c7c7d5d737659350257f

See more details on using hashes here.

File details

Details for the file xyz_canvas-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: xyz_canvas-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for xyz_canvas-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6d02eb3bd5d3bda32a787972b8b95cbd0709155e0bc60ce36c6b51313d3dba67
MD5 c360b1690569773f11d1cfbaae87009e
BLAKE2b-256 3212b01ce7fef362139c5eee16ccd6cca563a5364a33e7c12201593677c2ff48

See more details on using hashes here.

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