0
$\begingroup$

enter image description here

I am looking for a way to join objects based on the proximity of their origins/geometry, if such a thing is even possible.

What I want to do is join each of the cones to the sphere that is directly behind it. If necessary I could have the origins of both of them overlapping. I need to do this because the spheres have a specific name and the cones are all imported as a single part that is then separated. When I do this, the number associated to each part changes randomly each time so I can't use it to batch rename the objects as far as I know. I am currently joining them manually and deleting the spheres to transfer their names to the cones but I was wondering if there's a way to automate this

My initial attempt was using a geometry node setup on the sphere to changes its mesh into that of the cones (while all the cones are still a single object) and then using an intersect boolean with the cube that overlaps it so that only the cone in front of it is left. However this won't actually work for what I want because the geometry is much, much heavier that the simple cones in the example and there is a lot more of them, so the computer can't really keep up. So I think the cones need to be separated first.

TL;DR Is there a way to merge objects based on how close their origins are or if their geometry overlaps? e.g. Selected sphere is merged with all objects whose origin is in X=0 and Z=0 but not any others.

Alternatively, a way to copy the geometry of the cones to a sphere, while they are still a single object, but only copying the geometry of the cone that is within a boundary, like the associated cube.

$\endgroup$
3
  • $\begingroup$ blender.stackexchange.com/a/265927/19307 blender.stackexchange.com/a/194013/19307 $\endgroup$ Commented Jul 11, 2023 at 19:14
  • $\begingroup$ Some points are not yet clear to me: Would it be enough to simply rename the cones based on the name of the closest sphere? If joining is required: Would it be enough to join with the closest or do you need to join all spheres in a certain distance to a cone? Will there always be exactly one cone fore every sphere? - And it would help, if you could provide your blent-file on blend-exchange.com $\endgroup$ Commented Jul 12, 2023 at 20:41
  • $\begingroup$ >Would it be enough to simply rename the cones based on the name of the closest sphere? Yes, I'm only doing this in order to rename the cones. I have it set like this so I can merge each cone to the sphere behind it and then delet the sphere so it's name ends up on the cone. >Would it be enough to join with the closest Yes, they only have to be joined with the sphere directly behind them >Will there always be exactly one cone fore every sphere? Yes >provide your blent-file I can't provide the file but it's just as the picture, an array of objects in front of an array of spheres $\endgroup$
    – Cornivius
    Commented Jul 12, 2023 at 21:24

0

You must log in to answer this question.

Browse other questions tagged .