Menu

location of rotation-bug or feature

Anonymous
2010-05-04
2013-05-28
  • Anonymous

    Anonymous - 2010-05-04

    I've recently been playing around with structure synth a lot and have been noticing some odd results and just tracked down what was going on. Depending on where one puts a rotation in rule/shape modifications impacts the following info. For example {x 0 y 0 z 0 rx 90 s 1 10 1}BOX is different from {rx 90 x 0 y 0 z 0 s 1 10 1}.

    Is this a bug, or is this the intended behavior. I was very confused by this, personally. Example ES follows:

    set rotation
    R1
    R2
    R3

    rule R1 {
      {x 0 y 0 z 0 s 1 1 1 }BOX
    }

    rule R2 {
      { x 2 y 0 z 0 s 1 10 1 rx 90} BOX
    }

    rule R3 {
      {rx 90 x -2 y 0 z 0 s 1 10 1} BOX
    }

     
  • Mikael Hvidtfeldt Christensen

    Hi,

    Think of the operators as a sequence of transformations. In general rotations and scaling does not commute, so the order is important.

    Notice, that this is in contrast to Context Free.

    (From http://structuresynth.sourceforge.net/reference.php)

    Transformation order: in CFDG transformations (which CFDG refers to as adjustments) in curly brackets are not applied in the order of appearance, and if multiple transformations of the same type are applied, only the last one is actually carried out. For transformations in square brackets in CFDG the order on the other hand is significant. In Structure Synth the transformation order is always significant: transformations are applied starting from the right-most one.

    Best regards, Mikael.

     

Log in to post a comment.