예제 #1
0
 public static PointyTriShapeInfo <TCell> Ring <TCell>(this PointyTriOp <TCell> op)
 {
     return(op
            .BeginGroup()            //If you do not use begin group and EndGroup
            // the shapes will behave unexpectedly when combined
            // with other shapes.
            .Hexagon(4)
            .Translate(-2, -2)
            .Difference()
            .Hexagon(2)
            .Translate(-5, 4)                  //4 -1 > 9 5
            .Intersection()
            .Star(3)
            .Translate(0, 3)
            .EndGroup(op));
 }
예제 #2
0
 public static PointyTriShapeInfo <TCell> ChainMail <TCell>(this PointyTriOp <TCell> op)
 {
     return(op
            .BeginGroup()
            .Chain()
            .Translate(0, 4)
            .Union()
            .Chain()
            .Translate(0, 4)
            .Union()
            .Chain()
            .Translate(0, 4)
            .Union()
            .Chain()
            .Translate(0, 4)
            .Union()
            .Chain()
            .EndGroup(op));
 }