Intersect element to add floor point

#1

Hi,
i’m trying to define a simple script to add points on floor at grid intersection,
i don’t understand why the geometry.intersect node return only one point istance,
in the step before i added flatten to both list (curve of floor and curve of grid).
Can someone help me?
Dynamo is very interesting but sometimes is so frustrating…:sweat_smile:
Thanks

0 Likes

#2

Try cross product lacing.

0 Likes

#3

Thanks a lot Jacob, you are very close to genius…!
post the script for other user

0 Likes

#4

Thanks. I’m not really a genius. More the friendly neighborhood Dynamo guy. Spider webs and all that. :wink:

Be sure to mark solutions so others can learn with you.

1 Like

#5

@arch.paolo.campana Add List.Flatten node after Geometry.Intersect to remove “Empty-Lists”. And remove cross-product lacing Floor.AddPoint.

1 Like

#6

Thanks Kulkul, i update the script with a little branch to add a point also for grid intersection,
and i corrected as your indication.

0 Likes

#7

i claimed victory too son, in my last script there is one last problem, the intersect of grid return also lines (the script works only with cross product at floor.add.point node but return in orange as there is an error), which is the fast way to clean the list from line to have only point?
thanks

0 Likes

#8

Object.Type node, followed by an == node, followed by a List.FilterByBoolMask node where the intersecting objects are the list and the results of the == are the mask.

0 Likes

#9

Hi Jacob,
Sorry but i have some problems to put your indication inside the script, i know that is not too kind but i have to ask you in which way i can use that node…
On other side i tested anyway the script and it works for simple geometry but it can’t define the point on the border when the element is a big floor with a lot of boundary line connected.
Is it possible that the complexity of the boundary could generate problem?
Thanks

0 Likes

#10

Not likely - more likely an issue with lacing or list levels. I’d need the data set to reproduce if this doesn’t point you in the right direction:

1 Like

#11

I don’t know where i would be without your help, now the script work…bur for some strange reason it doesn’t work on some geometry…do you have any suspects?
As you can see in the image on one it works (creating border points and inside points) on the other only create inside point…i found it very strange
intesect floor and grid_test4_4.dyn (52.3 KB)

0 Likes