SGtrialerror

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CODING/DEVELOP
Introduced first in SolidGeometry 5.4, Creation date: 2024-07-27, Last change: 2025-08-18

generates an error message indicating a new attempt

Description

Some routines such as the boolean operation of surface models are not numerically stable, which is why random changes are made to the coordinates. Nevertheless, it is not always possible to calculate a result. This is not always a problem for the design. For example, if a labelling is not engraved, then only the labelling is missing, but the mechanical function is fulfilled. However, there are cases in which a failed subtraction, for example, renders further design steps pointless. In this case, the only option is to call the function again in the hope that the numerics will then work better. Trail and error

See Also: SGisidentical , dbreturn

Example Illustration

 missing image of SGtrialerror

Syntax

SGtrialerror

Examples


if SGisidentical(SGTL,SGTL1); SGtrialerror; end;

SGAN=SGsubtract(SGA,SGvaryfrom(SGX)); if startsWith(lastwarn,'"SGsubtract'); SGtrialerror; end;





Copyright 2024-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