Blender Git Loki
Git Commits -> Revision e077328
Revision e077328 by Brecht Van Lommel (master) July 13, 2004, 11:48 (GMT) |
Added LSCM UV Unwrapping: http://www.loria.fr/~levy/Galleries/LSCM/index.html http://www.loria.fr/~levy/Papers/2002/s2002_lscm.pdf Implementation Least Squares Conformal Maps parameterization, based on chapter 2 of: Bruno Levy, Sylvain Petitjean, Nicolas Ray, Jerome Maillot. Least Squares Conformal Maps for Automatic Texture Atlas Generation. In Siggraph 2002, July 2002. Seams: Stored as a flag (ME_SEAM) in the new MEdge struct, these seams define where a mesh will be cut when executing LSCM unwrapping. Seams can be marked and cleared in Edit Mode. Ctrl+EKEY will pop up a menu allowing to Clear or Mark the selected edges as seams. Select Linked in Face Select Mode now only selects linked faces if no seams separate them. So if seams are defined, this will now select the 'face group' defined by the seams. Hotkey is still LKEY. LSCM Unwrap: unwrap UV's by calculating a conformal mapping (preserving local angles). Based on seams, the selected faces will be 'cut'. If multiple 'face groups' are selected, they will be unwrapped separately and packed in the image rectangle in the UV Editor. Packing uses a simple and fast algorithm, only designed to avoid having overlapping faces. LSCM can be found in the Unwrap menu (UKEY), and the UV Calculation panel. Pinning: UV's can be pinned in the UV Editor. When LSCM Unwrap is then executed, these UV's will stay in place, allowing to tweak the solution. PKEY and ALT+PKEY will respectively pin and unpin selected UV's. Face Select Mode Drawing Changes: - Draw Seams option to enable disable drawing of seams - Draw Faces option to enable drawing of selected faces in transparent purple - Draw Hidden Edges option to enable drawing of edges of hidden faces - Draw Edges option to enable drawing of edges of visible faces The colors for these seams, faces and edges are themeable. |
Commit Details:
Full Hash: e0773281220c5af56585b0e07ccdbfc6ee485b4f
SVN Revision: 2787
Parent Commit: 4f1c674
Lines Changed: +1876, -273
2 Added Paths:
/source/blender/include/BDR_unwrapper.h (+40, -0) (View)
/source/blender/src/unwrapper.c (+1159, -0) (View)
/source/blender/src/unwrapper.c (+1159, -0) (View)
29 Modified Paths:
/source/blender/blenkernel/BKE_global.h (+2, -0) (Diff)
/source/blender/blenkernel/BKE_utildefines.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/displist.c (+7, -2) (Diff)
/source/blender/blenkernel/intern/subsurf.c (+25, -7) (Diff)
/source/blender/blenlib/BLI_arithb.h (+16, -1) (Diff)
/source/blender/blenlib/BLI_editVert.h (+3, -3) (Diff)
/source/blender/blenlib/intern/arithb.c (+21, -0) (Diff)
/source/blender/include/BIF_editmesh.h (+4, -0) (Diff)
/source/blender/include/BIF_editsima.h (+1, -0) (Diff)
/source/blender/include/BIF_resources.h (+2, -0) (Diff)
/source/blender/include/butspace.h (+20, -19) (Diff)
/source/blender/makesdna/DNA_meshdata_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_mesh_types.h (+11, -1) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+1, -0) (Diff)
/source/blender/src/buttons_editing.c (+39, -31) (Diff)
/source/blender/src/drawimage.c (+38, -13) (Diff)
/source/blender/src/drawmesh.c (+122, -58) (Diff)
/source/blender/src/drawobject.c (+21, -1) (Diff)
/source/blender/src/editface.c (+35, -15) (Diff)
/source/blender/src/editmesh.c (+204, -111) (Diff)
/source/blender/src/editobject.c (+6, -2) (Diff)
/source/blender/src/editsima.c (+32, -0) (Diff)
/source/blender/src/header_image.c (+17, -2) (Diff)
/source/blender/src/header_view3d.c (+11, -0) (Diff)
/source/blender/src/Makefile (+2, -0) (Diff)
/source/blender/src/resources.c (+8, -0) (Diff)
/source/blender/src/SConscript (+3, -1) (Diff)
/source/blender/src/space.c (+20, -5) (Diff)
/source/blender/src/toolbox.c (+3, -0) (Diff)
/source/blender/blenkernel/BKE_utildefines.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/displist.c (+7, -2) (Diff)
/source/blender/blenkernel/intern/subsurf.c (+25, -7) (Diff)
/source/blender/blenlib/BLI_arithb.h (+16, -1) (Diff)
/source/blender/blenlib/BLI_editVert.h (+3, -3) (Diff)
/source/blender/blenlib/intern/arithb.c (+21, -0) (Diff)
/source/blender/include/BIF_editmesh.h (+4, -0) (Diff)
/source/blender/include/BIF_editsima.h (+1, -0) (Diff)
/source/blender/include/BIF_resources.h (+2, -0) (Diff)
/source/blender/include/butspace.h (+20, -19) (Diff)
/source/blender/makesdna/DNA_meshdata_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_mesh_types.h (+11, -1) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+1, -0) (Diff)
/source/blender/src/buttons_editing.c (+39, -31) (Diff)
/source/blender/src/drawimage.c (+38, -13) (Diff)
/source/blender/src/drawmesh.c (+122, -58) (Diff)
/source/blender/src/drawobject.c (+21, -1) (Diff)
/source/blender/src/editface.c (+35, -15) (Diff)
/source/blender/src/editmesh.c (+204, -111) (Diff)
/source/blender/src/editobject.c (+6, -2) (Diff)
/source/blender/src/editsima.c (+32, -0) (Diff)
/source/blender/src/header_image.c (+17, -2) (Diff)
/source/blender/src/header_view3d.c (+11, -0) (Diff)
/source/blender/src/Makefile (+2, -0) (Diff)
/source/blender/src/resources.c (+8, -0) (Diff)
/source/blender/src/SConscript (+3, -1) (Diff)
/source/blender/src/space.c (+20, -5) (Diff)
/source/blender/src/toolbox.c (+3, -0) (Diff)