Itoo Software Forum

Author Topic: Sound Protection wall  (Read 743 times)

TP4028

  • Newbie
  • *
  • Posts: 7
Sound Protection wall
« on: July 07, 2015, 11:22:57 AM »
Hello,
Iam trying to create sound protection wall from railclone but there are some issues, so i have to do lots of manual work.
2 examples are shown here:

https://www.dropbox.com/sh/85tn4z35vzknfjk/AADC8EEON_7YQ1FuqiqV6ceOa?dl=0

the pillars are bending so the size is changing.
is there any solution for this?

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: Sound Protection wall
« Reply #1 on: July 07, 2015, 01:33:30 PM »
Hi!

RailClone's corner bevel algorithm ensures that the longest side is always equal to the X length of the segment's bounding box. This will result in segments that are of equal size in plan view:



However if the spline zigzags you will get the appearance you describe, with geometry of differing X Dimensions when viewed from one side.

If you wish to work around this, there is a solution that uses an expression and some trigonometry to keep the posts the same length on the same side. Be aware though the that on the reverse side the posts will still differ in length, and the effect will be more pronounced. It isn't physically possible to keep the posts the same size on one side without the reverse side showing differences.

To keep maintain a consistent x dimension for posts on one side, we will resize some segments to compensate for the bevel algorithm. To calculate the new dimensions, we need to work out the size shown below in green and add it to the original size of the segment.



This new size will "push" the segment away from the corner and maintain the same sizes on one side of the spline. To do this, follow these steps.

  • Create a node graph as shown below.


  • In the Arithmetic 1 operator, change the mode to Expression and enter the following:

    if(XVertexWideAngle>pi,
    tan(radToDeg((XVertexWideAngle-pi)/2))*(Input1),
    0)


    Briefly this is testing the angle at the vertex and if it is larger the Pi Radians  (180 degrees), it will return the length shown in green in the diagram above. It calculates this by halving the angle of the corner ((radToDeg((XVertexWideAngle-pi)/2)) and using this with a tangent function (tan() )and the Y Size (input1) of the segment to calculate the new distance.

    If the Angle is less that 180 degrees it will return 0
  • The second Arithmetic operator then adds the value from the previous step to the existing X Size of the segment to return the new length required to maintain a consistent size on one side.


I've attached a sample file for you to take a look at. Please let me know if you have any further questions or anything requires further clarification.

Many thanks,

Paul
Paul Roberts
iToo Software

TP4028

  • Newbie
  • *
  • Posts: 7
Re: Sound Protection wall
« Reply #2 on: July 08, 2015, 10:30:19 AM »
Hello Paul,
Thanks for replying, but this will not solve the problem as I am looking for both sides as shown in screenshot.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: Sound Protection wall
« Reply #3 on: July 08, 2015, 11:58:07 AM »
Hi,

Thanks for the clarification . Unfortunately there is no way in which RailClone can automatically skew the segments so that the angles match the corners. If however the angles are always the same it would be possible to model the segments in advance specifically for those angles.  Please see attached a sample file with a set up that is designed to work for corners that are always 45 degrees.



I hope that helps,

Many thanks.

Paul.
Paul Roberts
iToo Software

TP4028

  • Newbie
  • *
  • Posts: 7
Re: Sound Protection wall
« Reply #4 on: July 09, 2015, 10:42:44 AM »
Hello,
Thank you for helping me.
I will fix the angles of the corners but may be there will be 2 to 3 different angles.
The example you have shown above is almost solving my problem but the corner pillars have same width of the wall. I have edited your file and came to the following result but there are some gaps between the wall and the corner.
Many Thanks for helping me

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: Sound Protection wall
« Reply #5 on: July 09, 2015, 11:48:23 AM »
Hi,

Sorry about that, I made the wall thin so the corners were clearer. Please find attached a revised version of your file. The problem in this case was that the pivot for the corner segment was no longer aligned with the centre of the middle edge. Using Midpoint snaps I've fixed this and removed all the transform operators.

I hope it helps.

Many thanks!

Paul
Paul Roberts
iToo Software

TP4028

  • Newbie
  • *
  • Posts: 7
Re: Sound Protection wall
« Reply #6 on: July 09, 2015, 12:25:00 PM »
Hi Paul,
Thank you so much for solving my problem. Now I will apply this in the project to see if it works or still need some modification. Thank you once again.

Best Regards

TP4028

  • Newbie
  • *
  • Posts: 7
Re: Sound Protection wall
« Reply #7 on: July 14, 2015, 12:17:07 PM »
Hello,
I have added 3 angle(135, 150 and 90) in the wall. Here is how the railClone looks like now. Thanks alot for helping me.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: Sound Protection wall
« Reply #8 on: July 14, 2015, 01:19:18 PM »
No problem at all. Glad we could help out.  :)
Paul Roberts
iToo Software