Improved surface smooth
Updated Thu, 04 Oct 2018 08:40:30 +0000
New features 2018.10.4
1. The new input variable "ViewPoint (default [0,0,0])" will help to control
the normal direction and reduce the error caused by inconsistent
normal direction. If you want to make all normals inward, you could choose a point
inside the closed 3D shape.
2. Through making every edge distinct in one direction to solve the
sparse error problem.
3. Solved an error which the code will not work and return the output with all NaN
in a case when some vertices are not in faces.
With these above improvements, the code is now more general to use.
Improved by Chong Wu, City University of Hong Kong, Hong Kong SAR, China, 2018.10.4
Improved the normal calculation, revised the sparse error, and NaN error. The original work by Marc Lalancette, Toronto, Canada, 2014-02-04 is: https://ww2.mathworks.cn/matlabcentral/fileexchange/45416-surfacesmooth?s_tid=srchtitle
Chong WU (2023). Improved surface smooth (https://www.mathworks.com/matlabcentral/fileexchange/69007-improved-surface-smooth), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Volume of a surface triangulation, SurfaceSmooth
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.