validate_shell

Function validate_shell 

Source
pub fn validate_shell(shell: &Mesh) -> ShellValidationResult
Expand description

Validate a shell mesh for 3D printing suitability.

Checks:

  • Watertightness (no boundary edges)
  • Manifoldness (no edges with >2 adjacent faces)
  • Consistent winding order

§Arguments

  • shell - The shell mesh to validate

§Returns

A ShellValidationResult with detailed validation information.

§Example

use mesh_repair::Mesh;
use mesh_shell::validate_shell;

let shell = Mesh::new();
let result = validate_shell(&shell);
if result.is_printable() {
    println!("Shell is ready for printing!");
} else {
    println!("Issues found: {}", result);
}