Syntax
[VL,FL,CL]=VLFLcreatecross(X,Y,H,b)
Input Parameter
X : | | Size in X [0..X] |
Y : | | Size in Y [0..Y] |
H : | | Size in Z [0..H] |
b : | | bar width |
Output Parameter
VL : | | Vertex list |
FL : | | Facet list |
CL : | | Contour list |
Examples
Cross of size 40x60 with thickness 4 and bar width of 5 mm
closeall; [VL,FL]=VLFLcreatecross (40,60,4,5); VLFLplot (VL,FL);
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 algorithm generates a 2.5D X-shaped structure in the x/y plane with specified dimensions and bar width. It is part of the VLFL library and was created by Tim Lueth in 2012.
Input Parameters
- X: The size of the structure in the X direction, ranging from 0 to X.
- Y: The size of the structure in the Y direction, ranging from 0 to Y.
- H: The size of the structure in the Z direction, ranging from 0 to H.
- b: The width of the bars forming the cross.
Output Results
- VL: Vertex list, which contains the coordinates of the vertices of the structure.
- FL: Facet list, which defines the faces of the structure using the vertices.
- CL: Contour list, which outlines the shape of the cross in the x/y plane.
Algorithm Steps
- Define the contour list CL for the cross shape in the x/y plane. This list includes the coordinates of the points that form the outline of the cross.
- Use the function VLFLofCPLz to generate the vertex list VL and facet list FL from the contour list CL and the height H. This function extrudes the 2D contour into a 3D shape by adding the Z dimension.
Example
To create a cross of size 40x60 with a thickness of 4 and a bar width of 5 mm, use the following command:
closeall; [VL,FL]=VLFLcreatecross(40,60,4,5); VLFLplot(VL,FL);
This example will generate the vertex and facet lists for the specified cross and plot it using the VLFLplot function.
Algorithm explaination created using ChatGPT on 2025-08-18 23:46. (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