|
Blender
V2.59
|
00001 /* 00002 * $Id: uvedit_intern.h 35242 2011-02-27 20:29:51Z jesterking $ 00003 * 00004 * ***** BEGIN GPL LICENSE BLOCK ***** 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software Foundation, 00018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 * 00020 * The Original Code is Copyright (C) 2008 Blender Foundation. 00021 * All rights reserved. 00022 * 00023 * 00024 * Contributor(s): Blender Foundation 00025 * 00026 * ***** END GPL LICENSE BLOCK ***** 00027 */ 00028 00034 #ifndef ED_UVEDIT_INTERN_H 00035 #define ED_UVEDIT_INTERN_H 00036 00037 struct SpaceImage; 00038 struct EditFace; 00039 struct MTFace; 00040 struct Scene; 00041 struct Image; 00042 struct Object; 00043 struct wmOperatorType; 00044 00045 /* id can be from 0 to 3 */ 00046 #define TF_PIN_MASK(id) (TF_PIN1 << id) 00047 #define TF_SEL_MASK(id) (TF_SEL1 << id) 00048 00049 00050 /* geometric utilities */ 00051 void uv_center(float uv[][2], float cent[2], int quad); 00052 float uv_area(float uv[][2], int quad); 00053 void uv_copy_aspect(float uv_orig[][2], float uv[][2], float aspx, float aspy); 00054 00055 /* operators */ 00056 void UV_OT_average_islands_scale(struct wmOperatorType *ot); 00057 void UV_OT_cube_project(struct wmOperatorType *ot); 00058 void UV_OT_cylinder_project(struct wmOperatorType *ot); 00059 void UV_OT_from_view(struct wmOperatorType *ot); 00060 void UV_OT_minimize_stretch(struct wmOperatorType *ot); 00061 void UV_OT_pack_islands(struct wmOperatorType *ot); 00062 void UV_OT_reset(struct wmOperatorType *ot); 00063 void UV_OT_sphere_project(struct wmOperatorType *ot); 00064 void UV_OT_unwrap(struct wmOperatorType *ot); 00065 00066 #endif /* ED_UVEDIT_INTERN_H */ 00067