Skip to main content

Python code for generating and working with meshes.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mymesh-0.4.0.tar.gz (6.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mymesh-0.4.0-py3-none-any.whl (275.1 kB view details)

Uploaded Python 3

File details

Details for the file mymesh-0.4.0.tar.gz.

File metadata

  • Download URL: mymesh-0.4.0.tar.gz
  • Upload date:
  • Size: 6.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mymesh-0.4.0.tar.gz
Algorithm Hash digest
SHA256 4e4314f6c8162f0dc4d839082a760dc362f4fd31333cf8eea399bece32c0c9e7
MD5 e796c96f6235ba23e7f85c5e3d5f2e6b
BLAKE2b-256 a457e6506a6b4a9fb40de112f2ef6533e4212c9089d43e30bb5dfb78ba2588f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mymesh-0.4.0.tar.gz:

Publisher: release.yml on BU-SMBL/mymesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mymesh-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: mymesh-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 275.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mymesh-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6cf0cc278a153924cb97888600cd3e5e897240f9e405c11e9016c601c1952f8a
MD5 29867451a14a2897d6ba98abc82ca3d1
BLAKE2b-256 68138c3574174ff3f6244062f4d66cbcebbe29f8974f20c1c49ab30c0b72bc5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mymesh-0.4.0-py3-none-any.whl:

Publisher: release.yml on BU-SMBL/mymesh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page