예제 #1
0
    private void LoadFile(string fileName)
    {
        var cactus = SOSerializer.DeSerializeObject <CactusMesh>(fileName);

        this.Meridians         = cactus.Meridians;
        this.Parallels         = cactus.Parallels;
        this.Midsections       = cactus.Midsections;
        this.Radius            = cactus.Radius;
        this.CapsuleHeight     = cactus.CapsuleHeight;
        this.IndentPercent     = cactus.IndentPercent;
        this.Pivot             = cactus.Pivot;
        this.NumBuds           = cactus.NumBuds;
        this.PosOffset         = cactus.PosOffset;
        this.RotOffset         = cactus.RotOffset;
        this.ScaleUniform      = cactus.ScaleUniform;
        this.SclOffset         = cactus.SclOffset;
        this.LocalRot          = cactus.LocalRot;
        this.Flat              = cactus.Flat;
        this.Taper             = cactus.Taper;
        this.DebugWaitDuration = cactus.DebugWaitDuration;
    }
예제 #2
0
 private void SaveFile()
 {
     SOSerializer.SerializeObject <CactusMesh>(this, System.DateTime.Now.ToString());
 }