Skip to main content

pylmesh logo

pylmesh

pylmesh is a lightweight python library for importing and exporting surface mesh files in multiple formats. The library is designed in C++ with python bindings to feature high performance and loading large scale meshes.

Supported Formats

  • OBJ (Wavefront) - Import/Export
  • STL (ASCII) - Import/Export
  • PLY (ASCII) - Import/Export
  • OFF (Object File Format) - Import/Export
  • GLTF - Import/Export
  • GLB - Import/Export (with Draco compression)

Usage

Python

import pylmesh

# Load mesh
mesh = pylmesh.load_mesh("model.obj")
print(f"Vertices: {mesh.vertex_count()}")
print(f"Faces: {mesh.face_count()}")

# Compute surface area
area = mesh.surface_area()
print(f"Surface area: {area}")

# Save mesh
pylmesh.save_mesh("output.stl", mesh)

C++

#include <pylmesh/loader.h>
#include <pylmesh/exporter.h>

pylmesh::Mesh mesh;
if (pylmesh::MeshLoaderFactory::loadMesh("model.obj", mesh)) {
    // Use mesh data
    pylmesh::MeshExporterFactory::saveMesh("output.stl", mesh);
}

Installation

System Requirements

macOS:

brew install libomp

Linux (Ubuntu/Debian):

sudo apt-get install libomp-dev

Linux (Fedora/RHEL):

sudo dnf install libomp-devel

Python Package

Core functionality only (no dependencies):

pip install pylmesh

With optional features:

# Add development tools
pip install pylmesh[dev]

From source:

pip install .

C++ Library

mkdir build && cd build
cmake ..
make

Copyright (c) 2025-2026 Open Brain Institute

Metadata

Release files for pylmesh 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylmesh 0.1.3
File Size Uploaded
pylmesh-0.1.3.tar.gz 22.2 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for pylmesh 0.1.3
File Interpreter ABI Platform
pylmesh-0.1.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details
pylmesh-0.1.3-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.27+ ARM64, Linux glibc 2.28+ ARM64 Details

Total release size: 27.4 MB

Release files / pylmesh-0.1.3.tar.gz

Download URL pylmesh-0.1.3.tar.gz
Size 22.2 MB
Tags Source
SHA-256 checksum
How to use checksums
b5a5ad4801881535d7ed04014f4e203239fa1ca7baada2ed52107e23ba1b2662
BLAKE2b-256 checksum
How to use checksums
39620e2b33cd6a290cc52e18fd4eaa576860655786e82fb3576b11f6b60ce102
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / pylmesh-0.1.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL pylmesh-0.1.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 2.7 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b0cc4f7efdb7a9f58b837e2fb606418004a2aa417d0cefcfd026690d80d0adce
BLAKE2b-256 checksum
How to use checksums
a73c8b84cd483376f6c09273a757dbfd7a5d37cb9940388eb58bc70a67e81f78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / pylmesh-0.1.3-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Download URL pylmesh-0.1.3-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Size 2.5 MB
Tags CPython 3.12 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
ed4173434ae36e8e0002315cbbf273fd649b59dfb847ea2b7a637d2a6e3eaaf9
BLAKE2b-256 checksum
How to use checksums
92f9d6a9cedcaa86be643fc06c5379846a84ed36e169c8432cf2a5afaf6563f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.3 This release

3 release files

0.1.2

3 release files

0.1.1

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page