01: /*
02: * This file is part of the GeOxygene project source files.
03: *
04: * GeOxygene aims at providing an open framework which implements OGC/ISO specifications for
05: * the development and deployment of geographic (GIS) applications. It is a open source
06: * contribution of the COGIT laboratory at the Institut Géographique National (the French
07: * National Mapping Agency).
08: *
09: * See: http://oxygene-project.sourceforge.net
10: *
11: * Copyright (C) 2005 Institut Géographique National
12: *
13: * This library is free software; you can redistribute it and/or modify it under the terms
14: * of the GNU Lesser General Public License as published by the Free Software Foundation;
15: * either version 2.1 of the License, or any later version.
16: *
17: * This library is distributed in the hope that it will be useful, but WITHOUT ANY
18: * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
19: * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
20: *
21: * You should have received a copy of the GNU Lesser General Public License along with
22: * this library (see file LICENSE if present); if not, write to the Free Software
23: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24: *
25: */
26:
27: package fr.ign.cogit.geoxygene.contrib.delaunay;
28:
29: /**
30: * Classe interne - NE PAS UTILISER.
31: * @author Bonin
32: * @version 1.0
33: */
34:
35: public class Triangulateio {
36:
37: //Constructeur
38: protected Triangulateio() {
39: };
40:
41: ///////////////////////////////////////////////////////////////////////////
42: ///////////////////////////////////////Attributs //////////////////////////
43: ////////////////////////////////////////////////////////////////////////////
44: protected double[] pointlist = null;
45: protected double[] pointattributelist = null;
46: protected int[] pointmarkerlist = null;
47: protected int numberofpoints = 0;
48: protected int numberofpointattributes = 0;
49:
50: protected int[] trianglelist = null;
51: protected double[] triangleattributelist = null;
52: protected double[] trianglearealist = null;
53: protected int[] neighborlist = null;
54: protected int numberoftriangles = 0;
55: protected int numberofcorners = 0;
56: protected int numberoftriangleattributes = 0;
57:
58: protected int[] segmentlist = null;
59: protected int[] segmentmarkerlist = null;
60: protected int numberofsegments = 0;
61:
62: protected double[] holelist = null;
63: protected int numberofholes = 0;
64:
65: protected double[] regionlist = null;
66: protected int numberofregions = 0;
67:
68: protected int[] edgelist = null;
69: protected int[] edgemarkerlist = null;
70: protected double[] normelist = null;
71: protected int numberofedges = 0;
72:
73: protected void joutInit() {
74: pointlist = new double[2 * numberofpoints];
75: edgelist = new int[2 * numberofedges];
76: segmentlist = new int[2 * numberofsegments];
77: trianglelist = new int[numberofcorners * numberoftriangles];
78: }
79:
80: }
|