- There is now a (temporary) dropdown box in the image window header for switching between the old an new unwrapper code. So to test the changes described below you need to enable the new unwrapper code. - Pinning is now more predictable, if one uv is pinned, the others belonging to the same vertex are pinned also. - Live LSCM is much faster, since the LU factorization, the most expensive part of the computation, is now stored and reused (was Jens' idea). - Packing multiple uv charts is slightly improved, by doing a binary search over the texture width. This fixes the case where all the charts are packed at the bottom of the image. - LSCM now uses an angle based formulation, and the results seem somewhat different (maybe slightly better?), didn't find out why yet.
50 lines
1.7 KiB
C++
50 lines
1.7 KiB
C++
/**
|
|
* $Id$
|
|
*
|
|
* ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version. The Blender
|
|
* Foundation also sells licenses for use in proprietary software under
|
|
* the Blender License. See http://www.blender.org/BL/ for information
|
|
* about this.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*
|
|
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
|
* All rights reserved.
|
|
*
|
|
* The Original Code is: all of this file.
|
|
*
|
|
* Contributor(s): none yet.
|
|
*
|
|
* ***** END GPL/BL DUAL LICENSE BLOCK *****
|
|
*/
|
|
|
|
#ifndef BDR_UNWRAPPER_H
|
|
#define BDR_UNWRAPPER_H
|
|
|
|
void set_seamtface(void); /* set TF_SEAM flags in tfaces */
|
|
void select_linked_tfaces_with_seams(int mode, Mesh *me, unsigned int index);
|
|
|
|
void unwrap_lscm(void); /* unwrap faces selected in 3d view */
|
|
void unwrap_lscm_new(void);
|
|
void minimize_stretch_tface_uv(void); /* optimize faces selected in uv editor */
|
|
|
|
/* for live mode: no undo pushes, caching for quicky re-unwrap */
|
|
void unwrap_lscm_live_begin(void);
|
|
void unwrap_lscm_live_re_solve(void);
|
|
void unwrap_lscm_live_end(void);
|
|
|
|
#endif /* BDR_UNWRAPPER_H */
|
|
|