manyfold3d / mittsu-mesh_analysis

Mesh analysis for Mittsu

Repository from Github https://github.commanyfold3d/mittsu-mesh_analysisRepository from Github https://github.commanyfold3d/mittsu-mesh_analysis

Mittsu: Mesh Analysis

GitHub Actions Workflow Status Maintainability Test Coverage Libraries.io dependency status for latest release

GitHub Release Gem Downloads (for latest version) Dependent repos (via libraries.io)

Mesh analysis methods for Mittsu.

Adds three methods:

  • Mittsu::Object3D#manifold?: Detects if a mesh is a single valid surface; i.e. it has no holes, and faces are consistently oriented.
  • Mittsu::Object3D#solid?: Detects if the faces of a manifold mesh are correctly oriented, giving the mesh a sensible inside and outside.
  • Mittsu::Face3#flip!: Flips the vertex order, and thus orientation of a particular face.

Requirements

Ruby 3.1 or above, otherwise the same as for Mittsu itself.

Usage

Just install:

bundle add mittsu-mesh_analysis

Then require in your code:

require 'mittsu/mesh_analysis'

The methods above should then be available for use.

About

This code was originally written for Manyfold, supported by funding from NLNet and NGI Zero.

About

Mesh analysis for Mittsu

License:MIT License


Languages

Language:Ruby 100.0%