Smoothing#
Mesh smoothing algorithms for improving mesh regularity while preserving geometric features.
Provides Laplacian smoothing, which iteratively moves each vertex toward the centroid of its neighbors. Boundary vertices are held fixed to preserve the mesh boundary.
from physicsnemo.mesh.smoothing import smooth_laplacian
from physicsnemo.mesh.primitives.surfaces import sphere_icosahedral
mesh = sphere_icosahedral.load(subdivisions=2)
smoothed = smooth_laplacian(mesh, iterations=10)
API Reference#
Mesh smoothing operations.
This module provides algorithms for smoothing mesh geometry while preserving important features like boundaries and sharp edges.