Esempio n. 1
0
 public bool Contains(ControlVertex vert1, ControlVertex vert2)
 {
     return (FirstVertex == vert1.Position && SecondVertex == vert2.Position) ||
            (SecondVertex == vert2.Position && FirstVertex == vert1.Position);
 }
Esempio n. 2
0
        public void MakeVertex(Vector3 pos)
        {
            if (_controlVertices.Any(x => x.Position == pos)) return;

            var cv = new ControlVertex(pos);
            _controlVertices.Add(cv);
            var t = _vertexPositions.ToList();
            t.Add(pos);
            _vertexPositions = t.ToArray();

            RecalcBoundingBox();
        }