a service to work with meshes
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meshparty-2.0.3.tar.gz.
File metadata
- Download URL: meshparty-2.0.3.tar.gz
- Upload date:
- Size: 83.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03bf4f6f6c953afadf7e5daec3cc0b01d929d77aed83a4d2a50797b2475413e5
|
|
| MD5 |
8ead4b9a0cb7eb169dc15d6fed3d2f14
|
|
| BLAKE2b-256 |
4ae7a1c0cd607a0ea91a46ced552f7d7dd2a0b53fbd237db52505b51e9f2c91d
|
File details
Details for the file meshparty-2.0.3-py3-none-any.whl.
File metadata
- Download URL: meshparty-2.0.3-py3-none-any.whl
- Upload date:
- Size: 104.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5340774323e81ef5378a7cb62b1019896fd98018487deede014730b5529dad5
|
|
| MD5 |
4c42c141b2ba5424255f8a45649e4d8e
|
|
| BLAKE2b-256 |
62684934ed0b1ff7df5ece74fc362f3fad4a2fb039a57eb0585d7dbec9d2511b
|