daavoo /
pyntcloud
pyntcloud is a Python library for working with 3D point clouds.
88/100 healthLoading repository data…
moxilang / repository
A Python library for making voxel and 3D mesh models from images and arrays
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Simple to start, modular when you need more.
Minimal core (NumPy + Matplotlib only):
pip install voxelmap
Optional extras:
pip install voxelmap[io] # for I/O helpers (pandas, txt/obj conversions)
pip install voxelmap[mesh] # for meshing (scipy, scikit-image, pyvista)
pip install voxelmap[all] # everything
We recommend using a virtual environment:
python -m venv venv
source venv/bin/activate
pip install voxelmap
Deactivate with:
deactivate
import numpy as np
from voxelmap import Model
# Simple 3×3×3 cube
array = np.ones((3, 3, 3))
model = Model(array)
model.set_color(1, "red") # assign color
model.draw_mpl(coloring="custom") # static Matplotlib 3D plot
➡️ Produces a solid red cube in a Matplotlib 3D plot.
(Works with the minimal install, no extras required.)
For full trackball-style zoom, pan, and rotate, install with:
pip install voxelmap[mesh]
Then:
import numpy as np
from voxelmap import Model
array = np.ones((3, 3, 3)) # same cube
model = Model(array)
model.set_color(1, "red")
# Interactive PyVista window
model.draw(coloring="custom")
➡️ Opens an interactive window:
import numpy as np
from voxelmap import Model
array = np.indices((3, 3, 3)).sum(axis=0) % 2 + 1
model = Model(array)
model.palette = {1: "black", 2: "white"}
model.draw_mpl(coloring="custom")
➡️ Produces a black/white checkerboard cube.
import numpy as np
from voxelmap import Model
from matplotlib import cm
array = np.ones((10, 3, 3)) # tall column
model = Model(array)
model.colormap = cm.viridis
model.alphacm = 0.9
model.draw_mpl(coloring="linear")
➡️ Produces a column shaded with a viridis vertical gradient.
You can export voxel arrays as geometry + materials with MarchingMesh, then reload them in MeshView for different visualization styles.
import numpy as np
from voxelmap import Model
from voxelmap.mesh import MarchingMesh, MeshView
arr = np.zeros((5, 5, 5))
arr[1:4, 1:4, 1:4] = 1 # cube
arr[2:3, 2:3, 4] = 2 # red voxel
m = Model(arr)
m.set_color(1, "gray") # cube body
m.set_color(2, "red") # highlight
# Export OBJ+MTL
MarchingMesh(m.array, palette=m.palette, out_file="cube.obj")
# 1. Solid (palette only)
MeshView("cube.obj", palette=m.palette, mode="solid")
# 2. Wireframe only (green edges)
MeshView("cube.obj", mode="wireframe", wireframe_color="green")
# 3. Both solid + edges
MeshView("cube.obj", palette=m.palette, mode="both", wireframe_color="magenta")
# 4. Flat fill (single color, ignore palette)
MeshView("cube.obj", mode="flat", flat_color="orange")
➡️ Modes available:
paletteYou can also set:
background_color="black" (hex or named color)background_image="starfield.png" (PNG/JPEG)wireframe_color="cyan"Full usage and advanced examples can be found here: 👉 VoxelMap Documentation
This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the MIT LICENSE.
MIT license © 2022–present Andrew Garcia
Selected from shared topics, language and repository description—not editorial ratings.
daavoo /
pyntcloud is a Python library for working with 3D point clouds.
88/100 healthsinanislekdemir /
Payton! Kickstart any 3D OpenGL + GTK Ideas in a few seconds!
81/100 healthmfdeveloper /
Import a point cloud file and perform poisson 3D surface reconstruction algorithm, integrated with third-party libraries (e.g. open3d, pymeshlab...)
TechnoTanuki /
A pure Python 2D/3D graphics library that outputs to windows bitmap format
55/100 healthpronoobe /
This project is a 3D graphics rendering library for the micropython microcontroller, implemented in MicroPython. It allows users to render simple 3D graphics on an OLED display, including point and wireframe rendering, as well as camera viewpoint control.
55/100 healthLincoln-Murray /
A small 3d graphics library/module for python
46/100 health