Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
This function subdivides the faces in a given mesh. The newly created vertices (those that are unique) are appended to the input vertices list. A new list of triangle faces is built.
There are other functions out there that do this in matlab, but the few I saw used for-loops and arrays growing inside of the loops, which doesn't work when the mesh is huge. This function is fully vectorized and clears memory while executing when things are no longer needed. It is fairly short/compact.
The orientations (CCW/CW) of faces should be preserved by the subdivision.
The screenshot here has 1 million faces and 300,000 vertices after subdivision, executes in about 1 second (on quad-core 8GB ram machine).
Limitations: only triangles, input args not checked now.
Citar como
Peter Karasev (2026). Triangle Subdivide (vectorized/fast) (https://es.mathworks.com/matlabcentral/fileexchange/25961-triangle-subdivide-vectorized-fast), MATLAB Central File Exchange. Recuperado .
Información general
- Versión 1.0.0.0 (1,56 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
| Versión | Publicado | Notas de la versión | Action |
|---|---|---|---|
| 1.0.0.0 |
