2 * ***** BEGIN GPL/BL DUAL 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. The Blender
8 * Foundation also sells licenses for use in proprietary software under
9 * the Blender License. See http://www.blender.org/BL/ for information
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software Foundation,
19 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
22 * All rights reserved.
24 * The Original Code is: all of this file.
26 * Contributor(s): none yet.
28 * ***** END GPL/BL DUAL LICENSE BLOCK *****
34 * Constructs a new edge.
35 * @param v1 vertex index
36 * @param v2 vertex index
38 BOP_Edge::BOP_Edge(BOP_Index v1, BOP_Index v2)
45 * Adds a new face index to this edge.
48 void BOP_Edge::addFace(BOP_Index i)
55 * Returns if this edge contains the specified face index.
57 * @return true if this edge contains the specified face index, false otherwise
59 bool BOP_Edge::containsFace(BOP_Index i)
62 for(BOP_IT_Indexs it = m_faces.begin();it!=m_faces.end();pos++,it++) {
71 * Replaces an edge vertex index.
72 * @param oldIndex old vertex index
73 * @param newIndex new vertex index
75 void BOP_Edge::replaceVertexIndex(BOP_Index oldIndex, BOP_Index newIndex)
77 if (m_vertexs[0] == oldIndex) m_vertexs[0] = newIndex;
78 else if (m_vertexs[1] == oldIndex) m_vertexs[1] = newIndex;