112 result.
m_bIsSpline = SplineShapeEntity.Cast(shapeEntity) != null;
145 array<int> pointTesselatedIndices = {};
148 array<float> polygon2D = {};
161 diff =
vector.Direction(prevTessPoint, currTessPoint);
164 ray.m_vPosition = currTessPoint;
172 else if (i < tessCount - 1)
173 ray.m_vDirection =
vector.Direction(
174 vector.Direction(currTessPoint, prevTessPoint).Normalized(),
178 ray.m_vDirection =
vector.Direction(prevTessPoint, currTessPoint).Normalized();
182 if (currTessPoint == currAnchorPoint)
184 pointTesselatedIndices.Insert(i);
188 if (anchorIndex >= pointsCount)
213 polygon2D.Insert(ray.m_vPosition[0]);
214 polygon2D.Insert(ray.m_vPosition[2]);
217 prevTessPoint = currTessPoint;
223 int prevIndex = pointTesselatedIndices[0];
225 for (
int i = 1, count = pointTesselatedIndices.Count(); i < count; i++)
227 nextIndex = pointTesselatedIndices[i];
229 prevIndex = nextIndex;