INNER CODE UNIT · C++
rTerrainIco
TheOpenSpaceProgram/osp-magnum · src/adera_app/scenario_setup.cpp:396
auto const& rTerrainIco = *reinterpret_cast<ACtxTerrainIco*>(userData[0]);
ico_calc_middles(rTerrainIco.radius, corners, middles, rSkData);
ico_calc_sphere_tri_center(groupId, rTerrainIco.radius + rTerrainIco.height, rTerrainIco.height, rSkel, rSkData);
};
// Nothing to do on un-subdivide
rSP.onUnsubdiv = [] (
SkTriId tri,
SkeletonTriangle &rTri,
SubdivTriangleSkeleton &rSkel,
SkeletonVertexData &rSkData,
SkeletonSubdivScratchpad::UserData_t userData) noexcept
{ };
// Calculate distance thresholds for when skeleton triangles should be subdivided and
// unsubdivided. These threshold values are used by
// subdivide_level_by_distance(...) and unsubdivide_select_by_distance(...)
for (int level = 0; level < gc_maxSubdivLevels; ++level)