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
- SG: Represents the solid geometry object containing vertex and facet information.
- vi: A list of vertex indices that the user wants to inspect.
- fi: A list of facet indices that the user wants to inspect.
Algorithm Steps
- Retrieve the vertex indices (
vi
) and facet indices (fi
) from the input parameters using the getfuncparams
function.
- Ensure that the vertex indices are in column format. If they are not, transpose them.
- Initialize an empty list
VL
to store the vertices to be inspected.
- If vertex indices are provided, append the corresponding vertices from
SG.VL
to VL
.
- If facet indices are provided, append the vertices corresponding to these facets from
SG.FL
to VL
.
- Call the
zoompatch
function with VL
and two scaling factors (0.01, 0.01) to zoom into the specified vertices and facets.
- Plot the vertices in
VL
using the VLplot
function with red asterisks ('r*').
- Determine the edges of the specified facets using the
ELofFL
function.
- 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