pyviz3d

PyViz3D is a Python package to visualize 3D point clouds.


License
MIT
Install
pip install pyviz3d==0.1.2

Documentation


PyViz3D is a Python package to visualize 3D point clouds.

Installation

Run this command: pip install pyviz3d

Getting started

Minimal example:

import numpy as np
import pyviz3d as viz

points = np.array([[2,0,0],[0,2,0],[0,0,2]])  # Define 3D points
colors = np.array([[255,0,0],[0,255,0],[0,0,255]])  # Define corresponding colors

viz.show_pointclouds([points], [colors])  # Display point cloud

Development

We recommend developing in a conda environment:

  • conda create --name <environment_name> python=3.7
  • conda activate <environment_name>

Distribution with PyPI [1]

  • pip install twine

To test the release without messing around with pypi release:

To upload the tested release:

  • python setup.py sdist bdist_wheel
  • twine upload dist/*

Distribution with Anaconda Cloud

We rely on Anaconda Cloud to host the pyviz3d package [2]

  • conda install anaconda-client conda-build conda-verify
  • conda config --set anaconda_upload no

Two files are required: build.sh and meta.yaml

  • conda build .

It's great to add a new release on github: https://github.com/francisengelmann/pyviz3d/releases