Skip to main content

Mesh, Tools and Geometry Processing

Project description

Mouette is a small python library for handling point clouds, polylines, surface and volume meshes. It also contains various geometry processing algorithm, like shortest-paths, old-school parametrization or frame field computations.

Mouette (French for seagull) stands for Maillages, OUtils Et Traitement auTomatique de la géométriE (French for "Meshes, Tools and Geometry Processing).

Installation

Using pip: pip install mouette

Overview

Mouette allows to easily load data from various file format and access geometrical primitives

import mouette as M

mesh = M.mesh.load("path/to/my/mesh/mesh.obj")
print(mesh.vertices[0])
print(mesh.faces[2])
M.mesh.save(mesh,"path/to/export/mesh.obj")

It is possible to define any quantity

my_v_attribute = mesh.vertices.create_attribute("my_attribute", float) # an attribute storing one floating-point number per vertex
my_v_attribute[3] = 4.

my_f_attribute = mesh.faces.create_attribute("my_attribute", 2, int) # an attribute storing two integers per face
m_f_attribute[2] = [1,3]

Attributes can store booleans, integers, floating-point numbers, complex numbers and strings, using the provided python types bool, int, float, complex and str.

Run tests

python -m pytest 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

mouette-1.0.2.tar.gz (263.3 kB view details)

Uploaded Source

Built Distribution

mouette-1.0.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file mouette-1.0.2.tar.gz.

File metadata

  • Download URL: mouette-1.0.2.tar.gz
  • Upload date:
  • Size: 263.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for mouette-1.0.2.tar.gz
Algorithm Hash digest
SHA256 dfa62c16b35a9bce6559c68367c34350057296fc8f5f048c2e05fd705eb6a72a
MD5 34202c4596350b1e1a4c7532703250d7
BLAKE2b-256 1cfe8f969c27d62baa6d35c158afb2d0bda03e22f76aad4b342948bbad8b53cb

See more details on using hashes here.

File details

Details for the file mouette-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: mouette-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for mouette-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7d27eec4a799fe7c922a9c7c949c82ac5e33c4ba437343589fed9e13a6912a79
MD5 01698ec1f89deae40d4f2f2f5538425f
BLAKE2b-256 ecebaad041834c5ac3af3bbe6654c4694bfdbbe4aa6d7c340c748de8c552631a

See more details on using hashes here.

Supported by

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