PLrhombus

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - PL/Point Lists
Introduced first in SolidGeometry 5.2, Creation date: 2022-05-12, Last change: 2025-09-15

Point list of a rhombus



See Also: PLinbus , PLcircseg , PLevolvente , PLgearDIN , PLkidney , PLrand , PLspiral , PLsquare , PLstar , PLcircleoval , PLtubbing

Example Illustration

 missing image of PLrhombus(d,h,a)

Syntax

PL=PLrhombus([d,h,a])

Input Parameter

d: diameter in x; default is [6 6 5 2]);
h: y value for each diameter; default is [0 3 4 15]
a: turning angle after design; default is 0 rad

Output Parameter

PL:

Examples


PLrhombus([5 5 2],[0 2 10])




Copyright 2022-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 PLrhombus generates a point list for a rhombus shape based on input parameters. It is part of the SolidGeometry library.

Input Parameters

Output

Algorithm Steps

  1. Retrieve the input parameters d, h, and a using the getfuncparams function. If not provided, default values are used.
  2. Create an initial point list PL by combining half of the d and h values: PL = [d'/2 h'/2].
  3. Generate the remaining points of the rhombus by mirroring and inverting the initial points:
    • First, mirror the x-values and keep the y-values: PL = [PL; flipud([-PL(:,1) PL(:,2)])].
    • Then, invert both x and y-values to complete the rhombus: PL = [PL; -PL].
  4. Apply a rotation transformation to the point list PL using the angle a with the function PLtransR.
  5. If no output is requested (nargout == 0), plot the rhombus using SGfigure and CPSplot.
Algorithm explaination created using ChatGPT on 2025-08-19 00:25. (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