Python 3D libraries

Updated Nov 2026

Python 3D libraries load, edit, and render meshes, point clouds, and CAD models. A CAD kernel builds solids from exact curves and surfaces rather than from triangle approximations. These libraries let engineering tools, robotics pipelines, and scientific apps process 3D geometry in code.

Popularity

Trimesh has the most monthly downloads in this comparison, at 14.0M.

LibraryMonthly downloadsStarsLast releaseLicense
Trimesh
14.5M
3.7KNov 2026MIT
VTK
6.1M
3.2KNov 2026BSD-3-Clause
cadquery-ocp
4.2M
216Oct 2026Apache-2.0
Manifold
4.0M
2.4KNov 2026Apache-2.0
CadQuery
3.0M
6.1KJun 2026Apache-2.0
Open3D
2.3M
14.2KSep 2026MIT
PyVista
2.1M
3.9KOct 2026MIT
bpy
2.0M
22.2KNov 2026GPL-3.0
Downloads: PyPI, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Libraries and code examples

Loads and analyzes triangle meshes, with an emphasis on watertight surfaces.

Downloads / mo
14.5M
Stars
3.7K
Last release
5.2.1
License
MIT

Strengths

  • Computes properties of closed meshes. Compute mass properties for closed meshes with a uniform density.
  • Preserves instances when loading scenes. Use load_scene when meshes or repeated instances must stay separate.

Limitations

  • Simplification needs fast-simplification. Install fast-simplification before using simplify_quadric_decimation.
  • Mass properties need closed meshes. Treat volume and mass properties as unreliable for open triangle surfaces.

Quickstart

From README.md
$ python3.13 -m pip install trimesh==5.2.1
import trimesh

mesh = trimesh.creation.box(extents=(1.0, 2.0, 3.0))
print(mesh.volume)

Trimesh examples

From open-source projects on GitHub

Provides an open-source toolkit for 3D graphics, image processing, and visualization.

Downloads / mo
6.1M
Stars
3.2K
Last release
9.7.2
License
BSD-3-Clause
$ python3.13 -m pip install vtk==9.7.2
from vtkmodules.vtkFiltersSources import vtkSphereSource

source = vtkSphereSource()
source.Update()
mesh = source.GetOutput()
print(mesh.GetNumberOfPoints())

cadquery-ocp

Wraps the Open CASCADE 3D geometry library for Python.

Downloads / mo
4.2M
Stars
216
Last release
8.0.1.1.0
License
Apache-2.0
$ python3.13 -m pip install cadquery-ocp==8.0.1.1.0
from OCP.BRepPrimAPI import BRepPrimAPI_MakeBox

shape = BRepPrimAPI_MakeBox(1.0, 2.0, 3.0).Shape()

Keeps mesh operations geometrically valid.

Downloads / mo
4.0M
Stars
2.4K
Last release
3.5.5
License
Apache-2.0

Quickstart

From README.md
$ python3.13 -m pip install manifold3d==3.5.5
from manifold3d import Manifold

solid = Manifold.cube((1.0, 2.0, 3.0))
mesh = solid.to_mesh()

Manifold examples

From open-source projects on GitHub

Creates and traverses parametric CAD models from Python scripts.

Downloads / mo
3.0M
Stars
6.1K
Last release
2.8.0
License
Apache-2.0

Quickstart

From quickstart.html
$ python3.13 -m pip install cadquery==2.8.0
from cadquery import Workplane

part = Workplane("XY").box(1.0, 2.0, 3.0)

CadQuery examples

From open-source projects on GitHub

Provides Python geometry structures and algorithms for point clouds, meshes, reconstruction, and visualization.

Downloads / mo
2.3M
Stars
14.2K
Last release
0.20.0
License
MIT

Strengths

  • Builds surfaces from point clouds. Reconstruct triangle meshes with ball pivoting or Poisson methods.
  • Combines geometry and interactive views. Inspect geometry with mouse-controlled rotation, translation, and scaling.

Limitations

  • Poisson reconstruction needs point normals. Supply point normals before running Poisson surface reconstruction.
  • Poisson reconstruction can extrapolate. Remove low-density regions when reconstruction adds surfaces beyond observed points.
$ python3.13 -m pip install open3d==0.20.0
import numpy as np
import open3d as o3d

cloud = o3d.geometry.PointCloud()
cloud.points = o3d.utility.Vector3dVector(
    np.array([[0, 0, 0], [1, 0, 0], [0, 1, 0]], dtype=np.float64)
)
bounds = cloud.get_axis_aligned_bounding_box()
print(bounds)

Open3D examples

From open-source projects on GitHub

Provides dataset structures, mesh filters, and plotting for points, surfaces, and volumes.

Downloads / mo
2.1M
Stars
3.9K
Last release
0.49.2
License
MIT

Strengths

  • Renders volume datasets. Render image grids and unstructured volume data with add_volume.
  • Reduces triangle counts. Use decimate to reduce a triangular mesh’s face count.

Limitations

  • Decimation targets triangular surfaces. Triangulate polygonal surfaces before calling decimate.
  • Decimation needs attribute settings. Set enable_all_attribute_error when simplification must account for data arrays.

Quickstart

From create_tri_surface.py
$ python3.13 -m pip install pyvista==0.49.2
import pyvista as pv

mesh = pv.Sphere(radius=1.0)
print(mesh.n_points)

PyVista examples

From open-source projects on GitHub

Runs Blender as a Python module.

Downloads / mo
2.0M
Stars
22.2K
Last release
5.3.0
License
GPL-3.0

Quickstart

From bpy.ops.mesh.html
$ python3.13 -m pip install bpy==5.3.0
import bpy

bpy.ops.mesh.primitive_cube_add(size=1.0, location=(0.0, 0.0, 0.0))

bpy examples

From open-source projects on GitHub

FAQ

Trimesh suits loading and analyzing triangle meshes. Open3D suits point clouds and surface reconstruction. CadQuery suits parametric CAD models built in code.

CadQuery is a parametric scripting language for creating and traversing CAD models in Python. It builds on the Open CASCADE geometry kernel through cadquery-ocp.

Open3D is a library for point clouds, meshes, and surface reconstruction. It includes geometry algorithms and an interactive visualizer.

bpy is Blender packaged as a Python module. Scripts can build scenes, edit meshes, and render without opening the Blender interface.

PyVista wraps VTK with dataset structures, mesh filters, and plotting for points, surfaces, and volumes.

Trimesh loads and analyzes triangle meshes, with an emphasis on watertight surfaces. It computes properties such as volume and checks meshes for intersections.

For coding agents

Found your 3D library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official