2
* ***** BEGIN GPL LICENSE BLOCK *****
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version 2
7
* of the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software Foundation,
16
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
19
* All rights reserved.
21
* The Original Code is: all of this file.
23
* Contributor(s): none yet.
25
* ***** END GPL LICENSE BLOCK *****
28
/** \file decimation/intern/future/LOD_NdQSDecimator.h
33
#ifndef __LOD_NDQSDECIMATOR_H__
34
#define __LOD_NDQSDECIMATOR_H__
36
#include "common/NonCopyable.h"
37
#include "LOD_ManMesh2.h"
39
#include "LOD_EdgeCollapser.h"
40
#include "LOD_NdQuadricEditor.h"
42
class LOD_ExternBufferEditor;
43
class LOD_ExternVColorEditor;
44
class LOD_ExternNormalEditor;
46
class LOD_NdQSDecimator : public NonCopyable {
54
LOD_ExternNormalEditor &face_editor,
55
LOD_ExternVColorEditor &color_editor,
56
LOD_ExternBufferEditor &extern_editor
73
LOD_ExternNormalEditor &face_editor,
74
LOD_ExternVColorEditor &color_editor,
75
LOD_ExternBufferEditor &extern_editor
88
std::vector<LOD_EdgeInd> °_edges,
89
std::vector<LOD_EdgeInd> &new_edges
94
const std::vector<LOD_EdgeInd> & degenerate_edges,
95
const std::vector<LOD_FaceInd> & degenerate_faces,
96
const std::vector<LOD_VertexInd> & degenerate_vertices
99
// Iterate through the face set
100
// for each property of the face vertices
101
// compute a quadric for that property.
102
// Add it to the quadric array.
105
ComputePropertyQuadrics(
112
// owned by this class
113
//////////////////////
115
NanPtr<LOD_EdgeCollapser> m_collapser;
116
NanPtr<Heap<LOD_Edge> > m_heap;
117
NanPtr<LOD_NdQuadricEditor> m_quadric_editor;
121
// arguments to New(...)
122
////////////////////////
124
LOD_ManMesh2 & m_mesh;
125
LOD_ExternNormalEditor & m_face_editor;
126
LOD_ExternBufferEditor & m_extern_editor;
127
LOD_ExternVColorEditor & m_color_editor;
132
std::vector<LOD_FaceInd> m_deg_faces;
133
std::vector<LOD_EdgeInd> m_deg_edges;
134
std::vector<LOD_VertexInd> m_deg_vertices;
136
std::vector<LOD_FaceInd> m_update_faces;
137
std::vector<LOD_EdgeInd> m_new_edges;
138
std::vector<LOD_VertexInd> m_update_vertices;