embeddedGMap3.h 3.1 KB
Newer Older
1 2 3
/*******************************************************************************
* CGoGN: Combinatorial and Geometric modeling with Generic N-dimensional Maps  *
* version 0.1                                                                  *
4
* Copyright (C) 2009-2012, IGG Team, LSIIT, University of Strasbourg           *
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
*                                                                              *
* This library is free software; you can redistribute it and/or modify it      *
* under the terms of the GNU Lesser General Public License as published by the *
* Free Software Foundation; either version 2.1 of the License, or (at your     *
* option) any later version.                                                   *
*                                                                              *
* This library 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 Lesser General Public License  *
* for more details.                                                            *
*                                                                              *
* You should have received a copy of the GNU Lesser General Public License     *
* along with this library; if not, write to the Free Software Foundation,      *
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA.           *
*                                                                              *
20
* Web site: http://cgogn.unistra.fr/                                           *
21 22 23 24 25 26 27 28
* Contact information: cgogn@unistra.fr                                        *
*                                                                              *
*******************************************************************************/

#ifndef __EMBEDDED_GMAP3_H__
#define __EMBEDDED_GMAP3_H__

#include "Topology/gmap/gmap3.h"
29
#include "Topology/generic/mapImpl/mapMono.h"
30 31 32 33 34 35 36 37

namespace CGoGN
{

/**
* Class of 3-dimensional G-maps
* with managed embeddings
*/
38
class EmbeddedGMap3 : public GMap3<MapMono>
39
{
40
	EmbeddedGMap3(const EmbeddedGMap3& m):GMap3<MapMono>(m) {}
41
public:
Pierre Kraemer's avatar
Pierre Kraemer committed
42
	typedef MapMono IMPL;
43
	typedef GMap3<MapMono> TOPO_MAP;
44

45
	static const unsigned int DIMENSION = TOPO_MAP::DIMENSION ;
46

47 48
	EmbeddedGMap3() {}

49 50 51 52 53
	/*!
	 *
	 */
	virtual Dart deleteVertex(Dart d);

54 55 56
	//! Cut the edge of d
	/*! @param d a dart of the edge to cut
	 */
57
	virtual Dart cutEdge(Dart d);
58

59 60
	/*! The attributes attached to the edge of d are kept on the resulting edge
	 *  @param d a dart of the edge to cut
61
	 */
62
	virtual bool uncutEdge(Dart d);
63

64 65 66 67 68
	//!
	/*!
	 */
	virtual Dart deleteEdge(Dart d);

69 70
	/*!
	 *
71 72 73
	 */
	virtual void splitFace(Dart d, Dart e);

74 75
	/*!
	 *
76
	 */
77
	virtual void sewVolumes(Dart d, Dart e, bool withBoundary = true);
78

79 80
	/*!
	 *
81 82 83
	 */
	virtual void unsewVolumes(Dart d);

84 85
	/*!
	 *
86 87 88
	 */
	virtual bool mergeVolumes(Dart d);

89 90 91 92
	/*!
	 *
	 */
	virtual void splitVolume(std::vector<Dart>& vd);
93

94 95 96
	/**
	 * No attribute is attached to the new volume
	 */
97
	virtual unsigned int closeHole(Dart d);
98

99 100 101
	/*!
	 *
	 */
102 103 104 105 106 107
	virtual bool check();
} ;

} // namespace CGoGN

#endif