示例#1
0
    //TODO - torus coming soon
    public void setStackShape(int stackIndex)
    {
        if (stackIndex == 0)
        {
            stackShape = StackShape.Sphere;
        }
        else if (stackIndex == 1)
        {
            stackShape = StackShape.Box;
        }
        else if (stackIndex == 2)
        {
            stackShape = StackShape.Complex1;
        }
        else if (stackIndex == 3)
        {
            stackShape = StackShape.Complex2;
//		} else if (stackIndex == 4) {
//			stackShape = StackShape.SimpleTorus;
        }
        else
        {
            //index not recognised revert to default
            stackIndex = 0;
            stackShape = StackShape.Sphere;
        }
    }
示例#2
0
 public IFormConfiguration(IFormConfiguration config)
 {
     this.index = config.getIndex ();
     this.startPosition = config.getStartPosition ();
     this.startRotation = config.getStartRotation ();
     this.trunkPositionDelta = config.getTrunkPositionDelta ();
     this.trunkRotationDelta = config.getTrunkRotationDelta ();
     this.trunkIterations = config.getTrunkIterations ();
     this.scaleTrunk = config.getScaleTrunk ();
     this.branchPositionDelta = config.getBranchPositionDelta ();
     this.branchTwistDelta = config.getBranchTwistDelta ();
     this.stackIterations = config.getStackIterations ();
     this.startScale = config.getStartScale ();
     this.scaleDelta = config.getScaleDelta ();
     this.scaleBranch = config.getScaleBranch ();
     this.stackStartTwist = config.getStackStartTwist ();
     this.stackTwistDelta = config.getStackTwistDelta ();
     this.stackShape = config.getStackShape ();
     this.mutationStrength = config.getMutationStrength ();
 }
示例#3
0
 public IFormConfiguration(IFormConfiguration config)
 {
     this.index               = config.getIndex();
     this.startPosition       = config.getStartPosition();
     this.startRotation       = config.getStartRotation();
     this.trunkPositionDelta  = config.getTrunkPositionDelta();
     this.trunkRotationDelta  = config.getTrunkRotationDelta();
     this.trunkIterations     = config.getTrunkIterations();
     this.scaleTrunk          = config.getScaleTrunk();
     this.branchPositionDelta = config.getBranchPositionDelta();
     this.branchTwistDelta    = config.getBranchTwistDelta();
     this.stackIterations     = config.getStackIterations();
     this.startScale          = config.getStartScale();
     this.scaleDelta          = config.getScaleDelta();
     this.scaleBranch         = config.getScaleBranch();
     this.stackStartTwist     = config.getStackStartTwist();
     this.stackTwistDelta     = config.getStackTwistDelta();
     this.stackShape          = config.getStackShape();
     this.mutationStrength    = config.getMutationStrength();
 }
示例#4
0
 public void setStackShape(StackShape stackShape)
 {
     this.stackShape = stackShape;
 }
示例#5
0
 //TODO - torus coming soon
 public void setStackShape(int stackIndex)
 {
     if (stackIndex == 0) {
         stackShape = StackShape.Sphere;
     } else if (stackIndex == 1) {
         stackShape = StackShape.Box;
     } else if (stackIndex == 2) {
         stackShape = StackShape.Complex1;
     } else if (stackIndex == 3) {
         stackShape = StackShape.Complex2;
     //		} else if (stackIndex == 4) {
     //			stackShape = StackShape.SimpleTorus;
     } else {
         //index not recognised revert to default
         stackIndex = 0;
         stackShape = StackShape.Sphere;
     }
 }
示例#6
0
 public void setStackShape(StackShape stackShape)
 {
     this.stackShape = stackShape;
 }