MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / SpatialSort

Method SpatialSort

Dependencies/assimp/code/Common/SpatialSort.cpp:60–65  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Constructs a spatially sorted representation from the given position array. define the reference plane. We choose some arbitrary vector away from all basic axes in the hope that no model spreads all its vertices along this plane.

Source from the content-addressed store, hash-verified

58// define the reference plane. We choose some arbitrary vector away from all basic axes
59// in the hope that no model spreads all its vertices along this plane.
60SpatialSort::SpatialSort(const aiVector3D *pPositions, unsigned int pNumPositions, unsigned int pElementOffset) :
61 mPlaneNormal(PlaneInit),
62 mFinalized(false) {
63 mPlaneNormal.Normalize();
64 Fill(pPositions, pNumPositions, pElementOffset);
65}
66
67// ------------------------------------------------------------------------------------------------
68SpatialSort::SpatialSort() :

Callers

nothing calls this directly

Calls 1

NormalizeMethod · 0.45

Tested by

no test coverage detected