VLFLvertexongrid
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 4.1, Creation date: 2017-09-01, Last change: 2025-09-14
returns a solid geometry with all vertices set to a grid
Description
Important function to be used in combination with SGbool
This function uses two grids.
grid 1 is used to select all points that are conidered to have the same coordinates
grid 2 is used to force the remaining single point to a grid position
grid 2 is an order of magnitude smaller than grid 1
See Also:
Example Illustration
Syntax
[VLN,FLN]=VLFLvertexongrid([VL,FL,grid1,grid2])
Input Parameter
VL: | | Vertex List or Solid Geoemtry |
FL: | | Facet List, or empty if VL=SG |
grid1: | | default is 1e-3 |
grid2: | | default is 0.25*grid 1 |
Output Parameter
VLN: | | Final Vertex List or Final Solid if nargout==1 |
FLN: | | Final Facet List |
Examples
A=SGsample(5), B=VLFLvertexongrid(A,'',0.1), VLmindxyz(B)
Copyright 2017-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
Last html export of this page out of FM database by TL: 2025-09-21