wrong define FACE_N instead of FACE_FN
This commit is contained in:
parent
2c95c0cd3a
commit
ec3c53d1d5
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.4 2004/03/29 08:37:09 cignoni
|
||||||
|
missing include
|
||||||
|
|
||||||
Revision 1.3 2004/03/10 00:52:38 cignoni
|
Revision 1.3 2004/03/10 00:52:38 cignoni
|
||||||
Moved geometric stuff to the space/triangle class
|
Moved geometric stuff to the space/triangle class
|
||||||
|
|
||||||
|
@ -199,29 +202,29 @@ protected:
|
||||||
public:
|
public:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// Return the reference of the normal to the face (if __VCGLIB_FACE_N is defined).
|
/// Return the reference of the normal to the face (if __VCGLIB_FACE_FN is defined).
|
||||||
inline CoordType & N()
|
inline CoordType & N()
|
||||||
{
|
{
|
||||||
#ifdef __VCGLIB_FACE_N
|
#ifdef __VCGLIB_FACE_FN
|
||||||
return _n;
|
return _n;
|
||||||
#else
|
#else
|
||||||
assert(0);
|
assert(0);
|
||||||
return *(CoordType *)0;
|
return *(CoordType *)0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
/// Return the reference of the normal to the face (if __VCGLIB_FACE_N is defined).
|
/// Return the reference of the normal to the face (if __VCGLIB_FACE_FN is defined).
|
||||||
inline const CoordType & N() const
|
inline const CoordType & N() const
|
||||||
{
|
{
|
||||||
#ifdef __VCGLIB_FACE_N
|
#ifdef __VCGLIB_FACE_FN
|
||||||
return _n;
|
return _n;
|
||||||
#else
|
#else
|
||||||
return *(CoordType *)0;
|
return *(CoordType *)0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
/// Return the reference of the normal to the face (if __VCGLIB_FACE_N is defined).
|
/// Return the reference of the normal to the face (if __VCGLIB_FACE_FN is defined).
|
||||||
inline const CoordType cN() const
|
inline const CoordType cN() const
|
||||||
{
|
{
|
||||||
#ifdef __VCGLIB_FACE_N
|
#ifdef __VCGLIB_FACE_FN
|
||||||
return _n;
|
return _n;
|
||||||
#else
|
#else
|
||||||
return *(CoordType *)0;
|
return *(CoordType *)0;
|
||||||
|
@ -231,15 +234,15 @@ public:
|
||||||
/// Calculate the normal to the face, the value is store in the field _n of the face
|
/// Calculate the normal to the face, the value is store in the field _n of the face
|
||||||
void ComputeNormal()
|
void ComputeNormal()
|
||||||
{
|
{
|
||||||
#ifdef __VCGLIB_FACE_N
|
#ifdef __VCGLIB_FACE_FN
|
||||||
_n = vcg::Normal(V(0)->cP(), V(1)->cP(), V(2)->cP());
|
_n = vcg::Normal(*this);
|
||||||
#else
|
#else
|
||||||
assert(0);
|
assert(0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
void ComputeNormalizedNormal()
|
void ComputeNormalizedNormal()
|
||||||
{
|
{
|
||||||
#ifdef __VCGLIB_FACE_N
|
#ifdef __VCGLIB_FACE_FN
|
||||||
_n = vcg::NormalizedNormal(V(0)->cP(), V(1)->cP(), V(2)->cP());
|
_n = vcg::NormalizedNormal(V(0)->cP(), V(1)->cP(), V(2)->cP());
|
||||||
#else
|
#else
|
||||||
assert(0);
|
assert(0);
|
||||||
|
|
Loading…
Reference in New Issue