SGmeshtetrahedron

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - FEM/PDE
Introduced first in SolidGeometry 4.7, Creation date: 2019-07-30, Last change: 2025-09-14

creates a tetramesh of a Solid Geometry - same as SGmeshtetrahedron

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 , SGtetramesh , SGaddfacetcenterpoints

Example Illustration

 missing image of SGmeshtetrahedron(SG,h)

Syntax

[SGn,VL,FL,TR]=SGmeshtetrahedron(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 2019-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