diff --git a/Apps/Examples/Debug/CMakeLists.txt b/Apps/Examples/Debug/CMakeLists.txt index f7ffb81ac12601ec84217e0fac5264ae8c190208..104b49abbe8abd50125dd43cfc02a2fc593ad54a 100644 --- a/Apps/Examples/Debug/CMakeLists.txt +++ b/Apps/Examples/Debug/CMakeLists.txt @@ -63,19 +63,17 @@ target_link_libraries( clippingD ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS} ) QT4_WRAP_UI( volumeExplorer_ui ../volumeExplorer.ui ) QT4_WRAP_CPP( volumeExplorer_moc ../volumeExplorer.h ) add_executable( volumeExplorerD ../volumeExplorer.cpp ${volumeExplorer_ui} ${volumeExplorer_moc}) -target_link_libraries( volumeExplorerD ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS} ) +target_link_libraries( volumeExplorerD ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS} ) #QT4_WRAP_UI( mcmesh_ui ../mcmesh.ui ) #QT4_WRAP_CPP( mcmesh_moc ../mcmesh.h ) #add_executable( mcmeshD ../mcmesh.cpp ${mcmesh_moc} ${mcmesh_ui} ) -#target_link_libraries( mcmeshD ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS}) +#target_link_libraries( mcmeshD ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS} ) QT4_WRAP_CPP( concave_rendering_moc ../concave_rendering.h ) add_executable( concave_renderingD ../concave_rendering.cpp ${concave_rendering_moc} ${concave_rendering_ui} ) -target_link_libraries( concave_renderingD ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS}) +target_link_libraries( concave_renderingD ${CGoGN_LIBS_D} ${CGoGN_EXT_LIBS} ) QT4_WRAP_CPP( viewerOBJ_moc ../viewerOBJ.h ) add_executable( viewerOBJD ../viewerOBJ.cpp ${viewerOBJ_moc} ) -target_link_libraries( viewerOBJD ${CGoGN_LIBS_R} ${CGoGN_EXT_LIBS} ) - - +target_link_libraries( viewerOBJD ${CGoGN_LIBS_R} ${CGoGN_EXT_LIBS} ) diff --git a/Apps/Examples/Release/CMakeLists.txt b/Apps/Examples/Release/CMakeLists.txt index af856d846af4f9670e17cc16bb3b802d3ee86aad..a48ab043c7b5804a309fa9507de8993f441fc508 100644 --- a/Apps/Examples/Release/CMakeLists.txt +++ b/Apps/Examples/Release/CMakeLists.txt @@ -73,5 +73,4 @@ target_link_libraries( concave_rendering ${CGoGN_LIBS_R} ${CGoGN_EXT_LIBS} ) QT4_WRAP_CPP( viewerOBJ_moc ../viewerOBJ.h ) add_executable( viewerOBJ ../viewerOBJ.cpp ${viewerOBJ_moc} ) -target_link_libraries( viewerOBJ ${CGoGN_LIBS_R} ${CGoGN_EXT_LIBS} ) - +target_link_libraries( viewerOBJ ${CGoGN_LIBS_R} ${CGoGN_EXT_LIBS} ) diff --git a/Apps/Examples/mcmesh.cpp b/Apps/Examples/mcmesh.cpp index 862c5e56a01fa15758f4c7081724b9ad09f3736f..037276f3b5405df2fe772bc73d7d670c4eb605b2 100644 --- a/Apps/Examples/mcmesh.cpp +++ b/Apps/Examples/mcmesh.cpp @@ -197,7 +197,6 @@ void MCMesh::sphere() myImg = new SAlgo::MC::Image(img,128,128,128,1.0f,1.0f,1.0f,false); } - /********************************************************************************************** * MAIN FUNCTION * **********************************************************************************************/ @@ -210,7 +209,7 @@ int main(int argc, char **argv) sqt.setGeometry(0, 0, 1000, 800); sqt.show(); - sqt.valLabel=DATATYPE(0); + sqt.valLabel = DATATYPE(0); if(argc == 2) { diff --git a/Apps/Examples/mcmesh.h b/Apps/Examples/mcmesh.h index e2010e5717d76d0259fe1174e3668a64d97aad2a..bd0c4263697559a90b7059ff5c5f02a949c0f52b 100644 --- a/Apps/Examples/mcmesh.h +++ b/Apps/Examples/mcmesh.h @@ -31,6 +31,8 @@ #include "Topology/generic/parameters.h" #include "Topology/map/embeddedMap2.h" +#include "Algo/MC/marchingcube.h" + #include "Geometry/vector_gen.h" #include "Geometry/matrix.h" @@ -40,8 +42,6 @@ #include "Utils/vbo.h" #include "Algo/Geometry/boundingbox.h" -#include "Algo/MC/marchingcube.h" - using namespace CGoGN ; diff --git a/SCHNApps/include/mapHandler.h b/SCHNApps/include/mapHandler.h index ccac5bd5aa9878a206b8fdb4649cf4b0c9945b2c..9ea099ef93c0f35c6b4bf5333ad11dc65258120f 100644 --- a/SCHNApps/include/mapHandler.h +++ b/SCHNApps/include/mapHandler.h @@ -9,7 +9,6 @@ #include "cellSelector.h" #include "Topology/generic/genericmap.h" -#include "Topology/generic/attribmap.h" #include "Topology/generic/functor.h" #include "Topology/generic/attributeHandler.h" diff --git a/include/Algo/Filtering/average.h b/include/Algo/Filtering/average.h index a098778125254e90310f7a9c5b36fd658401b3b2..653da686aa805fd717e11ddc08581d66af70138c 100644 --- a/include/Algo/Filtering/average.h +++ b/include/Algo/Filtering/average.h @@ -43,11 +43,11 @@ enum neighborhood { INSIDE = 1, BORDER = 2 }; template void filterAverageAttribute_OneRing( typename PFP::MAP& map, - const VertexAttribute& attIn, - VertexAttribute& attOut, + const VertexAttribute& attIn, + VertexAttribute& attOut, int neigh) { - FunctorAverage fa(attIn) ; + FunctorAverage > fa(attIn) ; Algo::Surface::Selection::Collector_OneRing col(map) ; TraversorV t(map) ; @@ -88,13 +88,13 @@ void filterAverageAttribute_OneRing( template void filterAverageVertexAttribute_WithinSphere( typename PFP::MAP& map, - const VertexAttribute& attIn, - VertexAttribute& attOut, + const VertexAttribute& attIn, + VertexAttribute& attOut, int neigh, - VertexAttribute& position, + VertexAttribute& position, typename PFP::REAL radius) { - FunctorAverage faInside(attIn) ; + FunctorAverage > faInside(attIn) ; FunctorAverageOnSphereBorder faBorder(map, attIn, position) ; Algo::Surface::Selection::Collector_WithinSphere col(map, position, radius) ; @@ -129,13 +129,13 @@ void filterAverageVertexAttribute_WithinSphere( template void filterAverageEdgeAttribute_WithinSphere( typename PFP::MAP& map, - const EdgeAttribute& attIn, - EdgeAttribute& attOut, + const EdgeAttribute& attIn, + EdgeAttribute& attOut, int neigh, - VertexAttribute& position, + VertexAttribute& position, typename PFP::REAL radius) { - FunctorAverage fa(attIn) ; + FunctorAverage > fa(attIn) ; Algo::Surface::Selection::Collector_WithinSphere col(map, position, radius) ; TraversorE t(map) ; @@ -156,13 +156,13 @@ void filterAverageEdgeAttribute_WithinSphere( template void filterAverageFaceAttribute_WithinSphere( typename PFP::MAP& map, - const FaceAttribute& attIn, - FaceAttribute& attOut, + const FaceAttribute& attIn, + FaceAttribute& attOut, int neigh, - VertexAttribute& position, + VertexAttribute& position, typename PFP::REAL radius) { - FunctorAverage fa(attIn) ; + FunctorAverage > fa(attIn) ; Algo::Surface::Selection::Collector_WithinSphere col(map, position, radius) ; TraversorF t(map) ; @@ -182,7 +182,7 @@ void filterAverageFaceAttribute_WithinSphere( } // namespace Filtering -} +} // namespace Surface } // namespace Algo diff --git a/include/Algo/Filtering/average_normals.h b/include/Algo/Filtering/average_normals.h index 08c9dd4ae28f01eef22728faaf8ca0ca97298cc1..1c2c1b22e6e8a5eb359715ba80f6b5803f8f88b4 100644 --- a/include/Algo/Filtering/average_normals.h +++ b/include/Algo/Filtering/average_normals.h @@ -44,12 +44,12 @@ namespace Filtering template void computeNewPositionsFromFaceNormals( typename PFP::MAP& map, - const VertexAttribute& position, - VertexAttribute& position2, - const FaceAttribute& faceArea, - const FaceAttribute& faceCentroid, - const FaceAttribute& faceNormal, - const FaceAttribute& faceNewNormal) + const VertexAttribute& position, + VertexAttribute& position2, + const FaceAttribute& faceArea, + const FaceAttribute& faceCentroid, + const FaceAttribute& faceNormal, + const FaceAttribute& faceNewNormal) { typedef typename PFP::VEC3 VEC3 ; typedef typename PFP::REAL REAL ; @@ -77,20 +77,21 @@ void computeNewPositionsFromFaceNormals( } template -void filterAverageNormals(typename PFP::MAP& map, const VertexAttribute& position, VertexAttribute& position2) +void filterAverageNormals(typename PFP::MAP& map, const VertexAttribute& position, VertexAttribute& position2) { + typedef typename PFP::MAP::IMPL MAP_IMPL ; typedef typename PFP::VEC3 VEC3 ; typedef typename PFP::REAL REAL ; - FaceAutoAttribute faceArea(map, "faceArea") ; - FaceAutoAttribute faceNormal(map, "faceNormal") ; - FaceAutoAttribute faceCentroid(map, "faceCentroid") ; + FaceAutoAttribute faceArea(map, "faceArea") ; + FaceAutoAttribute faceNormal(map, "faceNormal") ; + FaceAutoAttribute faceCentroid(map, "faceCentroid") ; Algo::Surface::Geometry::computeAreaFaces(map, position, faceArea) ; Algo::Surface::Geometry::computeNormalFaces(map, position, faceNormal) ; Algo::Surface::Geometry::computeCentroidFaces(map, position, faceCentroid) ; - FaceAutoAttribute faceNewNormal(map, "faceNewNormal") ; + FaceAutoAttribute faceNewNormal(map, "faceNewNormal") ; // Compute new normals TraversorF tf(map) ; @@ -120,20 +121,21 @@ void filterAverageNormals(typename PFP::MAP& map, const VertexAttribute -void filterMMSE(typename PFP::MAP& map, float sigmaN2, const VertexAttribute& position, VertexAttribute& position2) +void filterMMSE(typename PFP::MAP& map, float sigmaN2, const VertexAttribute& position, VertexAttribute& position2) { + typedef typename PFP::MAP::IMPL MAP_IMPL ; typedef typename PFP::VEC3 VEC3 ; typedef typename PFP::REAL REAL ; - FaceAutoAttribute faceArea(map, "faceArea") ; - FaceAutoAttribute faceNormal(map, "faceNormal") ; - FaceAutoAttribute faceCentroid(map, "faceCentroid") ; + FaceAutoAttribute faceArea(map, "faceArea") ; + FaceAutoAttribute faceNormal(map, "faceNormal") ; + FaceAutoAttribute faceCentroid(map, "faceCentroid") ; Algo::Surface::Geometry::computeAreaFaces(map, position, faceArea) ; Algo::Surface::Geometry::computeNormalFaces(map, position, faceNormal) ; Algo::Surface::Geometry::computeCentroidFaces(map, position, faceCentroid) ; - FaceAutoAttribute faceNewNormal(map, "faceNewNormal") ; + FaceAutoAttribute faceNewNormal(map, "faceNewNormal") ; // Compute new normals TraversorF tf(map) ; @@ -204,20 +206,21 @@ void filterMMSE(typename PFP::MAP& map, float sigmaN2, const VertexAttribute -void filterTNBA(typename PFP::MAP& map, float sigmaN2, float SUSANthreshold, const VertexAttribute& position, VertexAttribute& position2) +void filterTNBA(typename PFP::MAP& map, float sigmaN2, float SUSANthreshold, const VertexAttribute& position, VertexAttribute& position2) { + typedef typename PFP::MAP::IMPL MAP_IMPL ; typedef typename PFP::VEC3 VEC3 ; typedef typename PFP::REAL REAL ; - FaceAutoAttribute faceArea(map, "faceArea") ; - FaceAutoAttribute faceNormal(map, "faceNormal") ; - FaceAutoAttribute faceCentroid(map, "faceCentroid") ; + FaceAutoAttribute faceArea(map, "faceArea") ; + FaceAutoAttribute faceNormal(map, "faceNormal") ; + FaceAutoAttribute faceCentroid(map, "faceCentroid") ; Algo::Surface::Geometry::computeAreaFaces(map, position, faceArea) ; Algo::Surface::Geometry::computeNormalFaces(map, position, faceNormal) ; Algo::Surface::Geometry::computeCentroidFaces(map, position, faceCentroid) ; - FaceAutoAttribute faceNewNormal(map, "faceNewNormal") ; + FaceAutoAttribute faceNewNormal(map, "faceNewNormal") ; // Compute new normals long nbTot = 0 ; @@ -322,22 +325,23 @@ void filterTNBA(typename PFP::MAP& map, float sigmaN2, float SUSANthreshold, con } template -void filterVNBA(typename PFP::MAP& map, float sigmaN2, float SUSANthreshold, const VertexAttribute& position, VertexAttribute& position2, const VertexAttribute& normal) +void filterVNBA(typename PFP::MAP& map, float sigmaN2, float SUSANthreshold, const VertexAttribute& position, VertexAttribute& position2, const VertexAttribute& normal) { + typedef typename PFP::MAP::IMPL MAP_IMPL ; typedef typename PFP::VEC3 VEC3 ; typedef typename PFP::REAL REAL ; - FaceAutoAttribute faceArea(map, "faceArea") ; - FaceAutoAttribute faceNormal(map, "faceNormal") ; - FaceAutoAttribute faceCentroid(map, "faceCentroid") ; + FaceAutoAttribute faceArea(map, "faceArea") ; + FaceAutoAttribute faceNormal(map, "faceNormal") ; + FaceAutoAttribute faceCentroid(map, "faceCentroid") ; Algo::Surface::Geometry::computeAreaFaces(map, position, faceArea) ; Algo::Surface::Geometry::computeNormalFaces(map, position, faceNormal) ; Algo::Surface::Geometry::computeCentroidFaces(map, position, faceCentroid) ; - VertexAutoAttribute vertexArea(map, "vertexArea") ; - FaceAutoAttribute faceNewNormal(map, "faceNewNormal") ; - VertexAutoAttribute vertexNewNormal(map, "vertexNewNormal") ; + VertexAutoAttribute vertexArea(map, "vertexArea") ; + FaceAutoAttribute faceNewNormal(map, "faceNewNormal") ; + VertexAutoAttribute vertexNewNormal(map, "vertexNewNormal") ; long nbTot = 0 ; long nbAdapt = 0 ; @@ -458,10 +462,10 @@ void filterVNBA(typename PFP::MAP& map, float sigmaN2, float SUSANthreshold, con // CGoGNout <<" adaptive rate = "<< float(nbAdapt)/float(nbTot)< -void sigmaBilateral(typename PFP::MAP& map, const VertexAttribute& position, const VertexAttribute& normal, float& sigmaC, float& sigmaS) +void sigmaBilateral(typename PFP::MAP& map, const VertexAttribute& position, const VertexAttribute& normal, float& sigmaC, float& sigmaS) { typedef typename PFP::VEC3 VEC3 ; @@ -60,7 +60,7 @@ void sigmaBilateral(typename PFP::MAP& map, const VertexAttribute -void filterBilateral(typename PFP::MAP& map, const VertexAttribute& position, VertexAttribute& position2, const VertexAttribute& normal) +void filterBilateral(typename PFP::MAP& map, const VertexAttribute& position, VertexAttribute& position2, const VertexAttribute& normal) { typedef typename PFP::VEC3 VEC3 ; @@ -96,7 +96,7 @@ void filterBilateral(typename PFP::MAP& map, const VertexAttribute -void filterSUSAN(typename PFP::MAP& map, float SUSANthreshold, const VertexAttribute& position, VertexAttribute& position2, const VertexAttribute& normal) +void filterSUSAN(typename PFP::MAP& map, float SUSANthreshold, const VertexAttribute& position, VertexAttribute& position2, const VertexAttribute& normal) { typedef typename PFP::VEC3 VEC3 ; diff --git a/include/Algo/Filtering/functors.h b/include/Algo/Filtering/functors.h index 6eaf8578f3f361eb57fd458cca2103f23c38c172..924cf894e9f6b056c1354e59c90643641ce2731e 100644 --- a/include/Algo/Filtering/functors.h +++ b/include/Algo/Filtering/functors.h @@ -40,16 +40,18 @@ namespace Surface namespace Filtering { -template +template class FunctorAverage : public virtual FunctorType { + typedef typename ATTR_TYPE::DATA_TYPE T ; + protected: - const AttributeHandler& attr ; + const ATTR_TYPE& attr ; T sum ; unsigned int count ; public: - FunctorAverage(const AttributeHandler& a) : FunctorType(), attr(a), sum(0), count(0) + FunctorAverage(const ATTR_TYPE& a) : FunctorType(), attr(a), sum(0), count(0) {} bool operator()(Dart d) { @@ -66,18 +68,19 @@ public: template class FunctorAverageOnSphereBorder : public FunctorMap { + typedef typename PFP::MAP::IMPL MAP_IMPL; typedef typename PFP::VEC3 VEC3; protected: - const VertexAttribute& attr ; - const VertexAttribute& position ; + const VertexAttribute& attr ; + const VertexAttribute& position ; VEC3 center; typename PFP::REAL radius; T sum ; unsigned int count ; public: - FunctorAverageOnSphereBorder(typename PFP::MAP& map, const AttributeHandler& a, const VertexAttribute& p) : + FunctorAverageOnSphereBorder(typename PFP::MAP& map, const VertexAttribute& a, const VertexAttribute& p) : FunctorMap(map), attr(a), position(p), sum(0), count(0) { center = VEC3(0); @@ -99,7 +102,7 @@ public: } // namespace Filtering -} +} // namespace Surface } // namespace Algo diff --git a/include/Algo/Filtering/taubin.h b/include/Algo/Filtering/taubin.h index cfc2be6f882542733dc6a2dc08d6a52a1794d90e..241125c54f1dd354c298091c5e0405e10e7448c6 100644 --- a/include/Algo/Filtering/taubin.h +++ b/include/Algo/Filtering/taubin.h @@ -38,8 +38,10 @@ namespace Filtering { template -void filterTaubin(typename PFP::MAP& map, VertexAttribute& position, VertexAttribute& position2) +void filterTaubin(typename PFP::MAP& map, VertexAttribute& position, VertexAttribute& position2) { + typedef typename PFP::MAP MAP ; + typedef typename PFP::MAP::IMPL MAP_IMPL ; typedef typename PFP::VEC3 VEC3 ; Algo::Surface::Selection::Collector_OneRing c(map) ; @@ -47,9 +49,9 @@ void filterTaubin(typename PFP::MAP& map, VertexAttribute& p const float lambda = 0.6307 ; const float mu = -0.6732 ; - CellMarkerNoUnmark mv(map) ; + CellMarkerNoUnmark mv(map) ; - FunctorAverage fa1(position) ; + FunctorAverage > fa1(position) ; for(Dart d = map.begin(); d != map.end(); map.next(d)) { if( !mv.isMarked(d)) @@ -72,7 +74,7 @@ void filterTaubin(typename PFP::MAP& map, VertexAttribute& p } // unshrinking step - FunctorAverage fa2(position2) ; + FunctorAverage > fa2(position2) ; for(Dart d = map.begin(); d != map.end(); map.next(d)) { if( mv.isMarked(d)) @@ -99,14 +101,15 @@ void filterTaubin(typename PFP::MAP& map, VertexAttribute& p * Taubin filter modified as proposed by [Lav09] */ template -void filterTaubin_modified(typename PFP::MAP& map, VertexAttribute& position, VertexAttribute& position2, typename PFP::REAL radius) +void filterTaubin_modified(typename PFP::MAP& map, VertexAttribute& position, VertexAttribute& position2, typename PFP::REAL radius) { + typedef typename PFP::MAP MAP ; typedef typename PFP::VEC3 VEC3 ; const float lambda = 0.6307 ; const float mu = -0.6732 ; - CellMarkerNoUnmark mv(map) ; + CellMarkerNoUnmark mv(map) ; FunctorAverageOnSphereBorder fa1(map, position, position) ; Algo::Surface::Selection::Collector_WithinSphere c1(map, position, radius) ; @@ -158,7 +161,7 @@ void filterTaubin_modified(typename PFP::MAP& map, VertexAttribute -float computeHaussdorf(typename PFP::MAP& map, const VertexAttribute& originalPosition, const VertexAttribute& position2) +float computeHaussdorf(typename PFP::MAP& map, const VertexAttribute& originalPosition, const VertexAttribute& position2) { typedef typename PFP::VEC3 VEC3 ; @@ -88,7 +88,7 @@ float computeHaussdorf(typename PFP::MAP& map, const VertexAttribute -void computeNoise(typename PFP::MAP& map, long amount, const VertexAttribute& position, VertexAttribute& position2, const VertexAttribute& normal) +void computeNoise(typename PFP::MAP& map, long amount, const VertexAttribute& position, VertexAttribute& position2, const VertexAttribute& normal) { typedef typename PFP::VEC3 VEC3 ; @@ -135,7 +135,7 @@ void computeNoise(typename PFP::MAP& map, long amount, const VertexAttribute -void computeUnfirmAdditiveNoise(typename PFP::MAP& map, float noiseIntensity, const VertexAttribute& position, VertexAttribute& position2) +void computeUnfirmAdditiveNoise(typename PFP::MAP& map, float noiseIntensity, const VertexAttribute& position, VertexAttribute& position2) { typedef typename PFP::VEC3 VEC3 ; @@ -182,7 +182,7 @@ void computeUnfirmAdditiveNoise(typename PFP::MAP& map, float noiseIntensity, co //Gaussian-distributed additive noise //TODO do not touch to boundary vertices template -void computeGaussianAdditiveNoise(typename PFP::MAP& map, float noiseIntensity, const VertexAttribute& position, VertexAttribute& position2) +void computeGaussianAdditiveNoise(typename PFP::MAP& map, float noiseIntensity, const VertexAttribute& position, VertexAttribute& position2) { typedef typename PFP::VEC3 VEC3 ; @@ -252,7 +252,7 @@ namespace Filtering { template -void computeNoise(typename PFP::MAP& map, long amount, const VertexAttribute& position, VertexAttribute& position2) +void computeNoise(typename PFP::MAP& map, long amount, const VertexAttribute& position, VertexAttribute& position2) { typedef typename PFP::VEC3 VEC3 ; @@ -329,7 +329,7 @@ void computeNoise(typename PFP::MAP& map, long amount, const VertexAttribute -void computeNoiseGaussian(typename PFP::MAP& map, long amount, const VertexAttribute& position, VertexAttribute& position2) +void computeNoiseGaussian(typename PFP::MAP& map, long amount, const VertexAttribute& position, VertexAttribute& position2) { typedef typename PFP::VEC3 VEC3 ; diff --git a/include/Container/containerBrowser.hpp b/include/Container/containerBrowser.hpp index 94f1009411220e1bbe13adee5be6e1e8e83a8d80..74ac7dafd24e29980b901f407babf9a9c96bffe8 100644 --- a/include/Container/containerBrowser.hpp +++ b/include/Container/containerBrowser.hpp @@ -23,7 +23,6 @@ *******************************************************************************/ #include "Topology/generic/dart.h" -#include "Topology/generic/attribmap.h" namespace CGoGN { diff --git a/include/Topology/generic/attribmap.h b/include/Topology/generic/attribmap.h deleted file mode 100644 index 3dfb3858b2a7e7e1c0d781e5919976705ab46dbb..0000000000000000000000000000000000000000 --- a/include/Topology/generic/attribmap.h +++ /dev/null @@ -1,52 +0,0 @@ -/******************************************************************************* -* CGoGN: Combinatorial and Geometric modeling with Generic N-dimensional Maps * -* version 0.1 * -* Copyright (C) 2009-2012, IGG Team, LSIIT, University of Strasbourg * -* * -* 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. * -* * -* Web site: http://cgogn.unistra.fr/ * -* Contact information: cgogn@unistra.fr * -* * -*******************************************************************************/ - -#ifndef __ATTRIB_MAP__ -#define __ATTRIB_MAP__ - -#include "Topology/generic/genericmap.h" -#include "Topology/generic/attributeHandler.h" - -namespace CGoGN -{ - -class AttribMap : public GenericMap -{ -private: - void init() ; - -public: - static const unsigned int UNKNOWN_ATTRIB = AttributeContainer::UNKNOWN ; - - AttribMap() ; - - virtual void clear(bool removeAttrib) ; - -} ; - -} // namespace CGoGN - -#include "Topology/generic/attribmap.hpp" - -#endif diff --git a/include/Topology/generic/attribmap.hpp b/include/Topology/generic/attribmap.hpp deleted file mode 100644 index c9d251d9e9e0d591fd05f5bd3290535663793538..0000000000000000000000000000000000000000 --- a/include/Topology/generic/attribmap.hpp +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* -* CGoGN: Combinatorial and Geometric modeling with Generic N-dimensional Maps * -* version 0.1 * -* Copyright (C) 2009-2012, IGG Team, LSIIT, University of Strasbourg * -* * -* 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. * -* * -* Web site: http://cgogn.unistra.fr/ * -* Contact information: cgogn@unistra.fr * -* * -*******************************************************************************/ - -namespace CGoGN -{ - - -} // namespace CGoGN diff --git a/include/Topology/map/map2.h b/include/Topology/map/map2.h index e7376410f5fff83c3a51879236a7538070e69111..662be4b148ea6f732d2f71be80914c544e8ec8cf 100644 --- a/include/Topology/map/map2.h +++ b/include/Topology/map/map2.h @@ -517,7 +517,6 @@ public: unsigned int closeMap(bool forboundary = true); //@} - /*! @name Compute dual * These functions compute the dual mesh *************************************************************************/ diff --git a/src/Topology/generic/attribmap.cpp b/src/Topology/generic/attribmap.cpp deleted file mode 100644 index 15df2180ad9433aab9fa16a41b42ddd684272f99..0000000000000000000000000000000000000000 --- a/src/Topology/generic/attribmap.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* -* CGoGN: Combinatorial and Geometric modeling with Generic N-dimensional Maps * -* version 0.1 * -* Copyright (C) 2009-2012, IGG Team, LSIIT, University of Strasbourg * -* * -* 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. * -* * -* Web site: http://cgogn.unistra.fr/ * -* Contact information: cgogn@unistra.fr * -* * -*******************************************************************************/ - -#include "Topology/generic/attribmap.h" - -namespace CGoGN -{ - -void AttribMap::init() -{ -} - -AttribMap::AttribMap() : GenericMap() -{ - init() ; -} - -void AttribMap::clear(bool removeAttrib) -{ - GenericMap::clear(removeAttrib) ; - if (removeAttrib) - init() ; -} - -} // namespace CGoGN diff --git a/src/Topology/generic/genericmap.cpp b/src/Topology/generic/genericmap.cpp index ec14940bea4b59557940ff3f4025e1c4319671f0..3614746969fe80fb3a85036c6ccaaaa3004396b5 100644 --- a/src/Topology/generic/genericmap.cpp +++ b/src/Topology/generic/genericmap.cpp @@ -362,7 +362,7 @@ void GenericMap::restore_shortcuts() ss << "quickLocalIncidentTraversal_" << j; m_quickLocalIncidentTraversal[orbit][j] = cont.getDataVector< NoTypeNameAttribute > >(ss.str()) ; std::stringstream ss2; - ss2 << "quickLocalAdjacentTraversal" << j; + ss2 << "quickLocalAdjacentTraversal_" << j; m_quickLocalAdjacentTraversal[orbit][j] = cont.getDataVector< NoTypeNameAttribute > >(ss2.str()) ; } diff --git a/src/Topology/generic/mapMono.cpp b/src/Topology/generic/mapMono.cpp index f3cac8c1d4c76a7eb387368c2a4821158fc1f42e..dc61c3583a8c75cf98cde99efaf9dddf3570bf7a 100644 --- a/src/Topology/generic/mapMono.cpp +++ b/src/Topology/generic/mapMono.cpp @@ -108,7 +108,7 @@ bool MapMono::loadMapBin(const std::string& filename) unsigned int nbo = *ptr_nbo; if (nbo != NB_ORBITS) { - CGoGNerr << "Wrond max orbit number in file" << CGoGNendl; + CGoGNerr << "Wrong max orbit number in file" << CGoGNendl; return false; } diff --git a/src/Topology/generic/mapMulti.cpp b/src/Topology/generic/mapMulti.cpp index ac0c51c2f6e9739954db17637547fc70fa0e1f56..b4d50cfdded84690b27d75e9cfa3c4a4cef3eb2b 100644 --- a/src/Topology/generic/mapMulti.cpp +++ b/src/Topology/generic/mapMulti.cpp @@ -286,7 +286,7 @@ bool MapMulti::loadMapBin(const std::string& filename) unsigned int nbo = *ptr_nbo; if (nbo != NB_ORBITS) { - CGoGNerr << "Wrond max orbit number in file" << CGoGNendl; + CGoGNerr << "Wrong max orbit number in file" << CGoGNendl; return false; }