protected bool IsTopEdge(TriPyramid triPyramid, FormElement formElement) { if (!formElement.IsFull()) { return(false); } if (formElement.count != 2) { return(false); } string[] fields = formElement.fields; bool result = (triPyramid.IsSignTop(fields[0]) && triPyramid.IsSignBottom(fields[1])) || (triPyramid.IsSignTop(fields[1]) && triPyramid.IsSignBottom(fields[0])); return(result); }
protected bool IsTopTCorner(TriPyramid triPyramid, FormElement formElement) { if (!formElement.IsFull()) { return(false); } if (formElement.count != 3) { return(false); } string[] fields = formElement.fields; bool result = triPyramid.IsSignTop(fields[1]) && triPyramid.IsSignBottom(fields[0]) && triPyramid.IsSignBottom(fields[2]); result = result && (fields[0] != fields[1]) && (fields[0] != fields[2]) && (fields[1] != fields[2]); return(result); }