示例#1
0
        public static IEnumerable <IMesh> Create(IUnitSize unit, IPolygon target)
        {
            var circle  = new CircleCalculator(target, unit);
            var normal  = new ZigZagPolygon(circle, target);
            var hole    = new HolePolygon(circle, target);
            var manager = new PolygonDrawerManager(target, normal, hole);

            return(manager.Draw());
        }
示例#2
0
 public SignalBuilder(ISignalData data, IUnitSize unit)
 {
     _data = data;
     _unit = unit;
 }
示例#3
0
 public CircleCalculator(IPolygon target, IUnitSize size)
 {
     _target = target;
     _unit   = size;
 }
示例#4
0
 public HoleDrawer(IUnitSize unit, IHole hole)
 {
     m_unit = unit;
     m_hole = hole;
 }