Wings 3D Development Forum
Very very confused about merge_we functions - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Design & Development (https://www.wings3d.com/forum/forumdisplay.php?fid=6)
+--- Thread: Very very confused about merge_we functions (/showthread.php?tid=987)



Very very confused about merge_we functions - ggaliens - 12-08-2014

It looks to me ... from the way these are called ... that it is supposed to return a #pst{} = Pst

Not ever a #we{}.

Micheus ... can you consider that at least briefly ? Look in wings_we.erl where the merge_we is called. Please.


Code:
% merge_we/1 is used to transfer draw data to the proper We when merging/combining/bridging/separating objects.
% If an object is added to another object, there may be similarly id numbered verts or other elements.
% So Wings has to renumber all the elements so that each is unique. merge_we/1 ensures that the elements
% you are storing for your draw elements are renumbered accordingly.
merge_we(_We) ->
    io:format("merge_we called.",[]),
    _We.