Metadata-Version: 2.4
Name: ddd-vis
Version: 0.1.0
Summary: Simple 3D visualisation library
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: numpy>=2.5.3
Requires-Dist: opencv-python>=5.0.0.93
Requires-Dist: scipy>=1.18.1

# ddd (3D!)
Super simple 3D visual tool for viewing 3D points on 2D image.

## Example

```python
import cv2
import numpy as np

from python_input import Input

from ddd import Camera, Scene, Material


path = np.zeros((100, 3), dtype=np.float32)
path[:, 2] = np.arange(0, 100, 1)

camera = Camera(1920, 1200, 2648.0)
camera.pos[0] = -3
camera.pos[1] = 2
scene = Scene(camera)
scene.add_points(path, Material((0, 255, 0), 2))
scene.add_line(path, Material((0, 0, 255), 1))

inp = Input()

image = scene.render()
cv2.imshow("Image", image)
cv2.waitKey(0)
```
