void tmesh_skin (struct_id, mesh)
Pint struct_id; Tmesh3D *mesh;
Considering a non-structured 3D mesh (mesh->type = TNS_MESH_OF_HEXAHEDRONS, or TNS_MESH_OF_TETRAHEDRONS or TNS_MESH_NON_HOMO_3D), the skin is made of all faces which only belong to one mesh element.
If the mesh is not well built or has some holes inside, some internal faces may be detected as part of the skin. To see this faces modeling clipping may be applied (see function tset_model_clip_vol3). tmesh_skin function may be used like this to detect mesh building problems.