void Start()
        {
            if (VoxCreation == null)
            {
                VoxCreation = GetComponent <VoxelScript>();
            }

            if (_mscript == null)
            {
                _mscript = GetComponent <MeshScript>();
            }

            if (_qscript == null)
            {
                _qscript = GetComponent <QuadScript>();
            }

            defaultIsos.Add(defaultSphereIso);
            defaultIsos.Add(defaultFractalIso);
            defaultIsos.Add(defaultDicomIso);
            _autoUpdate = autoupdToggle.isOn;

            ResetToDefaultValues();

            if (_autoUpdate)
            {
                UpdatePushed();
            }
        }
Exemple #2
0
 void Start()
 {
     mscript = GetComponent <MeshScript>();
     vscript = GetComponent <VoxelScript>();
     sliceNr = setSlice(slice);
     CreateIsoLine(sliceNr);
 }