-- @/=[C]:-1
function isTriangleBroken(...)
local function isTriangleBroken(triId)
return collTriState[triId] == nil
if partsSelected[tri.partPath or v.config.partsTree.partPath] then
local triBroken = obj:isTriangleBroken(i)
if partsSelected[tri.partPath or v.config.partsTree.partPath] then
if tri.triangleType ~= 2 and not obj:isTriangleBroken(i) then
local frontCol = triTypesColors[TRI_NORMAL]