public OverlapRemovalFixedSegmentsBitmap(Rectangle[] moveableRectangles, Rectangle[] fixedRectangles,
            SymmetricSegment[] fixedSegments) {
            _moveableRectangles = moveableRectangles;
            _fixedRectangles = fixedRectangles;
            _fixedSegments = fixedSegments;

            _bbox = GetInitialBoundingBox();
            _bbox.ScaleAroundCenter(1.25);

            InitBitmap();
            InitTransform();
            
            movedRectangles = new Rectangle[moveableRectangles.Length];
        }
Ejemplo n.º 2
0
        public OverlapRemovalFixedSegmentsBitmap(Rectangle[] moveableRectangles, Rectangle[] fixedRectangles,
                                                 SymmetricSegment[] fixedSegments)
        {
            _moveableRectangles = moveableRectangles;
            _fixedRectangles    = fixedRectangles;
            _fixedSegments      = fixedSegments;

            _bbox = GetInitialBoundingBox();
            _bbox.ScaleAroundCenter(1.25);

            InitBitmap();
            InitTransform();

            movedRectangles = new Rectangle[moveableRectangles.Length];
        }
Ejemplo n.º 3
0
 public void ScaleBbox(double scale)
 {
     _bbox.ScaleAroundCenter(1.25);
     InitBitmap();
     InitTransform();
 }