Itoo Software Forum

Author Topic: Corners None -> Reset  (Read 579 times)

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Corners None -> Reset
« on: August 08, 2022, 12:41:16 PM »
Hi Paul,
My brain is in RED again.
I need to fit the Corner segment into the prepared Generator with empty NONE corner space. (I have to match multiple generators with some evenly/subevenly distributions to default one).

I think you had a Macro or solution for fitting Corners or I`m I wrong? (or maybe it was me but I can`t find it, I can tell anymore!!!  ;D ;D ;D )
I think I could lock Y alignment to some option but the option for choice will be extra useful.


Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Corners None -> Reset
« Reply #1 on: August 08, 2022, 02:59:26 PM »
Please see attached.

This macro used to be included when Adaptive mode didn't work with corners. Since that was enabled I removed it, but here you go!

Paul
Paul Roberts
iToo Software

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Corners None -> Reset
« Reply #2 on: August 08, 2022, 03:31:15 PM »
Yup! That is the one!
Matte, thank you very much!

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Corners None -> Reset
« Reply #3 on: August 08, 2022, 04:24:33 PM »
Hm
At first look, it seems this is just the opposite of what I need. This one goes from Reset to None.
I need to fill up the empty corners from NONE rules with No Bend Segment.



Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Corners None -> Reset
« Reply #4 on: August 08, 2022, 04:35:36 PM »
Sorry - I'm not sure that I understand.
Paul Roberts
iToo Software

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Corners None -> Reset
« Reply #5 on: August 08, 2022, 04:56:15 PM »
 :o :o :o (no face palm emoji to use)

I need to squeeze in the Green Ones in place of the Red ones.


Why I`m regressing the adaptive corners workflow?
I need to create a Macro for railings but for a specific workflow:
- Evenly+SubEvenly division separated on straight and curved subplines
- Having the option to do some sort of Facet/Scale mode on Curved subsplines without editing the Base spline.
- Evenly+SubEvenly are not based on Base Spline because it needs to be "real" evenly so I have to calculate everything using XSectionAdjustedLenght. (easy task now)

The main issue is on generating the top handrail (separate L1S). Since I have to match default size/subdivision/corners to the Generator that is based on the NONE rule for corners.
Since all calculations relais on XSectionAdjustedLenght now I have to adapt BevelMode ->Reset|Symmetric to match the corner size of the NONE rule.
« Last Edit: August 09, 2022, 08:55:26 AM by Dragan »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Corners None -> Reset
« Reply #6 on: August 09, 2022, 10:34:25 AM »
Here you go! Hopefully this does what you need.

In Bevel Corner mode, RailClone always tries to maintain the X size of the segment on the outside of the corner. Therefore we need to rescale the segment to ensure that the size in the centre of the corner segment is equal to half the width of the geometry.The lengths and angles shown green below are available to us so we just need to use a bit of trig to find the size in red. Add the X size and this new value together and we can use it to ensure that the bevelled version matches the size of the unbevelled version.



Hope it helps!
Paul
« Last Edit: August 09, 2022, 10:39:05 AM by Paul Roberts »
Paul Roberts
iToo Software

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Corners None -> Reset
« Reply #7 on: August 09, 2022, 10:54:02 AM »
 ;D ;D ;D ;D ;D
my son just said, Thales's theorem

We got the same results.
Thank you anyway. You are still No.1!!
« Last Edit: August 09, 2022, 10:55:57 AM by Dragan »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Corners None -> Reset
« Reply #8 on: August 09, 2022, 10:56:59 AM »
I'll have to take your word for it, I made it up as I went along  :)
Paul Roberts
iToo Software

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Corners None -> Reset
« Reply #9 on: August 09, 2022, 11:12:34 AM »
You are just proving my point.

Although, this could be a nice Macro for build in Library as this is not a common workflow Making empty spaces and filling them up with another generator is not a common workflow for inexperienced users.