As you can see here, the zero points do not start correctly on every side. The sides with two points are correct â these are the outer edges. However, where the two points are located on the inner side (i.e., for the smaller surface), it is incorrect.
Dear @Nick, this is the point to study + change the code in the .gh file.
All zero points are referenced to a reference point Upper left Group.
By moving the slider the point is turned between 0- 360 degrees around your project (and so will all the points with zero). If you need a reference per building , floor, etcetera, change it into a reference point for that (can be done with copy paste etc.
In the âfind centre of surfaceâ, you may add a small function:
check rotation direction of the circle, if or if not clockwise >> flip curve.
that forces that all circles will have the same direction and so will the numbers.
Hello @Eef_Weenink , I now made from each reference point a cirkel but if I change the seam all the point numbers are changing. if one instance has the right zero point then the other on a different axis does not.
For the surfaces that are rotated these green points should be placed here. So the reference points should be on the same side. then the zeropoints are correct.
Could you please explain a bit more about what should define the reference for the first point, and how the direction (clockwise or counterclockwise) should be determined?
I get your point, but I want to make it generic. Every project can have a difference count of surfaces. This means now, that I have to add sliders for every surface and I donât want that.
Per surface you want the starting point at the âsame spotâ. I suggested to use the reference point on the circle, but you could also do something with values of x or y; distance to a line; many options here, only depending on âwhat you want/needâ
Per level of your building (floors) you could renumber them by using the Z-value (the higher the Z the higher the floor number.
Per building you could repeat the same kind of choices. Maybe you have a entrance road and want to number accordingly to the closer to the entrance or maybe closer to city centre.
So many solutions. It starts with want you want.
Secondly: Think about the numbering order:
clockwise anti-clockwise. I gave a solution with the small circles (not the one with the refence point) (I think you mixed these with eachother). With sorting along a curve you can order the segments of the polyline and you have your segments numbered correctly.
Think about it in âboxes of programmingâ (functions). Build a generic function to order segments clockwise; a generic function to number surfaces in the building, A generic function of ordering buildings etcetera.