MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / BuildEars

Method BuildEars

include/imgui/imgui_draw.cpp:1920–1932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1918}
1919
1920void ImTriangulator::BuildEars()
1921{
1922 ImTriangulatorNode* n1 = _Nodes;
1923 for (int i = _TrianglesLeft; i >= 0; i--, n1 = n1->Next)
1924 {
1925 if (n1->Type != ImTriangulatorNodeType_Convex)
1926 continue;
1927 if (!IsEar(n1->Prev->Index, n1->Index, n1->Next->Index, n1->Prev->Pos, n1->Pos, n1->Next->Pos))
1928 continue;
1929 n1->Type = ImTriangulatorNodeType_Ear;
1930 _Ears.push_back(n1);
1931 }
1932}
1933
1934void ImTriangulator::GetNextTriangle(unsigned int out_triangle[3])
1935{

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected