Itoo Software Forum

Author Topic: Conditional, Spline, Type Line/Curve feature broken?  (Read 1654 times)

ChrisV

  • Newbie
  • *
  • Posts: 25
Conditional, Spline, Type Line/Curve feature broken?
« on: March 31, 2014, 06:29:26 PM »
Hi guys,

I`m trying to setup a simple conditional that outputs object A if a line is a curve and object B if it is not. I input the conditional into default of L1S but the effect is not what I expect to happen? did I do something wrong there?

currently on v2.2.3

It appears as if it only uses the false condition object once at the start of each segment, then, instead of repeating it, always switches to the other object (tile mode), adaptive seems to ignore it entirely

cheers,
Chris
« Last Edit: March 31, 2014, 06:43:37 PM by MB1103 »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: Conditional, Spline, Type Line/Curve feature broken?
« Reply #1 on: March 31, 2014, 06:43:59 PM »
Hi Chris,

Thanks for the query. I've just tried a similar setup and it appears to be working as expected. The result you're seeing could be because spline segment's usually need to be explicitly told they are lines or curves. It is not automatic when using corner or Bezier joints. Simply right click on a segment to change the type:



If this doesn't help feel free to send me the scene so that I can more accurately try to diagnose the problem.

Many thanks,

Paul
Paul Roberts
iToo Software

ChrisV

  • Newbie
  • *
  • Posts: 25
Re: Conditional, Spline, Type Line/Curve feature broken?
« Reply #2 on: March 31, 2014, 07:04:54 PM »
Hi Paul,

thanks for the quick reply! I did make sure the splines were explicitly set to curve/line in my file. just forgot to mention it in my initial post. I`ve attached the file with the strange behavior (max 2014)

When I toggle curve/line I do see the change happening (going from half/half to fully set to one object type) so it's not as if it didn't recognize the type at all
« Last Edit: March 31, 2014, 07:07:03 PM by MB1103 »

ChrisV

  • Newbie
  • *
  • Posts: 25
Re: Conditional, Spline, Type Line/Curve feature broken?
« Reply #3 on: March 31, 2014, 07:31:56 PM »
maybe I didn't grasp something very fundamental about the conditional operator because I just tried to do something different and failed at that as well: have object A placed if vertex angle is less than 15 percent and object B if that is false but I can't get that to work either... do I require something else that I might be missing in order to setup a condition maybe? I`m puzzled...

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: Conditional, Spline, Type Line/Curve feature broken?
« Reply #4 on: March 31, 2014, 08:06:14 PM »
Hi,

Thanks for the extra info, I'm looking into the problem. Interestingly I'm seeing the same results as you now, even though the style shown in the screenshot was working fine I now can't reproduce it.  I'm looking at this in more detail and I'll get back to you here as soon as I can isolate the cause.

Regarding your second question, the Vertex Angle function is designed to work with segments used in the Corner input slots. It doesn't really do anything if the segments are used in another input.

Many thanks,

Paul
Paul Roberts
iToo Software

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: Conditional, Spline, Type Line/Curve feature broken?
« Reply #5 on: March 31, 2014, 09:28:57 PM »
Hi,

Found it! Luckily it's a simple solution, just turn on Optimise in the Spline's Interpolation settings and it all works fine :)

Thanks,

Paul
Paul Roberts
iToo Software

ChrisV

  • Newbie
  • *
  • Posts: 25
Re: Conditional, Spline, Type Line/Curve feature broken?
« Reply #6 on: March 31, 2014, 10:28:23 PM »
sweet! works like a charm now. thanks very much for the help!

ChrisV

  • Newbie
  • *
  • Posts: 25
Re: Conditional, Spline, Type Line/Curve feature broken?
« Reply #7 on: April 01, 2014, 11:03:35 AM »
sorry to bother you again but after testing it yesterday on a fresh scene successfully, I went back to my original scene and tried it with optimize turned on but did not get it to work.

what it currently does is that it only displays the line version if there is only one segment in an entire spline (just two vertices defining the entire spline), as soon as the line has more than one segment it switches to the curve version (although the lines themselves are set to line). I`ve attached the file I`m talking about

Edit: Found the culprit! It happens because I have Fillet Radius set to a value >0

is that supposed to happen?
« Last Edit: April 01, 2014, 11:10:20 AM by MB1103 »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1517
Re: Conditional, Spline, Type Line/Curve feature broken?
« Reply #8 on: April 01, 2014, 11:16:42 AM »
Hi,

In this case it is because you are using the Fillet Radius feature or RailClone that is converting all the lines to curves behind the scenes. I'm afraid the only way around this at present is to turn off Fillet and create the curves on the splines manually.

I'll mention this to the team and see if it's possible to change that behaviour.

Thanks,

Paul
Paul Roberts
iToo Software

ChrisV

  • Newbie
  • *
  • Posts: 25
Re: Conditional, Spline, Type Line/Curve feature broken?
« Reply #9 on: April 01, 2014, 11:24:44 AM »
thanks for the clarification! would be great if this could be handled differently since fillet is a really cool feature to round of edges. I think I`ll trade that off by using a selector and identifying curves by giving those segments a new id instead. Not as elegant but workable for the time beeing :)