Minor changes
This commit is contained in:
parent
eda550ba49
commit
9d106c50c1
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.13 2005/01/28 17:56:57 pietroni
|
||||||
|
changed HasVFTopology function... control if both vertex and face define the vf topology
|
||||||
|
|
||||||
Revision 1.12 2004/10/28 00:54:34 cignoni
|
Revision 1.12 2004/10/28 00:54:34 cignoni
|
||||||
Better Doxygen documentation
|
Better Doxygen documentation
|
||||||
|
|
||||||
|
@ -88,6 +91,7 @@ namespace tri {
|
||||||
template < class VertContainerType, class FaceContainerType >
|
template < class VertContainerType, class FaceContainerType >
|
||||||
class TriMesh{
|
class TriMesh{
|
||||||
public:
|
public:
|
||||||
|
typedef TriMesh<VertContainerType, FaceContainerType> MeshType;
|
||||||
typedef FaceContainerType FaceContainer;
|
typedef FaceContainerType FaceContainer;
|
||||||
typedef VertContainerType VertContainer;
|
typedef VertContainerType VertContainer;
|
||||||
typedef typename VertContainer::value_type VertexType;
|
typedef typename VertContainer::value_type VertexType;
|
||||||
|
@ -148,12 +152,12 @@ public:
|
||||||
|
|
||||||
inline int MemUsed() const
|
inline int MemUsed() const
|
||||||
{
|
{
|
||||||
return sizeof(MMTYPE)+sizeof(MVTYPE)*vert.size()+sizeof(MFTYPE)*face.size();
|
return sizeof(MeshType)+sizeof(VertexType)*vert.size()+sizeof(FaceType)*face.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int MemNeeded() const
|
inline int MemNeeded() const
|
||||||
{
|
{
|
||||||
return sizeof(MMTYPE)+sizeof(MVTYPE)*vn+sizeof(MFTYPE)*fn;
|
return sizeof(MeshType)+sizeof(VertexType)*vn+sizeof(FaceType)*fn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,10 @@
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
History
|
History
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.22 2005/03/18 00:13:45 cignoni
|
||||||
|
Removed NormalizedNormalV (out of standard and wrong) and
|
||||||
|
added the member functions Normal and NormalizedNormal() (just like for faces)
|
||||||
|
|
||||||
Revision 1.21 2004/10/28 00:50:49 cignoni
|
Revision 1.21 2004/10/28 00:50:49 cignoni
|
||||||
Better Doxygen documentation
|
Better Doxygen documentation
|
||||||
|
|
||||||
|
@ -57,6 +61,10 @@ Revision 1.12 2004/05/10 13:31:13 ganovelli
|
||||||
function for edge adjacency added
|
function for edge adjacency added
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.22 2005/03/18 00:13:45 cignoni
|
||||||
|
Removed NormalizedNormalV (out of standard and wrong) and
|
||||||
|
added the member functions Normal and NormalizedNormal() (just like for faces)
|
||||||
|
|
||||||
Revision 1.21 2004/10/28 00:50:49 cignoni
|
Revision 1.21 2004/10/28 00:50:49 cignoni
|
||||||
Better Doxygen documentation
|
Better Doxygen documentation
|
||||||
|
|
||||||
|
@ -727,7 +735,7 @@ public:
|
||||||
template <bool NormalizeFlag>
|
template <bool NormalizeFlag>
|
||||||
const CoordType GenericNormal()
|
const CoordType GenericNormal()
|
||||||
{
|
{
|
||||||
if (!v->HasVFAdjacency())
|
if (!HasVFAdjacency())
|
||||||
{
|
{
|
||||||
assert(0);
|
assert(0);
|
||||||
return (VERTEX_TYPE::CoordType (0,0,0));
|
return (VERTEX_TYPE::CoordType (0,0,0));
|
||||||
|
@ -735,8 +743,8 @@ const CoordType GenericNormal()
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
vcg::face::VFIterator<typename VERTEX_TYPE::FaceType> VFi=vcg::face::VFIterator<typename VERTEX_TYPE::FaceType>();
|
vcg::face::VFIterator<typename VERTEX_TYPE::FaceType> VFi=vcg::face::VFIterator<typename VERTEX_TYPE::FaceType>();
|
||||||
VFi.f=v->VFp();
|
VFi.f=VFp();
|
||||||
VFi.z=v->VFi();
|
VFi.z=VFi();
|
||||||
typename VERTEX_TYPE::CoordType N= typename VERTEX_TYPE::CoordType(0,0,0);
|
typename VERTEX_TYPE::CoordType N= typename VERTEX_TYPE::CoordType(0,0,0);
|
||||||
while (!VFi.End())
|
while (!VFi.End())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue