KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
py3d
★ 22
Open GitHub ↗
3D simulation in Jupyter
Download README (.md)
Explore Similar Repositories
convnet_tutorials
:
Convolutional Network Tutorials (AMMI 2025)
k8s-java-debug-daemon
:
No description available.
SimpleSpider
:
A library of Spider which can simpify the code.
book-project-template
:
Template project for publishing a book in markdown
cci_exploring_machine_intelligence
:
UAL, CCI - MSc course: 19/20 "IU000128 Coding Three: Exploring Machine Intelligence"
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
py3d
?
Download (.md)
# PY3D - 3D data analysis toolkit [Code](https://github.com/Tumiz/py3d) | [Docs](https://tumiz.github.io/py3d) ## 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](https://tumiz.github.io/py3d/IO.html) * Perform rotation, translation, and scaling operations on 3D geometries. [Demos](https://tumiz.github.io/py3d/Transform.html) * Conversion among diverse rotation representations, [Demos](https://tumiz.github.io/py3d/Rotation.html) * 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 ```python import py3d pcd = py3d.read_pcd("binary.pcd") print("min", pcd.min()) print("max", pcd.max()) pcd.xyz.as_point(colormap=pcd.w) ``` 2. Visualize an image in jupyter ```python import py3d py3d.image("./20220917214012.jpg") ``` 3. Visualize images with poses in jupyter ```python import py3d py3d.render( py3d.image("797.jpg") @ py3d.Transform.from_translation([0, 100, 0]), py3d.image("971.jpg") @ py3d.Transform.from_rpy([0, 0.9, 0.2]) @ py3d.Transform.from_translation([-1000, 500, 0]) ) ``` 4. Convert euler angles to rotation matrix ```python import py3d py3d.Transform.from_euler("xyz", [0.4, -0.2, 0]) ``` 5. Visualize a 2d matrix ```python import py3d py3d.Vector([ [1,2,3], [4,5,6], [7,8,9] ]).as_image() ``` ## API reference [Vector](https://tumiz.github.io/py3d/Vector.html) [Vector3](https://tumiz.github.io/py3d/Vector3.html) [Vector4](https://tumiz.github.io/py3d/Vector4.html) [Transform](https://tumiz.github.io/py3d/Transform.html) [Rotation](https://tumiz.github.io/py3d/Rotation.html) [Color](https://tumiz.github.io/py3d/Color.html) [IO](https://tumiz.github.io/py3d/IO.html) [Top](#py3d)