MyMesh: General purpose, implicit, and image-based meshing in Python

MyMesh: General purpose, implicit, and image-based meshing in Python - Published in JOSS (2026)

https://github.com/bu-smbl/mymesh

Science Score: 94.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in JOSS metadata
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    1 of 2 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software
Last synced: 2 days ago · JSON representation ·

Repository

General purpose, implicit, and image-based meshing in python

Basic Info
Statistics
  • Stars: 9
  • Watchers: 1
  • Forks: 1
  • Open Issues: 2
  • Releases: 5
Created over 3 years ago · Last pushed 5 days ago
Metadata Files
Readme Contributing License Code of conduct Citation

README.md

PyPI - Version Static Badge

A mesh is a discrete representation of a geometry or computational domain where space is subdivided it into a collection of points (nodes) connected by simple shapes (elements). Meshes are used for a variety of purposes, including simulations (e.g. finite element, finite volume, and finite difference methods), visualization & computer graphics, image analysis, and additive manufacturing. mymesh is a general purpose set of tools for generating, manipulating, and analyzing meshes. mymesh is particularly focused on implicit function and image-based meshing, with other functionality including:

  • geometric and curvature analysis,
  • intersection and inclusion tests (e.g. ray-surface intersection and point-in-surface tests)
  • mesh boolean operations (intersection, union, difference),
  • sweep construction methods (extrusions, revolutions),
  • point set, mesh, and image registration,
  • mesh quality evaluation and improvement,
  • mesh type conversion (e.g. volume to surface, hexahedral or mixed-element to tetrahedral, first-order elements to second-order elements).

mymesh was originally developed in support of research within the Skeletal Mechanobiology and Biomechanics Lab at Boston University.

Getting Started

For more details, see the full documentation

Installing from the Python Package Index (PyPI)

pip install mymesh[all]

To install only the minimum required dependencies, omit [all].

Installing from source:

Download/clone the repository, then run pip install -e <path>/mymesh with <path> replaced with the file path to the mymesh root directory.

Development

Note on the usage of generative AI

MyMesh was and will continue to be developed by humans. Initial development of MyMesh began in the summer of 2021, before the release of OpenAI's ChatGPT (Nov. 30, 2022) and the widespread proliferation of powerful generative AI chatbots. Since the release of ChatGPT, Claude (Anthropic), Gemini (Google), and others, I have at times explored their capabilities by asking them meshing questions, receiving a mix of helpful and unhelpful responses. While generative AI was never used to generate the code for MyMesh, it was in some instances consulted alongside other resources (e.g. StackExchange) for recommendations on how to improve efficiency of certain processes. Generative AI has been used in the following ways throughout the development of MyMesh: - As a consultant for understanding concepts, alongside academic literature. - As a resource for general-purpose programming concepts, such as methods for improving efficiency of certain operations. - Assistance in setting up packaging infrastructure (e.g. pyproject.toml, github workflows). - Assistance in the creation of test cases for some unit tests.

Owner

  • Name: BU-SMBL
  • Login: BU-SMBL
  • Kind: organization

JOSS Publication

MyMesh: General purpose, implicit, and image-based meshing in Python
Published
June 01, 2026
Volume 11, Issue 122, Page 10003
Authors
Timothy O. Josephson ORCID
Department of Biomedical Engineering, Boston University, United States, Center for Multiscale and Translational Mechanobiology, Boston University, United States
Elise F. Morgan ORCID
Department of Biomedical Engineering, Boston University, United States, Center for Multiscale and Translational Mechanobiology, Boston University, United States, Department of Mechanical Engineering, Boston University, United States
Editor
Richard Littauer ORCID
Tags
mesh finite element computational geometry

Citation (CITATION.cff)

cff-version: 1.2.0
title: "MyMesh: General purpose, implicit, and image-based meshing in python"
license: "MIT"
type: software
abstract: "MyMesh is a general purpose toolbox for generating, manipulating, and analyzing meshes. It's particularly focused on implicit function and image-based meshing, with other functionality including: Mesh type conversion (e.g. volume to surface, hexahedral or mixed-element to tetrahedral); Mesh quality evaluation and improvement; Mesh curvature analysis; Image-to-image, mesh-to-mesh, and mesh-to-image registration; Mesh boolean operations (intersection, union, difference)."
message: "If you use this software, please cite it using these metadata"
authors:
  - given-names: Timothy
    family-names: Josephson
    affiliation: Boston University
    orcid: "https://orcid.org/0000-0003-2703-6487"
keywords:
  - mesh
  - computational geometry
  - finite element
  - finite volume
  - 3D printing
  - biomechanics

GitHub Events

Total
  • Release event: 10
  • Delete event: 5
  • Fork event: 1
  • Issues event: 1
  • Watch event: 8
  • Issue comment event: 1
  • Public event: 1
  • Push event: 298
  • Create event: 15
Last Year
  • Release event: 2
  • Fork event: 1
  • Issues event: 1
  • Watch event: 1
  • Issue comment event: 1
  • Push event: 101
  • Create event: 4

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 682
  • Total Committers: 2
  • Avg Commits per committer: 341.0
  • Development Distribution Score (DDS): 0.001
Past Year
  • Commits: 324
  • Committers: 1
  • Avg Commits per committer: 324.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
TimJosephson t****j@b****u 681
TimJosephson t****j@i****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 2 months ago

All Time
  • Total issues: 4
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 1 minute
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 4
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • jorgensd (4)
Pull Request Authors
  • TimJosephson (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 43 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 6
  • Total maintainers: 1
pypi.org: mymesh

Python code for generating and working with meshes.

  • Documentation: https://bu-smbl.github.io/mymesh/
  • License: MIT License Copyright (c) 2024 Timothy O. Josephson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 0.4.0
    published about 1 month ago
  • Versions: 6
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 43 Last month
Rankings
Dependent packages count: 10.0%
Stargazers count: 20.6%
Average: 29.7%
Forks count: 31.9%
Dependent repos count: 56.2%
Maintainers (1)
toj
Last synced: about 1 month ago

Dependencies

pyproject.toml pypi
  • importlib-metadata python_version<"3.8"
  • numpy >=1.20.0
  • scipy >=1.10.0
  • sympy >=1.11
.github/workflows/documentation.yml actions
  • actions/checkout v4 composite
  • conda-incubator/setup-miniconda v3 composite
  • peaceiris/actions-gh-pages v3 composite
.github/workflows/release.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
  • pypa/gh-action-pypi-publish release/v1 composite