public SCTSPCrosshatchGenerator(
     MachineConfig machineConfig,
     Box2 viewBox,
     GeneratorConfig generatorConfig)
     : base(machineConfig, viewBox, generatorConfig)
 {
 }
 public SCPointSetPenPathGenerator(
     MachineConfig machineConfig,
     Box2 viewBox,
     GeneratorConfig generatorConfig)
     : base(machineConfig, viewBox, generatorConfig)
 {
 }
 public SCBasePenPathGenerator(
     MachineConfig machineConfig,
     Box2 viewBox,
     GeneratorConfig generatorConfig
     )
 {
     this.generatorConfig = generatorConfig;
     this.machineConfig   = machineConfig;
     viewBoxToPaperScale  = viewBox.getFitScale(machineConfig.paper.size);
 }
 public SCTriangleCrosshatchGenerator(
     MachineConfig machineConfig,
     GeneratorConfig generatorConfig,
     TriTree <PixelTriData> triTree,
     BitMapPointGenerator bitMapPointGenerator) :
     base(machineConfig, bitMapPointGenerator.inputImageBox, generatorConfig)
 {
     this.triTree              = triTree;
     this.BaseFileName         = bitMapPointGenerator.GetBaseName();
     this.bitMapPointGenerator = bitMapPointGenerator;
 }
Beispiel #5
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>();
        }
Beispiel #6
0
 public void Start()
 {
     machineConfig = FindObjectOfType <MachineConfig>();
 }