// // Filename : GeomCleaner.h // Author : Stephane Grabli // Purpose : Class to define a cleaner of geometry providing // a set of useful tools // Date of creation : 04/03/2002 // /////////////////////////////////////////////////////////////////////////////// // // Copyright (C) : Please refer to the COPYRIGHT file distributed // with this source distribution. // // 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. // /////////////////////////////////////////////////////////////////////////////// #ifndef GEOMCLEANER_H # define GEOMCLEANER_H # include "../system/FreestyleConfig.h" # include "Geom.h" using namespace Geometry; class LIB_GEOMETRY_EXPORT GeomCleaner { public: inline GeomCleaner() {} inline ~GeomCleaner() {} /*! Sorts an array of Indexed vertices * iVertices * Array of vertices to sort. It is organized as a * float series of vertex coordinates: XYZXYZXYZ... * iVSize * The size of iVertices array. * iIndices * The array containing the vertex indices (used to refer * to the vertex coordinates in an indexed face). Each * element is an unsignedeger multiple of 3. * iISize * The size of iIndices array * oVertices * Output of sorted vertices. A vertex v1 precedes another one * v2 in this array if v1.x