Beispiel #1
0
        public SCCrosshatchGenerator(
            MachineConfig machineConfig,
            HatchConfig hatchConfig,
            SCSvgFileData scSvgFileData,
            Box2 svgViewBox,
            GeneratorConfig generatorConfig
            ) : base(machineConfig, svgViewBox, generatorConfig)
        {
            //this.machineConfig = machineConfig;
            //viewBoxToPaperScale = svgViewBox.getFitScale(machineConfig.paper.size);

            this.hatchConfig  = hatchConfig;
            this._svgFileData = scSvgFileData;
            epsilonSVG        = 1f / Mathf.Max(svgViewBox.size.y, svgViewBox.size.x) * 10f;

            this.dbugSettings = GameObject.FindObjectOfType <DbugSettings>();
        }