p4est
1.0
|
00001 /* 00002 This file is part of p4est. 00003 p4est is a C library to manage a collection (a forest) of multiple 00004 connected adaptive quadtrees or octrees in parallel. 00005 00006 Copyright (C) 2010 The University of Texas System 00007 Written by Carsten Burstedde, Lucas C. Wilcox, and Tobin Isaac 00008 00009 p4est is free software; you can redistribute it and/or modify 00010 it under the terms of the GNU General Public License as published by 00011 the Free Software Foundation; either version 2 of the License, or 00012 (at your option) any later version. 00013 00014 p4est is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with p4est; if not, write to the Free Software Foundation, Inc., 00021 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00022 */ 00023 00024 #ifndef P8EST_TETS_HEXES_H 00025 #define P8EST_TETS_HEXES_H 00026 00027 #include <p8est_connectivity.h> 00028 00029 typedef struct p8est_tets 00030 { 00032 sc_array_t *nodes; 00033 00035 sc_array_t *tets; 00036 00038 sc_array_t *tet_attributes; 00039 } 00040 p8est_tets_t; 00041 00047 sc_array_t *p8est_tets_read_node (const char *nodefile); 00048 00057 sc_array_t *p8est_tets_read_ele (const char *elefile, 00058 p4est_topidx_t num_nodes, 00059 sc_array_t ** attributes); 00060 00067 p8est_tets_t *p8est_tets_read (const char *tetgenbasename); 00068 00072 void p8est_tets_destroy (p8est_tets_t * ptg); 00073 00078 p4est_topidx_t p8est_tets_make_righthanded (p8est_tets_t * ptg); 00079 00085 p8est_connectivity_t *p8est_connectivity_new_tets (p8est_tets_t * ptg); 00086 00087 #endif /* !P8EST_TETS_HEXES */