Skip to main content

py3d is a pure and lightweight python library of 3d data structures and functions, which can deal with points, lines, planes and 3d meshes in batches, and also visualize them. All the actions can be done in a jupyter notebook.

Project description

PY3D - 3D data analysis toolkit

Code | Docs

What is it?

py3d is a pure and lightweight Python library dedicated to 3D data structures and functions. It enables batch processing of 3D points, lines, planes, and 3D meshes. Moreover, it provides interactive visualization capabilities for these elements. It is advisable to use it in Jupyter for visualization purposes.

Main features

  • Supports the reading, writing, and visualization of multiple 3D data formats such as the popular PLY, NPY, CSV, PCD, and OBJ. Demos
  • Perform rotation, translation, and scaling operations on 3D geometries. Demos
  • Conversion among diverse rotation representations, Demos
    • Rotation matrix
    • Angle - axis
    • Quaternion
    • Euler angle
    • Rotation vector

How to install it?

pip install py3d

How to use it?

Here are some small examples:

  1. Visualize a pcd file in jupyter
import py3d
pcd = py3d.read_pcd("binary.pcd")
print("min", pcd.min())
print("max", pcd.max())
pcd.xyz.as_point(colormap=pcd.w)
  1. Visualize an image in jupyter
import py3d
py3d.read_img("./20220917214012.jpg").as_image()
  1. Convert euler angles to rotation matrix
import py3d
py3d.Transform.from_euler("xyz", [0.4, -0.2, 0])

API reference

Vector Vector3 Vector4 Transform Rotation Color IO

Top

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

py3d-0.1.87.tar.gz (34.6 kB view details)

Uploaded Source

Built Distribution

py3d-0.1.87-py3-none-any.whl (33.9 kB view details)

Uploaded Python 3

File details

Details for the file py3d-0.1.87.tar.gz.

File metadata

  • Download URL: py3d-0.1.87.tar.gz
  • Upload date:
  • Size: 34.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for py3d-0.1.87.tar.gz
Algorithm Hash digest
SHA256 ef620d2849b9ab371905f5d1945b59b95fca1aa258f6ea2971215ff44aadf12f
MD5 b57d658ec5b71ea8244216528bc181aa
BLAKE2b-256 5d8719bfd963db757a57e6649a578ceaab8685d0a3b5a1163d2e8b583d4f7f6e

See more details on using hashes here.

File details

Details for the file py3d-0.1.87-py3-none-any.whl.

File metadata

  • Download URL: py3d-0.1.87-py3-none-any.whl
  • Upload date:
  • Size: 33.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for py3d-0.1.87-py3-none-any.whl
Algorithm Hash digest
SHA256 f53e12c5b4975a8ad5803f220535053e24cc3d82f42f308ed87793c730a0541d
MD5 8ec02fab8a21f448dd2e95fd57342331
BLAKE2b-256 43019087834302c59b244ffc76a70062bb1441caab76303ec377ca9d9ce3788a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page