Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2012-02-22 04:06:15 +0400
committerAntony Riakiotakis <kalast@gmail.com>2012-02-22 04:06:15 +0400
commitc7185d26527ef1ef56e0fe54cdef0d54578ae1b1 (patch)
tree7405af4365ea9aebb8f70e0776cf857331af499c /source/blender/editors/uvedit/uvedit_intern.h
parenta4e69673233e2506075ff43e3cdb09652fd66236 (diff)
Stitch tool fully functional again. Many thanks to Howard Trickey for proposing the loop winding criterion for normal disambiguation of edges. Unfortunately some extra memory has to be allocated for this to work correctly. If the tool had been initially written for bmesh I would have used the already present adjacency information to make it work, avoiding some extra allocations. Maybe a project for another day though, when I am more proficient with bmesh internals.
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_intern.h')
-rw-r--r--source/blender/editors/uvedit/uvedit_intern.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/source/blender/editors/uvedit/uvedit_intern.h b/source/blender/editors/uvedit/uvedit_intern.h
index 55a7bf63410..4ac68ae5a18 100644
--- a/source/blender/editors/uvedit/uvedit_intern.h
+++ b/source/blender/editors/uvedit/uvedit_intern.h
@@ -89,17 +89,18 @@ void uvedit_live_unwrap_update(struct SpaceImage *sima, struct Scene *scene, str
/* object that stores display data for previewing before accepting stitching */
typedef struct StitchPreviewer {
/* here we'll store the preview triangle indices of the mesh */
- unsigned int *preview_tris;
- /* here we store the actual uv vertices to display */
- float *preview_coords;
+ float *preview_polys;
+ /* uvs per polygon. */
+ unsigned int *uvs_per_polygon;
+ /*number of preview polygons */
+ unsigned int num_polys;
/* preview data. These will be either the previewed vertices or edges depending on stitch mode settings */
float *preview_stitchable;
float *preview_unstitchable;
- /* here we'll store the number of triangles and quads to be drawn */
- unsigned int num_tris;
+ /* here we'll store the number of elements to be drawn */
unsigned int num_stitchable;
unsigned int num_unstitchable;
-
+ unsigned int preview_uvs;
/* ...and here we'll store the triangles*/
float *static_tris;
unsigned int num_static_tris;