diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-01-10 14:36:57 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-01-10 14:36:57 +0300 |
commit | dd7e0b6bfeefae727bb9bcb9a5241fc3af482e4d (patch) | |
tree | 556b33bfa2e1ab09a019e240b093f2acd1a193f3 /source/blender/blenkernel/BKE_mesh.h | |
parent | b7be6620d6ecfbec1d82128f402b585041910ca9 (diff) |
Apply Subsurf to UV's.
This fixes most of the UV distortion issues with subsurf. Near seams
however there might still be some distortion, but this should at least
not be worse than before. Subsurf UV is enabled by default on new meshes,
and can be enabled in the modifier panel for existing ones.
Before and after:
http://users.pandora.be/blendix/notsmooth.png
http://users.pandora.be/blendix/smooth.png
Diffstat (limited to 'source/blender/blenkernel/BKE_mesh.h')
-rw-r--r-- | source/blender/blenkernel/BKE_mesh.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_mesh.h b/source/blender/blenkernel/BKE_mesh.h index 9f8ee3c6127..5cf6dd41e6f 100644 --- a/source/blender/blenkernel/BKE_mesh.h +++ b/source/blender/blenkernel/BKE_mesh.h @@ -92,6 +92,22 @@ void mesh_calc_normals(struct MVert *mverts, int numVerts, struct MFace *mfaces, * (_numVerts_r_ may be NULL) */ float (*mesh_getVertexCos(struct Mesh *me, int *numVerts_r))[3]; +/* map from uv vertex to face (for select linked, stitch, uv suburf) */ + +struct UvVertMap; +typedef struct UvVertMap UvVertMap; + +typedef struct UvMapVert { + struct UvMapVert *next; + unsigned int f; + unsigned char tfindex, separate; +} UvMapVert; + +UvVertMap *make_uv_vert_map(struct MFace *mface, struct TFace *tface, unsigned int totface, unsigned int totvert, int selected, float *limit); +UvMapVert *get_uv_map_vert(UvVertMap *vmap, unsigned int v); +UvMapVert *get_first_uv_map_vert(UvVertMap *vmap); +void free_uv_vert_map(UvVertMap *vmap); + #ifdef __cplusplus } #endif |