public static EdgeEval ( LibTessDotNet.MeshUtils.Vertex u, LibTessDotNet.MeshUtils.Vertex v, LibTessDotNet.MeshUtils.Vertex w ) : Real | ||
u | LibTessDotNet.MeshUtils.Vertex | |
v | LibTessDotNet.MeshUtils.Vertex | |
w | LibTessDotNet.MeshUtils.Vertex | |
return | Real |
private bool EdgeLeq(ActiveRegion reg1, ActiveRegion reg2) { MeshUtils.Edge eUp = reg1._eUp; MeshUtils.Edge eUp2 = reg2._eUp; if (eUp._Dst == _event) { if (eUp2._Dst == _event) { if (Geom.VertLeq(eUp._Org, eUp2._Org)) { return(Geom.EdgeSign(eUp2._Dst, eUp._Org, eUp2._Org) <= 0f); } return(Geom.EdgeSign(eUp._Dst, eUp2._Org, eUp._Org) >= 0f); } return(Geom.EdgeSign(eUp2._Dst, _event, eUp2._Org) <= 0f); } if (eUp2._Dst == _event) { return(Geom.EdgeSign(eUp._Dst, _event, eUp._Org) >= 0f); } float num = Geom.EdgeEval(eUp._Dst, _event, eUp._Org); float num2 = Geom.EdgeEval(eUp2._Dst, _event, eUp2._Org); return(num >= num2); }