Ejemplo n.º 1
0
 public CircleAssitor()
 {
     CurrentTriangle = new Triangle();
 }
Ejemplo n.º 2
0
        public Triangle Clone(double z, bool switchP1andP2)
        {
            var newTriangle = new Triangle();
            newTriangle.P0 = GetPointAdjustedBy(this.P0, new Point3D(0, 0, z));

            var point1 = GetPointAdjustedBy(this.P1, new Point3D(0, 0, z));
            var point2 = GetPointAdjustedBy(this.P2, new Point3D(0, 0, z));

            if (!switchP1andP2)
            {
                newTriangle.P1 = point1;
                newTriangle.P2 = point2;
            }
            else
            {
                newTriangle.P1 = point2;
                newTriangle.P2 = point1;
            }
            return newTriangle;
        }
Ejemplo n.º 3
0
 private static Model3DGroup CreateTriangleModel(MaterialGroup materialGroup, Triangle triangle)
 {
     return CreateTriangleModel(materialGroup, triangle.P0, triangle.P1, triangle.P2);
 }