Exemple #1
0
 public StripedPathSet(SvgParser.SvgPath path, StripeFieldConfig stripeFieldConfig, SCSvgFileData _svgFileData)
 {
     this.stripeFieldConfig = stripeFieldConfig;
     this._svgFileData      = _svgFileData;
     diamondCalculator      = new DiamondCalculator(stripeFieldConfig);
     dbugSettings           = UnityEngine.Object.FindObjectOfType <DbugSettings>();
     setup(path);
 }
Exemple #2
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>();
        }