VLFLcone

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 1.0, Creation date: 2013-01-08, Last change: 2025-09-14

returns vertex list and facet list for a cone solid


Will be removed (2025-09-21): Use 'SGcone' instead


See Also: SGcone , VLFLring , VLFLdome , VLFLpost , VLFLcap , VLFLsnaprivet , VLFLellipse1 , VLFLellipse2 , VLFLellipse3 , VLFLyarn

Example Illustration

 missing image of VLFLcone(H,R,nf)

Syntax

[VL,FL,FLb]=VLFLcone(H,[R,nf])

Input Parameter

H: Height
R: Radius; default is H/2
nf: Number of facets, default is 16

Output Parameter

VL: Vertex list
FL: Facet list of the cone
FLb: Facet list of the bottom




Copyright 2013-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 3D cone model by computing its vertex and facet lists. It is part of the SolidGeometry library and is designed to be replaced by 'SGcone' in the future.

Input Parameters

Output Results

Algorithm Steps

  1. Initialize the radius R to H/2. If a second argument is provided, update R with its value.
  2. Initialize the number of facets nf to 16. If a third argument is provided, update nf with its value.
  3. Generate a circle's vertex list PL using the function PLcircle with radius R and nf facets.
  4. Create the vertex list VL by adding a height H to the circle's vertices and appending the cone's apex at (0, 0, H).
  5. Define indices a and b for the base facets, and c for the apex, to form the facet list FL.
  6. Generate the base facet list FLb by swapping the order of vertices in the base using FLswap and FLofVL.
  7. If no output is requested, visualize the cone using VLFLfigure and VLFLplot with specified colors and view angles.
Algorithm explaination created using ChatGPT on 2025-08-19 08:15. (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