fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / NodeCores / Drawables / Geometry / Util / OSGGeoOptimization.h
blob3481cf85db363c0ab497c2857276a2f79eea6bf0
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2011 by the OpenSG Forum *
6 * *
7 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
8 * *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
11 * License *
12 * *
13 * This library is free software; you can redistribute it and/or modify it *
14 * under the terms of the GNU Library General Public License as published *
15 * by the Free Software Foundation, version 2. *
16 * *
17 * This library is distributed in the hope that it will be useful, but *
18 * WITHOUT ANY WARRANTY; without even the implied warranty of *
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
20 * Library General Public License for more details. *
21 * *
22 * You should have received a copy of the GNU Library General Public *
23 * License along with this library; if not, write to the Free Software *
24 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
25 * *
26 \*---------------------------------------------------------------------------*/
28 #ifndef _OSGGEOOPTIMIZATION_H_
29 #define _OSGGEOOPTIMIZATION_H_
31 #include "OSGDrawableDef.h"
33 OSG_BEGIN_NAMESPACE
35 class Geometry;
37 // The algorithms here are meant to perform various optimizations/remappings
38 // on geometry. They are currently EXPERIMENTAL.
39 // Algorithms are probably best run in order from top to bottom.
41 OSG_DRAWABLE_DLLMAPPING
42 void makeSingleIndexed (Geometry *geo );
44 OSG_DRAWABLE_DLLMAPPING
45 void makeIndexedTriangles (Geometry *geo,
46 bool bKeepLowerDimPrimitives = true);
48 OSG_DRAWABLE_DLLMAPPING
49 void makeIndexedTrianglesConcave(Geometry *geo,
50 bool bKeepLowerDimPrimitives = true);
52 OSG_DRAWABLE_DLLMAPPING
53 void makeOptimizedIndex (Geometry *geo );
55 OSG_DRAWABLE_DLLMAPPING
56 void makeOptimizedProperties (Geometry *geo );
58 OSG_END_NAMESPACE
60 #endif /* _OSGGEOOPTIMIZATION_H_ */