1 // splittris.hxx -- read in a .ele/.node file pair generated by the triangle
2 // program and output edge vertices w/ normals.
4 // Written by Curtis Olson, started January 1998.
6 // Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 // (Log is kept at end of this file)
36 #include "Include/fg_stl_config.h"
38 #ifdef NEEDNAMESPACESTD
42 #include <Include/fg_types.h>
45 // A triangle (indices of the three nodes)
51 typedef vector < fgPoint3d > container_3d;
52 typedef container_3d::iterator iterator_3d;
53 typedef container_3d::const_iterator const_iterator_3d;
55 typedef vector < triangle > container_tri;
56 typedef container_tri::iterator iterator_tri;
57 typedef container_tri::const_iterator const_iterator_tri;
60 // Initialize a new mesh structure
61 void triload(const string& basename);
64 #endif // SPLITTRIS_HXX
68 // Revision 1.3 1998/09/22 23:49:58 curt
69 // C++-ified, STL-ified, and string-ified.
71 // Revision 1.2 1998/09/21 23:16:24 curt
72 // Converted to c++ style comments.
74 // Revision 1.1 1998/07/08 14:59:14 curt
75 // *.[ch] renamed to *.[ch]xx
77 // Revision 1.3 1998/03/03 15:36:13 curt
78 // Tweaks for compiling with g++
80 // Revision 1.2 1998/01/15 02:49:25 curt
81 // Misc. housekeeping.
83 // Revision 1.1 1998/01/14 02:11:32 curt