Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: suppenhuhn on September 20, 2017, 01:41:45 PM

Title: Vertex based X-Evenly Element
Post by: suppenhuhn on September 20, 2017, 01:41:45 PM
Hi!
I remeber i saw a post/tutorial for Railclone Pro where the x-evenly elements are set by each vertex on the spline path...but i can't find it anymore.

Does anyone know how to set the X evenly vertex based with a Array2S Object ? The Linear1S wouldn't do it because of the need to change the height.

Thanks in advance :)
Robert

P.S.
I tried to searching the help docs but the all the pages stay blank ( win 10 + firefox + ie ):
https://docs.itoosoft.com/railclone/style-editor/1d-arrays-generator-l1s

Title: Re: Vertex based X-Evenly Element
Post by: suppenhuhn on September 20, 2017, 02:56:53 PM
So, found a solution where i use a inner corner element as my window-segments - see Screenshots.

The Tiling works fine on a straight spline-path. But if got an real 90° Corner in the path-spline it's looking wierd. Is there a way to use a specific "Real-Corner"-Element?

Thanks in advance:)
Title: Re: Vertex based X-Evenly Element
Post by: Michal Karmazín on September 20, 2017, 03:55:28 PM
Hi,

For example the XVertexAngle attribute will help with it - you can check the angle by the following expression:

return if(XVertexAngle == degToRad(90), 1, 2);


within the Arithmetic Operato (https://docs.itoosoft.com/railclone/style-editor/operators#Operators-Arithmetic)r linked to the Selector Operator (https://docs.itoosoft.com/railclone/style-editor/operators#Operators-Selector). Attaching a sample scene.

Hope you'll find it useful.

Best regards,
Title: Re: Vertex based X-Evenly Element
Post by: suppenhuhn on September 21, 2017, 12:43:21 PM
Thanks a lot for your example! :-)

But if i do it like this, the expression copied from your file always seems to "use" the second item of the selector. There's also a expression in use within the "items" .. see the screenshot -> the default segment node is empty to check if it's working.
Maybe it's because the whole Array2S -> Geometry -> X Rotation  = 90 ?
Title: Re: Vertex based X-Evenly Element
Post by: suppenhuhn on September 21, 2017, 01:11:22 PM
Update:
This problem occures with my RC-Object when the Path isn't a closed Spline  - any ideas how to fix this? The path needs to be a open L-shaped Spline
Title: Re: Vertex based X-Evenly Element
Post by: Michal Karmazín on September 21, 2017, 03:52:49 PM
Hi,

It should work both on open / closed splines. Might be, the angle isn't 90º, but it's just very close? Another option might be to use two Conditional Operators (https://docs.itoosoft.com/railclone/style-editor/operators#Operators-Conditional) testing the Angle like in attached screen-shots. Also, please feel free to send us (http://forum.itoosoft.com/index.php?topic=3648.0) your scene to check it here. Thanks in advance.

Best regards,
Title: Re: Vertex based X-Evenly Element
Post by: suppenhuhn on September 21, 2017, 06:40:15 PM
Thank you! I've tried it with the conditional but a don't get it right :-/

Sent you a file, if you'd like to check

Thanks a lot!
Robert
Title: Re: Vertex based X-Evenly Element
Post by: Michal Karmazín on September 22, 2017, 11:24:49 AM
Hi Robert,

Thanks for the provided scene. Enabling the Bevel Corner option under Rules > X Corner and setting the RC Offset to 50% seems to do the trick.

Best regadrs,
Title: Re: Vertex based X-Evenly Element
Post by: suppenhuhn on September 22, 2017, 02:38:41 PM
Thank you so much!! I can not repeat it often enough: best technical support i've ever seen!!

But there is one thing i've noticed:

On the former "wierd" Corner: On the Top-Element is an offset/padding occuring which i can't figure out where it's coming from. And the Bottom-Element seems to be dissapeared?