Text archives Help
- From: bigler@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1547 - trunk/Model/Groups
- Date: Tue, 24 Jul 2007 16:02:22 -0600 (MDT)
Author: bigler
Date: Tue Jul 24 16:02:22 2007
New Revision: 1547
Modified:
trunk/Model/Groups/Mesh.cc
Log:
Model/Groups/Mesh.cc
Revert my change to add(Object*).
Removed some old commented out debug per Thiago's suggestion.
Modified: trunk/Model/Groups/Mesh.cc
==============================================================================
--- trunk/Model/Groups/Mesh.cc (original)
+++ trunk/Model/Groups/Mesh.cc Tue Jul 24 16:02:22 2007
@@ -131,11 +131,8 @@
void Mesh::add(Object* obj)
{
- WaldTriangle* waldtri = dynamic_cast<WaldTriangle*>(obj);
- if (waldtri)
- addTriangle(obj);
- else
- throw SCIRun::InternalError(string("Illegal type of object added to mesh
class") + __func__, __FILE__, __LINE__);
+ //I don't think this should be allowed.
+ throw SCIRun::InternalError(string("Illegal call to ") + __func__,
__FILE__, __LINE__);
}
void Mesh::set( int i, Object *obj )
@@ -248,8 +245,6 @@
void Mesh::removeDegenerateTriangles()
{
- //return;
- // size_t original_size = vertex_indices.size();
for (size_t i=0; i < vertex_indices.size(); i+=3) {
const int index0 = vertex_indices[i+0];
const int index1 = vertex_indices[i+1];
- [MANTA] r1547 - trunk/Model/Groups, bigler, 07/24/2007
Archive powered by MHonArc 2.6.16.