### Author Topic: randomized transform with one segment but no gaps  (Read 2031 times)

#### Berke

• Newbie
• Posts: 4
##### randomized transform with one segment but no gaps
« on: January 27, 2018, 03:25:39 PM »
Hi,

Im trying to create a carpet pattern. What i want is to use one size segment only but array it with randomized transform without creating gaps. I guess its a very common question but i just couldnt do it.

#### Michal Karmazín

• iToo Software
• Hero Member
• Posts: 1736
##### Re: randomized transform with one segment but no gaps
« Reply #1 on: January 29, 2018, 05:00:35 PM »
Hi,

How the final style should look like?

Let me point out, that as mentioned in our Getting Started with RailClone guide (under chapter 9 - Create your first 2d array) you can find following rule for building 2D arrays: "Rule 2: To avoid gaps, Segments should be the same Y length: Because the A2S array is a stack of L1S generators, if you use Segments with unequal sizes on the Y axis in a row, the overall height of that row is determined by the tallest segment. The row directly above will be positioned after the tallest segment and gaps will appear."

Best regards,

#### Berke

• Newbie
• Posts: 4
##### Re: randomized transform with one segment but no gaps
« Reply #2 on: February 05, 2018, 09:59:09 AM »
There is actually a single segment. But in each row the segment is randomly offset on X.  Looks like this:

#### Michal Karmazín

• iToo Software
• Hero Member
• Posts: 1736
##### Re: randomized transform with one segment but no gaps
« Reply #3 on: February 05, 2018, 03:31:16 PM »
Hi,

There are multiple ways how to archive it. A possible style set-up would be to use "randomly shifted" Segments by the Transform - X Fixed Translation linked to the Random Parameter set to Generate on Array Y Row. Another option would be to have in the Left Side slot of the Array 2S Generator "Randomly Sized" Segments (in the similar way as described above). Hope that helps.

Best regards,