Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10134 in orxonox.OLD


Ignore:
Timestamp:
Dec 20, 2006, 7:46:30 PM (17 years ago)
Author:
patrick
Message:

mount point work

File:
1 edited

Legend:

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

    r10090 r10134  
    113113      PRINTF(0)("Found a MountPoint: %s\n", groupName.c_str());
    114114
     115      // now check if it is a mount point identifier
     116      if( groupPtr->faceCount != 5) {
     117        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      }
     119
     120      // now extract the direction from the length:
     121      ModelFace* mf = groupPtr->firstFace;
     122      for( ; mf != NULL; mf = mf->next)
     123      {
     124        // now go through all modelfaceelements
     125        ModelFaceElement* mfe = mf->firstElem;
     126        for( ; mfe != NULL; mfe = mfe->next)
     127        {
     128          int vert = mfe->vertexNumber;
     129          this->data->getVertices()[vert*3];
     130
     131        }
     132      }
     133
    115134    }
     135
    116136  }
     137
     138
    117139}
    118140
Note: See TracChangeset for help on using the changeset viewer.