Itoo Software Forum

Author Topic: Conditional corner angles not behaving as expected  (Read 1468 times)

antmarch

  • Newbie
  • *
  • Posts: 34
    • portfolio
Conditional corner angles not behaving as expected
« on: December 21, 2016, 12:46:52 PM »
I'm having some difficulty with the Conditional operator selecting segments based on corner angles.

My corner segments work where I expect because I tested them before setting the conditional operator.

I've included some screen grabs, the first shows my spline with right angled corners, and my assumed degrees based on the spline direction, and the conditional operator I've set to True if less than 90.1 degrees.
Here they behave not as expected expect for vertice4.


If I exaggerate the corners, the whole thing works.


But this isn't what I want.  I want to draw out the spline with right angles, so what is going wrong here?

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Conditional corner angles not behaving as expected
« Reply #1 on: December 21, 2016, 01:42:51 PM »
Hi

Thanks for the question. To test for Angles >180 degrees please make sure that Check Wide angles is selected. Without this selected the angles are always measured between 0-180 degrees,

I hope that helps, please let me know if you have any further questions.

Many Thanks,

Paul
Paul Roberts
iToo Software

antmarch

  • Newbie
  • *
  • Posts: 34
    • portfolio
Re: Conditional corner angles not behaving as expected
« Reply #2 on: December 21, 2016, 02:21:05 PM »
At first, check for wide angles didn't make any difference to the result.  I'm familiar already with that as I use it on walls, when I draw the spline in the Z direction.  Having thought of that, and this spline is for ducting with the direction of those corners being up and down, I decided to rotate the spline 90deg, the following screen grab is what I discovered.






Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Conditional corner angles not behaving as expected
« Reply #3 on: December 21, 2016, 03:38:11 PM »
Hi,

I'm afraid that is the correct behaviour. At the moment the spline angle is calculated on a single plane as determined by the RailClone object's local axis. Another option though might be to let RaiClone bend the corners for you.

In this way you would create a spline with corners, as in your screen shots.



Then model the corner section without a bend. So you have two segments, one straight with fewer edge loops, and another with enough edge loops that it can bend around corners.



You can then setup the RailClone Style as usual but add a Fillet Radius value to automatically add a curve to the corners.



The advantage of this is that any angle can be created, you aren't restricted to 90 degree bends. I've attached a sample file for you to take a look at.



I hope that helps, please let me know if you have any further questions.

Many Thanks,

Paul
Paul Roberts
iToo Software

antmarch

  • Newbie
  • *
  • Posts: 34
    • portfolio
Re: Conditional corner angles not behaving as expected
« Reply #4 on: December 21, 2016, 05:24:12 PM »
Thanks Paul, I'm trying to get away from using the bevel corners, but for this style it seems to be the most suitable option.