SGshortopti
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 4.3, Creation date: 2018-08-30, Last change: 2025-09-14
returns the vertex list with optimal number of loss less reduced vertices
Description
Some CAD Systems creates STL files that have different vertex coordinates for the same vertices because of inaccuracies. This function uses VLcheckvertexaccuracy to find the optimal grid for loss less optimization
This function should be used after the first readin of an exported STL file. Afterwards it makes sense to check the file using SGcheckmeshlab
See Also: VLcheckvertexaccuracy
, SGshort
, VLcheckboundaryaccuracy
, SGcheckmeshlab
Example Illustration
Syntax
SGN=SGshortopti(SG,[otyp])
Input Parameter
SG: | | Original SG |
otyp: | | optimization type: 'vertex' or 'boundary' |
Output Parameter
SGN: | | SG.VL, SG.FL with optimal number of loss less reduced vertices |
Examples
load JACO_robot.mat
SGshortopti(JC2)
SGshortopti(JC2,'vertex')
SGshortopti(JC2,'boundary')
Copyright 2018-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