public static bool IsOnPlane(Vector3[] normals, Vector3 normal, float threshold) { for (int i = 0; i < 3; i++) { if (!SelectedTriangles.AreSimilarVectors(normals [i], normal, threshold)) { return(false); } } return(true); }
void Awake() { selected = new SelectedTriangles(); modes = GetComponent <BModes>(); highlight = GetComponent <BHighlight>(); }