| 156 | } |
| 157 | |
| 158 | U32 OptimizedPolyList::insertUV1(const Point2F& uv) |
| 159 | { |
| 160 | S32 retIdx = -1; |
| 161 | |
| 162 | for (U32 i = 0; i < mUV1s.size(); i++) |
| 163 | { |
| 164 | if (mUV1s[i].equal(uv)) |
| 165 | { |
| 166 | retIdx = i; |
| 167 | break; |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | if (retIdx == -1) |
| 172 | { |
| 173 | retIdx = mUV1s.size(); |
| 174 | mUV1s.push_back(uv); |
| 175 | } |
| 176 | |
| 177 | return (U32)retIdx; |
| 178 | } |
| 179 | |
| 180 | U32 OptimizedPolyList::insertPlane(const PlaneF& plane) |
| 181 | { |
no test coverage detected