SGTplot

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 3.1, Creation date: 2016-12-18, Last change: 2025-09-14

simply plots solid including frames

Description

clearifies the use of SGT

See Also: SGTget , SGTset , SGTremove , SGTui , SGTframeplot

Example Illustration

 missing image of SGTplot(SGN,N,SN)

Syntax

SGTplot(SGN,[N,SN])

Input Parameter

SGN: Solid Geoemtry
N: Name of Frames to be plotted
SN: Name of Solid for plotting

Examples


loadweb JACO_robot.mat;
SGfigure; view(-30,30); SGTplot(JC0,'','A')




Copyright 2016-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)

The function SGTplot is designed to plot solid geometries, including frames, using the Solid Geometry Toolbox (SGT). It is part of the SG-Library and was introduced in SolidGeometry 3.1. The function is authored by Tim Lueth and is intended for use in visualizing solid geometries.

Input Parameters

Function Workflow

The function begins by checking the number of input arguments using nargin. It assigns default values to the optional parameters N and SN if they are not provided by the user:

After setting up the input parameters, the function calls another function SGT with the solid geometry object SGN and any additional arguments passed through varargin. The SGT function is responsible for handling the actual plotting of the solid geometry and frames based on the provided parameters.

Example Usage

An example of how to use the SGTplot function is provided in the comments:

loadweb JACO_robot.mat;
SGfigure; 
view(-30,30); 
SGTplot(JC0,'','A')

In this example, the function is used to plot a solid geometry from the JACO_robot.mat file. The SGfigure function is called to create a new figure window, and the view function is used to set the viewing angle. The SGTplot function is then called with the solid geometry object JC0, no specific frames, and the solid name 'A'.

Algorithm explaination created using ChatGPT on 2025-08-18 22:59. (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