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 and Export made simple

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")

Define quantities over meshes and work with it

It is possible to define any quantity on mesh elements

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.

Call Geometry Processing Algorithms

ff = M.processing.framefield.FrameField2DVertices(mesh)
ff.run()
ffmesh = ff.export_as_mesh()
M.mesh.save(ffmesh, "framefield.mesh")

And much more

See full documentation at https://gcoiffier.github.io/mouette/ (still a Work in Progress)

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.1.5.tar.gz (893.0 kB view details)

Uploaded Source

Built Distribution

mouette-1.1.5-py3-none-any.whl (152.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mouette-1.1.5.tar.gz
Algorithm Hash digest
SHA256 4202711fa1b8333032399e8e1a4547ca53968f07e70f6faade0f54d04bd19ccb
MD5 bb85e9d2e1582e2677504cb4d3c53014
BLAKE2b-256 2e40c79791531dcb3aa5174744660e81e5134db416df657d77bae98a4dace851

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mouette-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fde564b2d2a2c72f6f500d6dc37e0a4577a0370d461a65a757abf699121328ee
MD5 2d97fbb9faaf87bb5eb73e7657c618a5
BLAKE2b-256 999365b6031ff613e750096a4c70ee13706de6cccf93feee5afad6cc3c4087b0

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