5
$\begingroup$

I'm trying to place Points evenly (approximately every 1,1 meters for example) on the edge of my mesh.

I managed to place them exactly every 1,1m but I want to keep a Point on every corner. The distance between 2 points on every edge should be the same, and close to 1,1m. Nodes

Here is what I get for now

I drew what I want : What I want

Here, if an edge is 4 meters long, it should be divided in 4 segments of 1 meter each.

Any idea of how to do this ? Thanks a lot in advance !

[EDIT]

More explanations : Foreach of my edges, I would like to have :

  • a Point at the start
  • a Point at the end
  • a Points every (approximately 1m10)

For example, on an edge of 4 meters, there should be 5 Points from start to end with 1m between each. If the next edge is 5m8, there should be 6 points with 1,16m between each.

The math/logic behind this is :

  • Edge length = 5,80m
  • 5,80m / 1,10m = 5,2727
  • Round(5,2727) = 5
  • There should be 5 sub-edges on my edge.
  • As they must have the same length, they must be (5,80m/5 =) 1,16m long.

Hope this is clearer :)

$\endgroup$
2
  • $\begingroup$ To be honest, I don't quite understand this question, because it involves a contradiction: how can the points along an edge be evenly spaced at 1.1m, and at the same time have the same distance to the corners? That would work for a square, but not for the shape you show. Can you explain this in a little more detail? $\endgroup$
    – quellenform
    Jun 16, 2022 at 12:43
  • $\begingroup$ Thanks for your time, I added some examples in original post ! $\endgroup$ Jun 17, 2022 at 10:41

1 Answer 1

7
$\begingroup$

The trick here is to first separate the individual edges of the mesh (ngon, not triangulated!), because then the individual segments can be divided separately.

enter image description here

enter image description here

  1. First I remove unnecessary faces with Delete Geometry.

  2. Next, this is the crucial point, separate the edges with Split Edges.

  3. Then you only need to convert the remaining edges to curves with Mesh to Curve.

  4. These individual segments can then be subdivided with the node Resample Curve as you wish.

UPDATE:

Since this method also doubles the corners, you can also use the following nodes if you want to instantiate objects at the points:

enter image description here

Here I instantiate cubes at the corner points, and icospheres at the segments in between.

Note that I use a selection (inverted endpoint selection) for the spheres that excludes the corner points.

enter image description here

$\endgroup$
4
  • $\begingroup$ Wow thanks a lot ! This looks awesome, i'll try that as soon as I can. I understand everything except one thing : why would you need to extrude ans delete geometry right After ? $\endgroup$ Jun 17, 2022 at 17:20
  • $\begingroup$ @ArthurBellemin I'm terribly sorry that was actually an artifact that crept in here is of course not necessary. ;-) Well recognized! Thank you! You just have to delete the faces, of course. I have just updated the answer. $\endgroup$
    – quellenform
    Jun 17, 2022 at 17:58
  • $\begingroup$ Thank you ! Not home this weekend, but I'll try this and validate your answer during next week ☺️ $\endgroup$ Jun 18, 2022 at 6:52
  • $\begingroup$ Thanks again, I managed to get this working with your help ! I'm working on a modular house :) imgur.com/a/CSDNd97 $\endgroup$ Jun 22, 2022 at 19:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .