### Author Topic: Arithmetic Problem for inner eges of a wall..  (Read 747 times)

#### NP2889

• Jr. Member
• Posts: 62
##### Arithmetic Problem for inner eges of a wall..
« on: December 12, 2015, 11:26:46 PM »
Hallo dear Itoo Team or anyone who knows an answer...

Well sorry to come back with my special problem..  but i cant find a solution untill now.

1. I need to construct a style that will be saved as a preset for Walls. the aim is to open it, change the standart segments and that the edges have to be filled with a perfect fitting "minimal" segment for the gap , which of course on changing Angels always needs differing paddings to fit in the minimal size..

this should be able to do so using arithmetical operators, that can (as i think) use the given Angel at the given pont of the Spline and calculate the needed padding for the corner , using the given Y Szise of the edgesegment (or a numeric width for Y) and calculate the padding for the segment to produce the gap ( a segment without geometry)...

in a later stepp i want to put on top the opportunity to make this gap bigger using an numeric valu to ad on top...

in the third step i want to use a secound linear array for the segments that have to be filled into the gaps, using Tile and symetric at edges, and the calculated width of the gap again..

Well i know it seems easier to construct the gaps symmetricaly on the splinecenter and to later on move the array using Y translation for the whole array..  but this leads to problems when changing the geometry of the standart segments in a day to day workflow..

so i need to construct it with the spline on the inside of the wall for this way nothing changes if a colleque changes for a new wall the geometry of my standart segment...

any ideas ?

#### Paul Roberts

• iToo Software
• Hero Member
• Posts: 1608
##### Re: Arithmetic Problem for inner eges of a wall..
« Reply #1 on: December 14, 2015, 11:27:28 AM »
Hi,

Does the attached file work for you? Still uses centre alignment to calculate the gap but it automatically offsets the wall so that the spline is on the inside. I've also provided an option to flip sides in case it is helpful. There's a second parameter so that you can adjust the size of the gap.

Let me know if that helps out, or if any of the behaviour needs to be changed.

Many thanks,

Paul
Paul Roberts
iToo Software

#### NP2889

• Jr. Member
• Posts: 62
##### Re: Arithmetic Problem for inner eges of a wall..
« Reply #2 on: December 14, 2015, 12:28:44 PM »
Dear Paul Roberts.

thanks for this suggestion.

But i am Sorry to tell you that this workaround still doesnt solve the Problem for me.  As you can see in the screencapture picture, in angels greater less than 90 degree you get an Edge segment that doesn´t fill the produced Gap, and in corner angels greater than 90 degree the produced corner segments overlap with the standart segments.

a secound problem that i have found with this stile is the following:  When i use the style like a libary style, and start to change my standart segment, like i would in a architektural Bureau, and for example add something to the outside, like a sunshade or when in make the y Depth of the standartsegment greater,  the whole edgestructure moves away.

Well the aim for my little Wall-project is the following.

I need a style that other Architekts or architektural visualisation specialists just can open from the libary.    They use the outlines of the Floors of the Building as the spline to build from those splines the whole walls to the outside.  and...  they nearly allways have to change the design of the standartsegments to fit the new ideas of the Architects that devellope those ideas.

So i need a style, where they can change the standart segments without beeing affraid to change the whole logic of the style.  Also the style needs to calculate the minmal gap at the corners and fill them automaticaly with a adapted corner segment.  (When this would be acheaved i woul add also a Numeric operator that would give me the oportunity to grow all this elements by typing in a certain amount.  And later on i could use a conditional operator to change individualy parts of the wall by puting in more vertices on the spline and changing the mat id of a segment)

the only way i can see this could work is a style that doesnt get produced centered on the spline and after this transformed on the y Achsis of the style.  But that way do do need a  intelligent Script that detects allways the given angel of the corner points, allways reads out the angel and from the given Y width of the corner segments (so i can change the standartsegments without problems), it calculates using tangens , the needed X Szise of the corner segments and also the needed padding of the empty edge segments at the corners.

Well i think this still isnt what works, but i am sure  Railclone can do this.

#### Paul Roberts

• iToo Software
• Hero Member
• Posts: 1608
##### Re: Arithmetic Problem for inner eges of a wall..
« Reply #3 on: December 14, 2015, 02:04:04 PM »
Hi,

We seem to be getting different results, in my tests the corners worked at all angles:

Anyway I have attached a different style that does not use Y offset to align the inside of the wall to the spline. It includes separate adjustment controls for inner and outer corners should you need them. In my tests it looks like this:

You should be able to swap the segments without issues as it automatically extracts the Y size of the segments and uses the corner's angle to create the correct gaps. Please let me know if yours looks different.

Thanks!

Paul

Paul Roberts
iToo Software

#### NP2889

• Jr. Member
• Posts: 62
##### Re: Arithmetic Problem for inner eges of a wall..
« Reply #4 on: December 14, 2015, 02:08:18 PM »
Wow..

Now i am courious, how this works...   i´ll get it a try and give you feedback as sooon as i come back to work to test it.

thank you so far

#### NP2889

• Jr. Member
• Posts: 62
##### Re: Arithmetic Problem for inner eges of a wall..
« Reply #5 on: December 16, 2015, 09:40:13 PM »
So now i´ve tested ist again and its fine...

i still didnt have the time to get into this, but for me it seems to be the solution for what i aimed to get..

thanks again.

#### Paul Roberts

• iToo Software
• Hero Member
• Posts: 1608
##### Re: Arithmetic Problem for inner eges of a wall..
« Reply #6 on: December 17, 2015, 12:08:39 PM »
Hi, Glad it's helpful. If you need anything in the style explaining in more detail please let me know.

Cheers!

Paul
Paul Roberts
iToo Software

#### antmarch

• Newbie
• Posts: 34
##### Re: Arithmetic Problem for inner eges of a wall..
« Reply #7 on: December 23, 2015, 11:59:22 AM »
I like 'corners no offset' , great work Paul