------------------------------------------------------------------------------------------------ Constructs a spatially sorted representation from the given position array. define the reference plane. We choose some arbitrary vector away from all basic axes in the hope that no model spreads all its vertices along this plane.
| 58 | // define the reference plane. We choose some arbitrary vector away from all basic axes |
| 59 | // in the hope that no model spreads all its vertices along this plane. |
| 60 | SpatialSort::SpatialSort(const aiVector3D *pPositions, unsigned int pNumPositions, unsigned int pElementOffset) : |
| 61 | mPlaneNormal(PlaneInit), |
| 62 | mFinalized(false) { |
| 63 | mPlaneNormal.Normalize(); |
| 64 | Fill(pPositions, pNumPositions, pElementOffset); |
| 65 | } |
| 66 | |
| 67 | // ------------------------------------------------------------------------------------------------ |
| 68 | SpatialSort::SpatialSort() : |