Select to view content in your preferred language

area sort

685
2
Jump to solution
09-07-2023 12:23 AM
biaozeng
Occasional Contributor

I want to sort a group of cut faces by area and then select faces 0, 1, and 2 for extrusion. I cannot find a sorting function in the help document

0 Kudos
1 Solution

Accepted Solutions
romainjanil
Regular Contributor

Where are your "cut faces" coming from? 

Anyway, sortIndices(array) is the function you need to sort arrays, if you managed to store geometry.area values to an array.

 

View solution in original post

2 Replies
romainjanil
Regular Contributor

Where are your "cut faces" coming from? 

Anyway, sortIndices(array) is the function you need to sort arrays, if you managed to store geometry.area values to an array.

 

biaozeng
Occasional Contributor

Thank you for your answer. I found this function in the help document for 2021.1, and I thought the differences between these versions from 2019 to 2023 were not significant

0 Kudos