Itoo Software Forum

Author Topic: Fit segments  (Read 1211 times)

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Fit segments
« on: February 14, 2019, 05:50:26 PM »
Hi,
I need to set up a user-friendly generator to place kitchen/wardrobe elements on a spline.
I created the macro for Segments selection and placement like a Sequence or Compose (not sure which will be better).
For initial setup, there are 10 inputs for segments and 16 Sequence/Compose places. Input #11 is reserved for NULL Segment but it is Indexed as `0`.

Problem is how to fill complete Spline length considering that most of the Segments has Fixed X-size so I need to use Tile mode.

I can use one or more Segments that can be free in X-size and can be used to fill up problematic Space gaps. It will be ok to place those Segments at Start/End.

Any idea of how to solve this kind of problem? (I guess some calculation is inevitable or .... RC4)

Thx.

Dragan




 
« Last Edit: February 15, 2019, 08:55:38 AM by Dragan »

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Fit segments
« Reply #1 on: February 15, 2019, 09:22:59 AM »
Hi

I can't imagine fully automatic workflow. If You have multiple "free size" elements, what is then? Free size should equally distribute  among those two? And if 3 then among all three?
That might be possible. Feel free to try.
I would suggest simpler (in my opinion) workflow. Add additional variable for Element Size: This would be manual, but full control and easy to implement:
Rokas

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Fit segments
« Reply #2 on: February 15, 2019, 09:37:26 AM »
Thank You Rokas.
Yes, that was my initial idea too.
I`m gonna to simplify next:
1. Only ONE instance of a free-size segment will be in used at the Start point.
2. I will break `L` & `U` shape Splines into two/three individual or separate by MatID.

Problem:
When I set some Sequence of Segments, how to extract Cumulative X-size so RC calculate the X-size for my Start Segment (XSplineLength - X size of Sequence)
I try to put the Compose operator after Macro Output and Extract X-size Attribute, but that didn't work for me.   


 

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Fit segments
« Reply #3 on: February 15, 2019, 09:44:46 AM »
You add all exported X size Atributes.
Rokas

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Fit segments
« Reply #4 on: February 15, 2019, 10:12:24 AM »
Sorry, maybe I wasn't clear...

My idea is something like:


Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Fit segments
« Reply #5 on: February 15, 2019, 11:19:16 AM »
As makro can only have one output if You could do the same without makro then You could sum all X size attributes alongside Composing them.
Not sure if You want to go this way. Sorry I don't know a better solution.
Rokas

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Fit segments
« Reply #6 on: February 15, 2019, 02:58:30 PM »
Thank you for info. I'll try without macro. Hope RC4 will bring something new about this 'problem'.
New Selector with Seqeentinal input (comma separated) will be great.

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Fit segments
« Reply #7 on: February 15, 2019, 11:11:05 PM »
Done, for now.
I manage to keep Macro.  :)

- 10 Input Slots + 1 Input Slot for Null segment indexed as `0`
- 20 Compose Segment Places (select 1-10 to place Segments)
- Free X-size Segment is auto-calculated and placed at Start or End
- Free X-size Segment can be selected by Index
- Null Segments with Fixed X-size can be set for the gaps
- Adaptive mode on/off - Tile/Scale/Adaptive
- Material ID Limit

The new issue is placing a Free X-size element at a position rather than Start/End.
A common problem for kitchen cabinets. Freezers are usually at Start/End position but if at the same time Corner is included then I have a problem because both Elements should have a fixed size.

C&C are welcome.
Thank you.
Dragan

 
« Last Edit: February 16, 2019, 07:37:29 AM by Dragan »