Miscellany
public text v1 · immutablestatic float EDGE_getSharpness(CCGEdge *e, int lvl) {
if (lvl==0)
return e->crease;
else if (e->crease==0.0f)
return 0.0;
else if (e->crease - (float)lvl < 0.0)
return 0.0;
else
return e->crease - (float)lvl;
}