Notifications
Clear all
[Closed] UVW get elements from face selection
Feb 16, 2012 1: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
2 Replies
Feb 16, 2012 1:30 pm
http://forums.cgsociety.org/showpost.php?p=7248236&postcount=7
do the same but for faces…