MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / insertUV1

Method insertUV1

Engine/source/collision/optimizedPolyList.cpp:158–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158U32 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
180U32 OptimizedPolyList::insertPlane(const PlaneF& plane)
181{

Callers 1

buildPolyListMethod · 0.80

Calls 3

sizeMethod · 0.45
equalMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected