Added missing function data_vector to bool specialization. Added corresponding unit tests. closes #451

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@537 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2012-02-24 10:11:01 +00:00
parent 2a8b1dd832
commit b808c1020d
4 changed files with 224 additions and 1 deletions

View File

@@ -332,6 +332,12 @@ public:
public:
/// Get reference to property vector (be careful, improper usage, e.g. resizing, may crash OpenMesh!!!)
vector_type& data_vector() {
return data_;
}
/// Access the i'th element. No range check is performed!
reference operator[](int _idx)
{

View File

@@ -81,7 +81,9 @@ distPointTriangleSquared( const Point& _p,
// Check if the triangle is degenerated
if (d < FLT_MIN && d > -FLT_MIN) {
std::cerr << "distPointTriangleSquared: Degenerated triangle !\n";
// std::cerr << "distPointTriangleSquared: Degenerated triangle !\n";
// std::cerr << "Points are : " << _v0 << " " << _v1 << " " << _v2 << std::endl;
// std::cerr << "d is " << d << std::endl;
return -1.0;
}
double invD = 1.0 / d;