Notifications
Clear all

[Closed] Selection by size of triangle

Hey guys,

       is there a way to select based on the size of a triangle , we have a large scene an has a bunch of trees that are jus ploy planes some tall some small is there a way to isolate them an separate them. if anything let me know thanks
4 Replies

Hi Eric,
you can get polys area and make a selection filtered by a threshold set, but since you got planes of different size, it doesn’t seem to work out the issue. Can you give more details about those tree-planes? Are those editable polys made by two triangles (single poly face)? Are they single objects or are separated elements of a unique big Editable Poly? If they’re separated one-poly objects can be easily sorted out:

(
    clearSelection()

    for item in objects do
    (
        if (classOf item == Editable_Poly) then
        (
            if ((polyOp.getNumFaces item) == 1) then
            selectMore item
        )
    )
)
  • Enrico

they are coming from open flight an come in at 2 pieces there plane but split in 2 parts

1 Reply
(@bobo)
Joined: 11 months ago

Posts: 0

Just wanted to mention that if you are running Max 2010, I have provided a sample scripted XView checker in the MAXScript Reference that allows you to highlight and select faces by size thresholds. It is in the How To examples and shows the whole process of developing a scripted XView, with the final result being a pretty usable face area checking tool.

off-topic: The XView stuff is pretty awesome – it’s proven very useful already, by allowing a quick view of which objects – and more specifically, which faces – use a certain material+material ID combination without having to mess with the material definition itself (making it radioactive fuchsia, for example).