Smoothing#

Mesh smoothing algorithms for improving mesh regularity while preserving geometric features.

Provides Laplacian smoothing, which iteratively moves each vertex toward a weighted average of its neighbors. Codimension-one manifolds of dimension at least 2 use cotangent weights; other supported mesh types use uniform weights. Boundary vertices are held fixed by default.

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, n_iter=10)

API Reference#

Mesh smoothing operations.

This module provides algorithms for smoothing mesh geometry while preserving important features like boundaries and sharp edges.