PLofhandle

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - User interface
Introduced first in SolidGeometry 4.6, Creation date: 2019-06-10, Last change: 2025-09-14

returns the point list of different graphics objects in gca

Description

written in Tokyo visiting Hajime Asama's Lab at The University of Tokyo


See Also: SGfigure , hideingca , findingca

Example Illustration

 missing image of PLofhandle(h,ascell)

Syntax

[PLs,hp]=PLofhandle(h,[ascell])

Input Parameter

h: handle or string such as 'point', 'line', 'text', 'polygon', 'patch' etc.
ascell: result as separeted list; default is false

Output Parameter

PLs: Point lists
hp: handle to objects if input handle was a string

Examples


SGfigure; PLcircle(1)
PLofhandle('line')




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

Input Parameters:

Output Results:

Algorithm Steps:

  1. Retrieve the ascell parameter using getfuncparams, defaulting to false if not provided.
  2. Determine if h is a string. If so, use findingca to get the handle hp. Otherwise, set hp to h.
  3. Calculate the number of elements in hp and initialize PLs as a cell array of the same size.
  4. Iterate over each element in hp:
  5. If ascell is false, concatenate all point lists into a single matrix PL:
Algorithm explaination created using ChatGPT on 2025-08-19 08:05. (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