title: Bullet: Load/Save collisionshape
body: <p>I am trying to prefent looping all triangles and add each one to the btTriangleMesh. (Only loading has to be fast, saving speed can be ignored.)</p>
  
  <p>So what is the fastest method for loading collision data from a file.
  How about these two:</p>
  
  <ol>
  <li><p>Saving a Vertex(bt3Vector) &amp; Index(DWORD) array and on loading just
  resize the btTriangleMesh and set the data at once.</p></li>
  <li><p>Using the serializeSingleShape() for saving and for loading
  something like the ReadBulletSample (or init a new btDynamicsWorld,
  read the file with  the BulletWorldImporter, get the collision
  object and cleanup the btDynamicsWorld var)</p></li>
  </ol>
  
  <p>If there are any other methods, please tell me.
  The model geometry has these two buffers:</p>
  
  <pre><code>Vertex = vector&lt;float[3]&gt;
  Index = vector&lt;DWORD&gt;
  </code></pre>