Crystal Space 2.0.0: C.4.3 iPolygonMesh deprecation

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

### C.4.3 iPolygonMesh deprecation

The `iPolygonMesh` interface and everything related to that interface has been deprecated. This implies that the following classes, interfaces, and methods are now deprecated:

In addition the `‘polymesh’` keyword in world files has been deprecated. Instead use `‘trimesh’`:

    <trimesh>
      ...
      <id>colldet</id>
      <id>viscull</id>
      ...
    </trimesh>

Here is an example on how to fetch the collision detection triangle mesh:

    iObjectModel* model = ...;
    csRef<iStringSet> strset = csQueryRegistry<iStringSet> (object_reg);
    csStringID id = strset->Request ("colldet");
    iTriangleMesh* trimesh = model->GetTriangleData (id);

This document was generated using texi2html 1.76.