Syntax
SG=SGmakemissingvertex([SG,Vi])
Input Parameter
SG : | | Solid geometry; default is sphere (25); |
Vi : | | indices of vertices to remove; default is 1 |
Output Parameter
SG : | | SG with removed vertices and removed facets |
Examples
SGmakemissingvertex(SGsphere(25),[100 200 300])
Copyright 2023-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Algorithm (Workflow)
This algorithm is designed to remove specific vertices from a solid geometry (SG) and consequently remove any facets that are dependent on those vertices. The function is part of a family of error-creating functions used for testing purposes.
Input Parameters
- SG: The solid geometry object. If not provided, the default is a sphere with a resolution of 25.
- Vi: Indices of the vertices to be removed. The default value is 1.
Output
- SG: The modified solid geometry with specified vertices and associated facets removed.
Algorithm Steps
- Retrieve the solid geometry (SG) and vertex indices (Vi) from the input parameters. If not provided, use default values: a sphere with resolution 25 for SG and 1 for Vi.
- Identify facets in SG that include any of the vertices specified in Vi. This is done by checking if any of the vertices in each facet's vertex list (SG.FL) match the indices in Vi.
- Store the coordinates of the vertices to be removed in VLR for later visualization.
- Remove the identified facets from SG by updating the facet list (SG.FL) to exclude those facets.
- Call the function SGshort to remove the specified vertices from the vertex list (SG.VL) and update the solid geometry accordingly.
- If no output argument is specified, visualize the modified solid geometry using SGfigure and SGplotalpha functions, and plot the removed vertices using VLplot.
Algorithm explaination created using ChatGPT on 2025-08-19 01:08. (Please note: No guarantee for the correctness of this explanation)
Last html export of this page out of FM database by TL: 2025-09-21