Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 3, 2007, 3:19:45 PM (18 years ago)
Author:
patrick
Message:

some warnings fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mount_points/src/lib/graphics/importer/static_model.cc

    r10147 r10165  
    116116
    117117      // now check if it is a mount point identifier
    118       if( this->data->getGroups().size() != 5) {
    119         PRINTF(1)("the face count of %s is wrong, perhaps you missnamed this object or used the wrong mount point object\n", groupName.c_str());
     118      if( (*groupIt)._faces.size() != 6) {        PRINTF(1)("the face count of %s is wrong, perhaps you missnamed this object or used the wrong mount point object (got %i faces)\n", groupName.c_str(), (*groupIt)._faces.size());
    120119      }
    121120
     
    135134      }
    136135
    137       // vertex with the max count is the up-point
     136      // vertex with the max surrounding faces is the up-point (pyramid like object)
    138137      std::vector<Vector>::const_iterator it = vertices.begin();
    139138      Vector tmpPoint;
     
    167166      center /= vertices.size();
    168167
     168      PRINTF(0)("Up Point\n");
     169      upPoint.debug();
     170
     171      PRINTF(0)("Center\n");
     172      center.debug();
    169173
    170174    }
Note: See TracChangeset for help on using the changeset viewer.