Skip to content

A tool for creating mesh masks written in Python

Notifications You must be signed in to change notification settings

Kiord/mesh_masking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mesh_masking

A tool for creating vertex mesh masks written in Python

video.mp4

Usage

python mesh_masking.py <path to mesh> <path to mask> <-im to store the mask as vertex indices sequence>

example:

python mesh_masking.py meshes/mesh.obj masks/nose.npy

To save the result, quit the application by closing the window or pressing q.

Notes

This tool uses Pyvista and PyvistaQt to interactively mark vertices of a 3D mesh as masked or not. Vertex masks are useful for many applications where only a subset of a mesh is relevant.

Controls

The controls are displayed in the console when launching the application.

Key Action
Space Mark the area under the cursor as masked
Left control Unmask the area under the cursor if masked
Numpad Plus Increase selection area size
Numpad Minus Decrease selection area size

Color coding

The mesh is colored in real-time to ease the process.

Color Meaning
blue Default
red masked
green Under the cursor

Requirements

  • python 3.7+
  • pyvista
  • pyvistaqt
  • trimesh
  • numpy
  • click

About

A tool for creating mesh masks written in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages