Blender V2.61 - r43446

uvedit_intern.h

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