VLTLplot

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - TR/Tetrahedrons
Introduced first in SolidGeometry 2.0, Creation date: 2014-12-09, Last change: 2025-09-14

plots a tetrahedron list as one volume or as separated tetrahedrons

Description

uses tetramesh to print all tetrahedrons in one step.
Each tetrahedron is plotted seperately (slow)

See Also: VLFLplot , SGplot , TRplot , VLFLplot4

Example Illustration

 missing image of VLTLplot(VL,TL,c,so)

Syntax

h=VLTLplot(VL,TL,[c,so])

Input Parameter

VL: Vertex list
TL: Tetrahedrons list
c: color
so: true = single handle, false = separated handles

Output Parameter

h: handles to graphics object




Copyright 2014-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 plot a list of tetrahedrons using the function VLTLplot. It utilizes the tetramesh function to render the tetrahedrons either as a single volume or as separate entities.

Input Parameters

Output

Algorithm Steps

  1. Check if the vertex list VL or tetrahedron list TL is empty. If either is empty, return an empty handle h.
  2. Set the default color c to 'r' (red). If a color is provided as an argument, use that instead.
  3. Set the default for so (single object) to true. If a value is provided, use that instead.
  4. Set the colormap using VLcol and determine the color mapping cmc using the specified color c.
  5. Set the color limits with clim([0 7]).
  6. If so is true, plot all tetrahedrons as a single object using tetramesh with the color applied to all tetrahedrons.
  7. If so is false, iterate over each tetrahedron and plot them individually using tetramesh.
  8. Call VLFLplotlight(0,1) to adjust the lighting of the plot.
Algorithm explaination created using ChatGPT on 2025-08-18 23:40. (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