Itoo Software Forum

Author Topic: Adaptive mode objects go beyond the spline  (Read 8127 times)

sipos

  • Newbie
  • *
  • Posts: 2
Adaptive mode objects go beyond the spline
« on: June 03, 2024, 06:19:14 pm »
Hello! I have a problem with super basic RC (5.2.8 ) where if I change mode to adaptive some objects sometimes get beyond the spline.
Any idea why?

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2959
Re: Adaptive mode objects go beyond the spline
« Reply #1 on: June 04, 2024, 08:10:52 am »
Hi,

Unfortunately, this is a limitation of the Adaptive mode which expects all the segments to be of the same size in order that they can be scaled to fit the path accurately. Due to the order of operations, it isn't possible to adaptively scale segments of different lengths.

The usual workaround is to prepare the geometry so that they are combined to form segments of the same length on the X-axis. You can see examples of this in this façade post.

I hope that clears it up.

Best regards,

sipos

  • Newbie
  • *
  • Posts: 2
Re: Adaptive mode objects go beyond the spline
« Reply #2 on: June 05, 2024, 05:25:10 pm »
ah I see. Thanks for the reply!
With your explanation, I figured out I can grab each segment x size, subtract it from the size of the biggest segment, divide it by 2 and add it as left and right padding to other segments. Seems to be working!
Is there a way to automatically detect dimension of the biggest segment?

Michal Karmazín

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2959
Re: Adaptive mode objects go beyond the spline
« Reply #3 on: June 06, 2024, 11:54:02 am »
The Arithmetic Operator offers the Maximum Operation, which should meet your needs. You can export X/Y/Z Size Attributes and connect these as Inputs to the Arithmetic Operator. I hope that helps.

Best regards,

Dragan

  • Hero Member
  • *****
  • Posts: 1473
Re: Adaptive mode objects go beyond the spline
« Reply #4 on: June 06, 2024, 01:55:50 pm »
Hi, there is a trick to achieve "fit to behavior, " including some nesting.
Check my reply on this topic:
https://forum.itoosoft.com/railclone-pro-(*)/randomize-behaviour/msg38700/#msg38700