示例#1
0
            public void ValidateValues()
            {
                var minPos = Vector2.Min(P1, P2, P3);
                var maxPos = Vector2.Max(P1, P2, P3);

                if (minPos.Y < 0 && Math.Abs(minPos.Y) > LineThickness)
                {
                    NeedsToBeClipped = true;
                }

                if (maxPos.Y < LineThickness && (maxPos.Y - minPos.Y) > LineThickness)
                {
                    IsOutsideTriangle = true;
                }

                //Dead End
                if (!PlanarEdge.IsVertexLinked(TargetVertex))
                {
                    //TO IMPROVE
                    IsDeadEnd        = true;
                    NeedsToBeClipped = true;
                }
            }