polygon disappears after using attribute wrangle

   1237   2   1
User Avatar
Member
320 posts
Joined: May 2016
Offline
using 18.0.325
I have a curve node,
then facet, a reverse
and attribute wrangle with expressions of:
@P.x = rint(@P.x/2)*2;
@P.z = rint(@P.z/2)*2;
this is to keep polygon in 2x2 grid

after attribute wrangle the polygon disappears, its there on reverse node.
follow Kenny Lamers Guard Tower tutorial. he is using 16.5
Edited by bobc4d - Jan. 18, 2020 11:26:45

Attachments:
polygon disappears.jpg (40.6 KB)

User Avatar
Member
2035 posts
Joined: Sept. 2015
Offline
Without a hip, hard to say. What are the dimensions of the line before the wrangle?

If the points are less than one unit, all your points will end up as 0 because rint()bring the values to 0(nearest whole number, e.g. 0.9 becomes 0.45, and that is closer to 0 than 1), so it doesn't matter how much you multiply it by - it will remain 0.
User Avatar
Member
320 posts
Joined: May 2016
Offline
thanks BabaJ. thats exactly what it was. didn't pay attention and I was zoomed in, so yes all my were 0 something. zoomed out and it is fine.
  • Quick Links