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
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
File details
Details for the file mouette-1.2.2.tar.gz
.
File metadata
- Download URL: mouette-1.2.2.tar.gz
- Upload date:
- Size: 133.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bebed1c280fbd96ce85ea260427569c686969acafa5b896e99a0b53e5f330d13 |
|
MD5 | aecb7ba11da118b3f3db4dfea40782fa |
|
BLAKE2b-256 | c76d93ef9c9929e612d5a67577ac3370ce051864d0ec5ebe8c3233a71a1ccdec |
File details
Details for the file mouette-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: mouette-1.2.2-py3-none-any.whl
- Upload date:
- Size: 179.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8b8cfa57da8eb4e8b70aa88057b91955975337f6c0b582f8933945c1076c4f9 |
|
MD5 | 371472233115cf00a080218cdd5873b8 |
|
BLAKE2b-256 | 118a97e72b8d7fcef1cda73e5bd72ff4647eef9a470b655341940b0f07517643 |