PDA

View Full Version : UVW get elements from face selection


MerlinEl
02-16-2012, 12:30 PM
Hi

Is there any fastest way to collect elements from face selection in Unwrap Modifier?
And store area info.


fn getElements mod_uvw faces_array =
(
struct ELEMENTS (faces=#{}, area=0)
local el = #()
while faces_array.count != 0 do
(
local next_face = faces_array[1]
mod_uvw.selectFaces #{next_face}
mod_uvw.selectElement()
local el_faces = mod_uvw.getSelectedFaces()
local areaUVW
mod_uvw.getArea el_faces &x &y &width &height &areaUVW &areaGeom
el += #(ELEMENTS el_faces areaUVW)
--remove faces from array
faces_array = (faces_array as bitarray - el_faces) as array

)
return el
)


any suggestion will be appreciated ;)

denisT
02-19-2012, 09:38 PM
Hi

Is there any fastest way to collect elements from face selection in Unwrap Modifier?
...
any suggestion will be appreciated ;)
http://forums.cgsociety.org/showpost.php?p=7248236&postcount=7
do the same but for faces...

MerlinEl
02-21-2012, 08:40 AM
http://forums.cgsociety.org/showpost.php?p=7248236&postcount=7
do the same but for faces...

Thank you Denis! You always show me something new :-D :thumbsup:

CGTalk Moderation
02-21-2012, 08:40 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.