Forked from
gmsh / gmsh
19486 commits behind the upstream repository.
-
Christophe Geuzaine authored
Added support to visualize mesh partitions. The partition info is currently set as the physical entity number in the MSH file, but it would be trivial to change it to something else (e.g., as soon as we generalize the MSH format to take arbitrary number of tags per element).
Christophe Geuzaine authoredAdded support to visualize mesh partitions. The partition info is currently set as the physical entity number in the MSH file, but it would be trivial to change it to something else (e.g., as soon as we generalize the MSH format to take arbitrary number of tags per element).
Create.h 3.01 KiB
#ifndef _CREATE_H_
#define _CREATE_H_
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA.
//
// Please report all bugs and problems to "gmsh@geuz.org".
#include "List.h"
#include "Vertex.h"
#include "Mesh.h"
int compareNXE (const void *a, const void *b);
int compareFxE (const void *a, const void *b);
int compareSurfaceLoop (const void *a, const void *b);
int compareEdgeLoop (const void *a, const void *b);
int compareHexahedron (const void *a, const void *b);
int comparePrism (const void *a, const void *b);
int comparePyramid (const void *a, const void *b);
int compareQuality (const void *a, const void *b);
int compareCurve (const void *a, const void *b);
int compareAttractor (const void *a, const void *b);
int compareSurface (const void *a, const void *b);
int compareVolume (const void *a, const void *b);
int compareSxF (const void *a, const void *b);
int compareMeshPartitionNum(const void *a, const void *b);
int compareMeshPartitionIndex(const void *a, const void *b);
Attractor * Create_Attractor (int Num, double lc1, double lc2, double Radius,
Vertex * v, Curve * c, Surface * s);
void Add_EdgeLoop (int Num, List_T * intlist, Mesh * M);
void Add_SurfaceLoop (int Num, List_T * intlist, Mesh * M);
void Add_PhysicalGroup (int Num, int typ, List_T * intlist, Mesh * M);
void Free_PhysicalGroup(void *a, void *b);
int Add_MeshPartition(int Num, Mesh * M);
void Free_MeshPartition(void *a, void *b);
Curve *Create_Curve (int Num, int Typ, int Order, List_T * Liste,
List_T * Knots, int p1, int p2, double u1, double u2);
void End_Curve (Curve * c);
void Free_Curve(void *a, void *b);
Surface * Create_Surface (int Num, int Typ);
void End_Surface (Surface * s);
void Free_Surface(void *a, void *b);
Volume * Create_Volume (int Num, int Typ);
void Free_Volume(void *a, void *b);
Hexahedron * Create_Hexahedron (Vertex * v1, Vertex * v2, Vertex * v3, Vertex * v4,
Vertex * v5, Vertex * v6, Vertex * v7, Vertex * v8);
void Free_Hexahedron(void *a, void *b);
Prism * Create_Prism (Vertex * v1, Vertex * v2, Vertex * v3,
Vertex * v4, Vertex * v5, Vertex * v6);
void Free_Prism(void *a, void *b);
Pyramid * Create_Pyramid (Vertex * v1, Vertex * v2, Vertex * v3,
Vertex * v4, Vertex * v5);
void Free_Pyramid(void *a, void *b);
#endif