File Exchange

image thumbnail


version (4.92 KB) by Lane Foulks
Removes repeated, unused, and specified vertices in a FV structure of patch data.


Updated 20 Nov 2015

View License

This function will take in a FV structure of patch data and remove any repeated vertices in fvcIn.vertices. It will find vertices in fvcIn that match points in the removeVerticeList, and will also remove any faces in fvcIn that reference vertices to be removed. It then check to see if any further vertices became unused after faces were removed, and remove them as well. If fvcIn contains field 'facevertexcdata', that field will be also updated. This function was created to modify patches before using code to convert patch to STL file; ran into problems with STL files generated from patches with unused vertices. (Note, developed in MATLAB R2013a)

Cite As

Lane Foulks (2021). removeVerticesPatch(fvcIn,removeVerticeList) (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Lennart Hinz

Thank you very much!

Hamid Alavi

works fast and fine! well done!


Very useful!

Audrey Cheong

Very helpful!

Audrey Cheong

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!