deleted the larger surface from $area..

   1824   3   1
User Avatar
Member
120 posts
Joined: June 2008
Offline
hi,
i don’t know if there is a topic on this, but i don’t found..
i’m sorry , but i start with attribute.. perhaps my question is stupid, but..

i created a attribute area with measure node.

now, i obtain my 3 polygons with their area. i can see each in spreadsheet.
now i want delete the most larger area..
but i want use an expression for this, not enter a number… because i want use on many object.

i use a delete node, but how i can choose the most larger area?

please, tell me if it's understandable..
User Avatar
Member
9 posts
Joined: Feb. 2008
Offline
maybe you can use attribPromote to promote your “area” attribute (Promote Method Maximum) to a detail attribute called “area_max”, then compare your “area” with “area_max”, something like this

if ($AREA == detail(“/obj/geo1/attribpromote1”, “area_max”, 0), 1, 0)

or you can promote your “area_max” from “Detail” to “Point” and then compare them directly.

hope that helps.
User Avatar
Member
1908 posts
Joined: Nov. 2006
Offline
You could always sort your primitives by the area value and delete the last one.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
120 posts
Joined: June 2008
Offline
ok, i try this…
but i must work on other job..
thank you

See you
  • Quick Links