SGinspect

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 4.4, Creation date: 2018-11-18, Last change: 2025-09-14

zooms to inspect specific vertices or facets



See Also: zoompatch

Example Illustration

 missing image of SGinspect (SG,vi,fi)

Syntax

SGinspect(SG,[vi,fi])

Input Parameter

SG: Solid Geoemetry
vi: vertex indices to inspect
fi: facet indices to inspect




Copyright 2018-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 function, SGinspect, is designed to zoom in and inspect specific vertices or facets of a solid geometry object. It is part of the SolidGeometry library and was introduced in version 4.4.

Input Parameters

Algorithm Steps

  1. Retrieve the vertex indices (vi) and facet indices (fi) from the input parameters using the getfuncparams function.
  2. Ensure that the vertex indices are in column format. If they are not, transpose them.
  3. Initialize an empty list VL to store the vertices to be inspected.
  4. If vertex indices are provided, append the corresponding vertices from SG.VL to VL.
  5. If facet indices are provided, append the vertices corresponding to these facets from SG.FL to VL.
  6. Call the zoompatch function with VL and two scaling factors (0.01, 0.01) to zoom into the specified vertices and facets.
  7. Plot the vertices in VL using the VLplot function with red asterisks ('r*').
  8. Determine the edges of the specified facets using the ELofFL function.
  9. Plot the edges using the VLELplots function with green lines ('g-') and a line width of 2.
Algorithm explaination created using ChatGPT on 2025-08-18 22:43. (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