1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // 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 Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #include "nel/3d/mrm_mesh.h"
32 // ***************************************************************************
33 uint
CMRMMeshFinal::CWedge::NumAttributesToCompare
= 0;
34 bool CMRMMeshFinal::CWedge::CompareSkinning
= false;
37 // ***************************************************************************
45 // ***************************************************************************
46 sint
CMRMMeshFinal::findInsertWedge(const CWedge
&w
)
49 TWedgeMap::iterator it
;
50 it
= _WedgeMap
.find(w
);
52 // if not found, must add it.
53 if(it
==_WedgeMap
.end())
55 ret
= (sint
)Wedges
.size();
56 // insert into the map, with good id.
57 _WedgeMap
.insert(make_pair(w
, ret
));
58 // add it to the array.
69 // ***************************************************************************
70 CMRMMeshFinal::CWedge::CWedge()
72 Vertex
= NLMISC::CVector::Null
;
74 for (uint k
= 0; k
< NL3D_MRM_MAX_ATTRIB
; ++k
)
76 Attributes
[k
].set(0, 0, 0, 0);