MCPcopy Create free account
hub / github.com/DavidColson/Polybox / DrawIcosahedron

Function DrawIcosahedron

source/shapes.cpp:148–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146// ***********************************************************************
147
148void DrawIcosahedron(i32 maxDepth) {
149 BeginObject3D(EPrimitiveType::Triangles);
150 for (int i = 0; i < NFACE; i++) {
151 SubDivide( vdata[tindices[i][0]], vdata[tindices[i][1]], vdata[tindices[i][2]], maxDepth);
152 }
153 EndObject3D();
154}

Callers

nothing calls this directly

Calls 3

BeginObject3DFunction · 0.85
SubDivideFunction · 0.85
EndObject3DFunction · 0.85

Tested by

no test coverage detected