vcglib/vcg/simplex/face
Paolo Cignoni 8a631d48c1 Corrected a significant bug in the reflection types for ocf components.
Changed the basic reflection mechanism: Instead of having a function templates over all the four containers now we template over Trimesh and we rely on a second function templated on face/vert that wants a vector<face> ; this second function only is eventually overloaded by another function that needs a vector_ocf of faces. 

That is Before we had:
- in complex.h

template < class  CType0, class CType1, class CType2 , class CType3>
bool HasPerFaceVFAdjacency   (const TriMesh < CType0, CType1, CType2, CType3> & /*m*/) {return TriMesh < CType0 , CType1, CType2, CType3>::FaceContainer::value_type::HasVFAdjacency();}

- in the component_ocf.h

template < class VertContainerType, class FaceType, class Container1, class Container2  >
		bool HasPerFaceVFAdjacency (const TriMesh < VertContainerType , face::vector_ocf< FaceType >, Container1, Container2 > & m)
	{
	  if(FaceType::HasVFAdjacencyOcf()) return m.face.IsVFAdjacencyEnabled();
	  else return FaceType::FaceType::HasVFAdjacency();
	}


While now we have:
- in complex.h

template < class FaceType  > bool   FaceVectorHasPerFaceVFAdjacency     (const std::vector<FaceType  > &) {  return FaceType::HasVFAdjacency(); }
template < class TriMeshType> bool   HasPerFaceVFAdjacency     (const TriMeshType &m) { return tri::FaceVectorHasPerFaceVFAdjacency  (m.vert); }

- and in component_ocf.h

template < class FaceType >
  bool FaceVectorHasPerFaceVFAdjacency(const face::vector_ocf<FaceType> &fv)
  {
    if(FaceType::HasVFAdjacencyOcf()) return fv.IsVFAdjacencyEnabled();
    else return FaceType::HasVFAdjacency();
  }
2012-03-31 01:16:58 +00:00
..
base.h added CurvatureDir to Face 2012-03-28 12:39:22 +00:00
base_old.h [SIMPLEXplus promotion] 2008-12-19 10:30:51 +00:00
component.h added CurvatureDir to Face 2012-03-28 12:39:22 +00:00
component_occ.h [SIMPLEXplus promotion] 2008-12-19 10:30:51 +00:00
component_ocf.h Corrected a significant bug in the reflection types for ocf components. 2012-03-31 01:16:58 +00:00
component_polygon.h Rolled back 2011-10-05 15:04:40 +00:00
component_rt.h [SIMPLEXplus promotion] 2008-12-19 10:30:51 +00:00
distance.h CHANGE to the VERY USED PointDistanceBase, the basic functor used to find the closest point to a face in all the grids. 2012-03-14 15:59:42 +00:00
face_old.h [SIMPLEXplus promotion] 2008-12-19 10:30:51 +00:00
jumping_pos.h commented some code 2011-03-22 11:53:48 +00:00
pos.h added assert in the VFIterator to handle uninitialized topology. 2012-03-14 16:02:30 +00:00
topology.h added VFOrderedStarVF_FF function 2012-03-29 16:36:01 +00:00