| 52 | } |
| 53 | |
| 54 | U32 VertexPolyList::addPoint( const Point3F &p ) |
| 55 | { |
| 56 | // Apply the transform |
| 57 | Point3F tp = p * mScale; |
| 58 | mMatrix.mulP( tp ); |
| 59 | |
| 60 | Vector<Point3F>::iterator iter = mVertexList.begin(); |
| 61 | for ( ; iter != mVertexList.end(); iter++ ) |
| 62 | { |
| 63 | if ( iter->equal( tp ) ) |
| 64 | return iter - mVertexList.begin(); |
| 65 | } |
| 66 | |
| 67 | mVertexList.push_back( tp ); |
| 68 | return mVertexList.size() - 1; |
| 69 | } |