Itoo Software Forum

Author Topic: Size by two Clipping Splines  (Read 932 times)

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Size by two Clipping Splines
« on: December 10, 2020, 05:19:20 PM »
Hi.
I`m playing to find a workaround for some time now (a time for relaxation between two projects  :D)
I`ll probably need it for the next project and since arithmetic interchange is a long shoot (https://forum.itoosoft.com/railclone-pro-/multiple-generators-arithmetic-interchange/) maybe you guys have a solution.
The goal is to extract X/Y/Z size out of the two SubSplines and use it for Generating Style. Basically, I need to fit the Box into Clipping Spline Boundingbox.
I don't mind to separate spline or some other approach. I`m still not locked to any specific workflow besides I have horizontal & Vertical Spline.
For now, I have attached both splines to the one single spline separated by MatID.
Any Idea?

P.S.
@Paul
The solution for extracting size between Spline & Surface is just great, compliments. (Now, do this  ;D ;D ;D )

Best Regards and stay safe.
Dragan


« Last Edit: December 10, 2020, 05:22:43 PM by Dragan »

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Size by two Clipping Splines
« Reply #1 on: December 11, 2020, 04:34:25 AM »
i would do it like this
of coure you need to set up proper rotation for generator or element to get desired effect
i hope it helps
« Last Edit: December 11, 2020, 04:48:00 AM by arch3d »

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Size by two Clipping Splines
« Reply #2 on: December 11, 2020, 06:34:03 AM »
Thank you but, Nope  ;)
This would be easy  :D
I need ONE box fitted to the Bounding size of Clipped splines. Ideally would be like the picture example.


The final generator is for generating doors/windows etc. and I`ll have to adapt to the client workflow.
I`ll get prepared two sets of splines:
- Base/horizontal >> to get width/depth (X fixed | Y fixed size
- Vertical >> to get width/height (X fixed | Z fixed size)
So, I`m missing either Y | Z fixed  size.

Also, one of the splines will be marked with a specific ID which will determine the type of Geometry (Door type, Normal window, Sliding window, etc)

I know I can use various RC features to accomplish all those tasks and I have prepared a lot of  SubMacros to make it automate as much as I can.
The only small issue is this topic problem  :D .
How to extract third dimension value from the "opposite" clipping SubSpline and then use it in common Style and common Generator.

P.S.
Since all those splines are generated by a script I have a workaround solution:
- one SubSpline will carry ID for the Geometry type
- second SubSpline will carry ID equal to my missing dimension (Y | Z depending on the Style)
But for this, I have to change the Script and this is probably out of my range.
 



« Last Edit: December 11, 2020, 06:52:30 AM by Dragan »

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Size by two Clipping Splines
« Reply #3 on: December 11, 2020, 06:48:43 AM »
Not my level  :'(

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Size by two Clipping Splines
« Reply #4 on: December 11, 2020, 06:52:44 AM »
Thank you for trying :D

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Size by two Clipping Splines
« Reply #5 on: December 11, 2020, 07:04:14 AM »
Gods ( Rokas or Paul ) will help you  ;D
« Last Edit: December 11, 2020, 07:07:28 AM by arch3d »

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Size by two Clipping Splines
« Reply #6 on: December 11, 2020, 07:38:29 AM »
I`ll do your Stairs & Landing and let them work on my Splines :D

arch3d

  • Sr. Member
  • ****
  • Posts: 281
    • arch3d.pl
Re: Size by two Clipping Splines
« Reply #7 on: December 11, 2020, 07:52:02 AM »
Thank you

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Size by two Clipping Splines
« Reply #8 on: December 11, 2020, 12:07:53 PM »
Hi Dragan,

You certainly do like to challenge us  :D



Please find attached a possible solution. Unfortunately, Clipping Splines don't allow you to use the SubSplineCounter attribute so we had to go about it a slightly different way using L1S generators. You could still add an A2S in this graph too, but ultimately it will have to terminate at an L1S to allow you to cycle through the splines. The final generator also needs to be named Linear 1S1 in order for the macros to reference it correctly.

Hope it helps!

Paul
Paul Roberts
iToo Software

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Size by two Clipping Splines
« Reply #9 on: December 11, 2020, 12:57:09 PM »
Hi Paul,
Sorry for trouble  :D
Well, I had some similar solution especially after your solution with Surface to Spline distance but I still can`t fit this solution to A2S (maybe I had to terminate it, I just have a quick look)

What about topic https://forum.itoosoft.com/railclone-pro-/multiple-generators-arithmetic-interchange/
This will help to finish a lot of my Styles.


 

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Size by two Clipping Splines
« Reply #10 on: December 11, 2020, 01:29:45 PM »
Hi again.
I take a second look at your macro to find out how it works and as I can see it is based on SubSpline Counter to match the splines. This also could be a potential problem since the user can do some changes on the Splines or even delete/redraw some which will cause reordering of the original order.

Hm.  8)


Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Size by two Clipping Splines
« Reply #11 on: December 11, 2020, 01:34:28 PM »
Yes, that would be a problem. However I can't see any other way that RailClone would know to associate the correct height spline with the footprint spline. Is it imperative that you use closed rectangular clipping splines? If not, Maybe there is another way we could approach it.

Cheers,

Paul
Paul Roberts
iToo Software

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Size by two Clipping Splines
« Reply #12 on: December 11, 2020, 01:51:22 PM »
Paul, thank you for your time.
Ok. Then.. just make Arithmetic interchange possible and I`ll do the rest.  8)