Skip to main content
Documentation Status https://travis-ci.com/sdorkenw/MeshParty.svg?branch=master https://codecov.io/gh/sdorkenw/MeshParty/branch/master/graph/badge.svg https://zenodo.org/badge/148393516.svg

MeshParty

A package to work with meshes, designed around use cases for analyzing neuronal morphology.

documentation https://meshparty.readthedocs.io/


From pypi:

pip install meshparty

Note: Version 2.0.0 or higher requires Python 3.10 or higher and offers reduced features for mesh analysis and visualization. Projects like pyvista are now easier and more powerful for work that was previously done in MeshParty. This package is still intended to be used for the Skeleton and MeshWork classes, but with reduced support for mesh analysis.

To install the git version do:

git clone https://github.com/sdorkenw/MeshParty.git
cd MeshParty
pip install . --upgrade

to make optional features of ray tracing and interaction with the PyChunkedGraph work properly you need to install the optional dependencies

conda install pyembree
pip install caveclient

Usage example

from meshparty import trimesh_io

meshmeta = trimesh_io.MeshMeta()
mesh = meshmeta.mesh(path_to_mesh) # mesh gets cached

local_vertices = mesh.get_local_view(n_points, pc_align=True, method="kdtree")

Downloading meshes

Meshes can be downloaded in parallel using

trimesh_io.download_meshes(seg_ids, target_dir, cv_path)

where cv_path points to the cloudvolume bucket. For downloading proofread meshes one needs to specify the mesh_endpoint of the chunkedgraph server:

trimesh_io.download_meshes(seg_ids, target_dir, cv_path, mesh_endpoint="https://...")

Extracting mesh information

The mesh needs to be watertight In order to compute reliable information. To test whether a mesh is watertight, run

mesh.is_watertight

Since trimesh_io.Mesh() inherits from trimesh.Trimesh all trimesh functionality is available to mesh, e.g.:

mesh.volume
mesh.area
mesh.center_mass

Release files for meshparty 2.0.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 meshparty 2.0.3
File Size Uploaded
meshparty-2.0.3.tar.gz 83.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for meshparty 2.0.3
File Interpreter ABI Platform
meshparty-2.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 83.3 MB

Release files / meshparty-2.0.3.tar.gz

Download URL meshparty-2.0.3.tar.gz
Size 83.1 MB
Tags Source
SHA-256 checksum
How to use checksums
03bf4f6f6c953afadf7e5daec3cc0b01d929d77aed83a4d2a50797b2475413e5
BLAKE2b-256 checksum
How to use checksums
4ae7a1c0cd607a0ea91a46ced552f7d7dd2a0b53fbd237db52505b51e9f2c91d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.15

Release files / meshparty-2.0.3-py3-none-any.whl

Download URL meshparty-2.0.3-py3-none-any.whl
Size 104.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5340774323e81ef5378a7cb62b1019896fd98018487deede014730b5529dad5
BLAKE2b-256 checksum
How to use checksums
62684934ed0b1ff7df5ece74fc362f3fad4a2fb039a57eb0585d7dbec9d2511b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.15

Release history Release notifications | RSS feed

This release

2.0.3 This release

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.18.3

2 release files

1.18.2

1 release file

1.18.0

1 release file

1.17.0

1 release file

1.16.14

1 release file

1.16.13

1 release file

1.16.12

1 release file

1.16.11

1 release file

1.16.9

1 release file

1.16.8

1 release file

1.16.7

1 release file

1.16.6

1 release file

1.16.5

1 release file

1.16.4

1 release file

1.16.3

1 release file

1.16.2

1 release file

1.16.1

1 release file

1.16.0

1 release file

1.15.0

1 release file

1.14.0

1 release file

1.13.2

1 release file

1.13.1

1 release file

1.12.0

1 release file

1.11.0

1 release file

1.10.2

1 release file

1.10.1

1 release file

1.10.0

1 release file

1.8.0

1 release file

1.7.2

1 release file

1.7.1

1 release file

1.7.0

1 release file

1.6.0

1 release file

1.5.0

1 release file

1.4.3

1 release file

1.4.1

1 release file

1.4.0

1 release file

1.3.0

1 release file

1.2.0

1 release file

0.3.4

1 release file

0.2.4

1 release file

0.2.2

2 release files

0.2.1

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