VLFLplothide

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - User interface
Introduced first in SolidGeometry 1.0, Creation date: 2012-11-25, Last change: 2025-08-18

selects a patch (VLFL) by ginput and sets it as invisible

Example Illustration

 missing image of VLFLplothide

Syntax

VLFLplothide




Copyright 2012-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, VLFLplothide, is designed to interactively hide or delete a graphical patch object in a 3D plot using user input. Below is a detailed explanation of the algorithm and its parameters:

Input Parameters

The function VLFLplothide does not take any input parameters. It operates on the current figure and axes in the MATLAB environment.

Algorithm Steps

  1. Disable 3D Rotation: The function begins by turning off the 3D rotation feature using rotate3d off. This is necessary to ensure that the subsequent user input is not affected by any interactive rotation of the plot.
  2. User Input: The function waits for a single mouse click input from the user with ginput(1). This input is used to select a point in the current figure.
  3. Select 3D Object: The function calls select3d, which is assumed to be a custom or library function that returns information about the 3D object at the selected point. The outputs [a,b,c,d,e,h] are used, where h is the handle to the graphical object.
  4. Check Object Type: The function checks if the selected object is a patch using ispatch(h). This is a logical check to determine if the handle h corresponds to a patch object.
  5. Delete Patch: If the selected object is a patch, the function deletes it using delete(h). This effectively removes the patch from the plot.
  6. Enable 3D Rotation: Finally, the function re-enables 3D rotation with rotate3d on, allowing the user to interactively rotate the plot again.

Assumptions and Dependencies

Conclusion

The VLFLplothide function provides a simple interactive mechanism to hide or delete patch objects in a 3D plot based on user input. It leverages MATLAB's graphical input and object handling capabilities to achieve this functionality.

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