SGmakemissingvertex

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Problems Find/Check/Fix
Introduced first in SolidGeometry 5.3, Creation date: 2023-06-08, Last change: 2025-09-15

removes a number of vertices which creates missing facets

Description

Family of error creating functions for testing
SGmakemissingvertex
SGmakemissingfacet
SGmakedoublevertex
SGmakedoublefacets



See Also: SGmakemissingfacet , SGmakedoublevertex

Example Illustration

 missing image of SGmakemissingvertex(SG,Vi)

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

Output

Algorithm Steps

  1. 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.
  2. 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.
  3. Store the coordinates of the vertices to be removed in VLR for later visualization.
  4. Remove the identified facets from SG by updating the facet list (SG.FL) to exclude those facets.
  5. Call the function SGshort to remove the specified vertices from the vertex list (SG.VL) and update the solid geometry accordingly.
  6. 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