SGtetramesh
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - TR/Tetrahedrons
Introduced first in SolidGeometry 4.0, Creation date: 2017-07-18, Last change: 2025-09-14
creates a tetramesh of a Solid Geometry
Description
USE SGshortopti before to remove oben boundaries and non manifold vertices
This function uses the importGeometry and generateMesh functions of the PDE-Toolbox to create a mesh of the solid an creates a triangualatin from this data.
ATTENTION: SGtetramesh WILL NOT MELT SEPERATED SOLIDS, They are still independent surfaces
In contrast to the normal PDE mesh, the linear mode is used here to create the 4-facet meshes directly
If SGtetramesh fails with error: "The input mesh is invalid" => SGcheckmeshlab
If SGtetramesh fails with error: "Meshing failed with a Hmax of" => Self intrusion!
See Also: pdemodelofSG
, SGaddfacetcenterpoints
Example Illustration
Syntax
[SGn,VL,FL,TR]=SGtetramesh(SG,[h])
Input Parameter
SG: | | Solid Geoemtry |
h: | | maximum mesh length; default is sofBB/20 |
Output Parameter
SGn: | | Solid Geoemtry based on a PDE mesh |
VL: | | Vertex list |
FL: | | Facet list |
TR: | | Tetrahedron triangulation |
Examples
SGtetramesh(SGsample(17))
SGtetramesh(SGsample(17),3)
SGtetramesh(SGsample(35)) % failes because of non manifold
SGtetramesh(SGsample(36)) % failes because of self intrusion
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