Connect mesh landscape to other form

The points to move are selected by horizontal distance.
Based on the distance along the z-axis the points must move, which let the mesh edges connect with the edges of the shape in the middle.

The inner part of the mesh does not matter because I am going to delete that later, it is all about connecting the mesh to the edges of the shape in the middle.

What am I doing wrong?

I cannot pull along a z-axis.

I was looking for something like ‘pulling’ the neighbouring points, but it does not make sense when the first point does not reach the curve along the z-axis.

20190225 getting a landscape 00.gh (87.0 KB)

I cannot connect the mesh edges to the middle surface.

How can I connect the mesh edges to the middle surface along the z-axis?

What I did now was, making lines from the points of the mesh to pull everything along the z-axis. But, that did not work, but why, the way I did it seems okay. Every mesh points gets its max z-value and by distance - distance in flat surface circumstances project curves middle form and mesh points to flat surface - the z-value is calculated.

20190225 getting a landscape 01.gh (152.7 KB)

Maybe by accident your final goal is to drape the mesh landscape “over” the object(s)?

If yes you need K2 for that.

1 Like

Hi Mr. Fotiadis,

K2? I search the web but could not find it. Or is it one of your VB components?
Yes, I want to ‘drape’ the mesh, “to the edges of the middle object.”

Maybe, with my script, I can select a certain range wherein all of the already selected points move to the max. That might be more easy.

Even when I do everything to max, it looks like my favorite happy smiling :poop:
Why? :sob: Do you might know what I am doing wrong?

K2 is Kangaroo2 by Daniel Piker

I cannot deal with K2 because it always does not work for me.
My scripts are always so intense, K2 works very slow with that. :scream::sob:
He is an professional, I am not, but I prefer to, even in this small setting of mine, to do it with other components.

The mesh is a landscape, K2 will destroy everything.

Do you might what I am doing wrong in my script Mr. Stark?

iron%20man2

K2 is kinda a Magnum 44: use it properly … and you’ll get the expected results. Use it wrongly and you may end-up shooting your own feet.

BTW: K2 is VERY fast for that type of stuff: a couple of milli seconds max. Of course if you attempt to get results the wrong way … it may take a year and a half to finish (but that is not Daniel’s fault)

Notify if you need a C# that does the drape thing (but you are following the P route, don’t you?).

I want to learn #C and VB too, but I do not have the time for it now.

I will have hundreds of these forms. Is K2 really the deal for that? Instead of draping, it is more like magnetized it along the z-axis. This gif has steam too (below).

Can I not do it with just my script adjusting something? I only need to get the remapper right. But, I cannot figure it out. I am doing something wrong with it.

darth%20vadert%2000

Hundreds dead milliseconds then.

BTW: A nice, fast and clean controlled drape is the solution for that type of stuff: i.e. deforming (so to speak) smoothly valid and not folding meshes using objects (but a “normal” landscape doesn’t fold anyway unless is the Grand Canyon).

BTW: C# is all what you need (for a vast variety of reasons especially if you are in the broad AEC market sector). Why bother with VB?

BTW: In order to receive the right ammo for that '44 post here: (1) the most challenging valid landscape that you have, (2) a couple of “difficult” objects for the drape/defomation job, (3) additional rules (if any) for the resulting mesh.

How to say to kangaroo ‘these vectors’ are your ‘max movements;’ and ‘do it like remaps based on the distance to the middle object’s curve?’

Which components are there for?

20190225 getting a landscape 02.gh (154.4 KB)

So, VB is not any importance in the business? It is like Archicad, no one uses it because it is not practical, but it is there, as with VB? There is not any VB wiseacre walking around you that want to pick the promotion?

kangaroo doesn’t like that your mesh is for some reason tilted

for drape purposes that position (tilted) shouldn’t matter

you might want to reduce (or rebuild) your meshes so you don’t need as much subdivision for kangaroo

and yeah… if you’re to have hundreds of these meshes…

kangaroo basic drape example:

1 Like

you just tell it that by feeding it vectors and multiplying them on their vertices, though for draping you’ll still need a ‘floor’ unless you want the mesh to really hang like a fabric

1 Like

If I’m not missing something here, and you just want to move points vertically, this looks to me like it can be solved more simply without Kangaroo:


intersect_drape.gh (61.4 KB)

1 Like

Thank you! My hero! :princess:t3:

kangeroo

And thank you @darthvader @tonystark, and @phoenix.

Just letting you know, I meant this last comment slightly as a funny and clear thank you.

1 Like

maybe that also help you

1 Like

Batman!!

batman

:smile:

1 Like

It’s a matter of thinking the general case: given a landscape and some objects > “deform” the landscape in order to engulf the objects (and respect some rules kinda no negative slopes etc etc). And of course there’s the relaxation issue of the whole result. For instance is indeed very easy to bridge a mesh with another (say like fusing a giant rock with a terrain) … but the end result would have Frankenstein looks.

For instance: get a “flatish” mesh and a “guide” object and do a good looking canyon like this one:

If fact I have several demos (code only, no components) on that matter … the only issue is where they are ( Alzheimer and the likes).

I improved upon your and others their reasonings and came to this.

Because of the help, I made it good controleable.

20190225 getting a landscape 02.gh (78.0 KB)