Itoo Software Forum

Author Topic: Corner None -> Reset once again  (Read 1730 times)

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Corner None -> Reset once again
« on: September 05, 2022, 07:12:42 AM »
Hello;
Regarding this treat:https://forum.itoosoft.com/railclone-pro-(*)/corners-none-gt-reset/msg34765/#msg34765

How to tweak expression to get corners <90 like on screen?

Many thanks for help.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Re: Corner None -> Reset once again
« Reply #1 on: September 05, 2022, 10:38:09 AM »
Hi,

Please see the attached for a modified macro. I hope it's what you need, please let me know if you have any questions.

Paul
Paul Roberts
iToo Software

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Corner None -> Reset once again
« Reply #2 on: September 05, 2022, 10:47:33 AM »
Paul,
Its exacly what I was looking for. Thank you very much

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Re: Corner None -> Reset once again
« Reply #3 on: September 05, 2022, 10:54:40 AM »
Great - glad to help out.
Paul Roberts
iToo Software

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Corner None -> Reset once again
« Reply #4 on: September 07, 2022, 10:22:08 AM »
Paul,
One more question regading this topic :)
Can I use compose(grouped), sequence, or A1S instead of corner segment?

I tried all of them and no result:(

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Corner None -> Reset once again
« Reply #5 on: September 08, 2022, 09:50:45 AM »
Paul,
Sorry i forgot attach scene:)
I have two probles with style:
1.is symmetric corners as in tread
2.well known problem witch clearing style before/after corner (i would like to change geometry depends of ID)

Thx for help
Michal
« Last Edit: September 08, 2022, 10:18:42 AM by arch3d »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Re: Corner None -> Reset once again
« Reply #6 on: September 08, 2022, 10:29:06 AM »
Hi Michael,

Thanks for the file. Just a quick question before I tackle it. Would it be suitable to use markers instead of material IDs to define the different pavement types?

Cheers,
Paul.
Paul Roberts
iToo Software

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Corner None -> Reset once again
« Reply #7 on: September 08, 2022, 10:44:46 AM »
Nope
I reserve markers for other  purposes like lowering surface and additional stuff:)
But even better would be line type instead ID

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Corner None -> Reset once again
« Reply #8 on: September 08, 2022, 10:58:12 AM »
But if there is no semi-automatic way i always can add some extra points to get some better result

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Re: Corner None -> Reset once again
« Reply #9 on: September 08, 2022, 12:41:21 PM »
OK - Please see the attached.

To force the switching of geometry after a vertex, you need to break the array with a corner. I've done this by allowing corners to be created using either Corner or Bezier-Corner verts. In the case that a Bezier Corner vert is used, a null segment is added to the corner instead, breaking the array but without adding any geometry. Basically, you add a Bezier-Corner when you divide the spline into different IDs.

As for the symmetrical corners - that made me scratch my head!! I've solved it, but I need to tweak the Symmetrical Corners macro a bit for each row of a 2D array, This is to take into consideration the depth of the segments in the rows below.



I hope it helps,

Paul
Paul Roberts
iToo Software

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Corner None -> Reset once again
« Reply #10 on: September 08, 2022, 01:14:47 PM »
Paul,
Thank you very much, ill check it:)

Yes I know that i have to somehow force RC to create section

Regarding symmetrical corner - If you sav it was hard, my mind would blow before I would figure out:) I always try to figure out how to do something but usually i give up after 3 days  ;D

Basically i need it to create clean topology to avoid deviation using surfaces (same reason was using A2S instead of A1S)


arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Corner None -> Reset once again
« Reply #11 on: September 09, 2022, 06:45:38 AM »
Paul,
Everything works fine. Thank you again.
One more question to better understand style,
To resolve clearing corners even better I can limit generator by ID (to keep synchronized arcs second generator shoud by aligned to Y spline) - it would be better for me because i can keep structure of style.

and most importnant question
In this case I shouldnt have problem with misplaced markers geometry even if I limit geenerators by ID. Am I right?
...in theory...
Tests look promising
Thank you again
« Last Edit: September 09, 2022, 06:52:55 AM by arch3d »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Re: Corner None -> Reset once again
« Reply #12 on: September 09, 2022, 09:28:28 AM »
Hi,

Limit by ID should work for you fine, and there's shouldn't be any issues with Markers as long as you are on RC 5.2 or later.

The only issue you might encounter is limiting by ID mid-curve. When that happens you might find that a small gap appears in the pavement because the geometry will no longer deform to continue across the ID break smoothly. As far as RC sees it internally, it's now two different splines.

I hope that makes sense.

Paul
Paul Roberts
iToo Software

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Corner None -> Reset once again
« Reply #13 on: September 09, 2022, 09:37:20 AM »
Paul,
All I want to know. Thank you.

Quote
When that happens you might find that a small gap appears in the pavement because the geometry will no longer deform to continue across the ID break smoothly

I am aware that I should do "brake" on straight segment (corner angle ==0).

Thank you

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Corner None -> Reset once again
« Reply #14 on: September 09, 2022, 11:34:53 AM »
Paul,
And a second issue when I am in Free mode and i pin to surface i get same effect if I use A1S:(
THX