MCPcopy Create free account
hub / github.com/PCGEx/PCGExtendedToolkit / BuildPath

Method BuildPath

Source/PCGExtendedToolkit/Private/Paths/PCGExPaths.cpp:321–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319 }
320
321 void FPath::BuildPath(const double Expansion)
322 {
323 if (bClosedLoop) { NumEdges = NumPoints; }
324 else { NumEdges = LastIndex; }
325 LastEdge = NumEdges - 1;
326
327 Edges.SetNumUninitialized(NumEdges);
328 for (int i = 0; i < NumEdges; i++)
329 {
330 const FPathEdge& E = (Edges[i] = FPathEdge(i, (i + 1) % NumPoints, Positions, Expansion));
331 Bounds += E.Bounds.GetBox();
332 }
333 }
334
335#pragma region FPathEdgeLength
336

Callers

nothing calls this directly

Calls 1

FPathEdgeClass · 0.85

Tested by

no test coverage detected