diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2005-12-04 02:22:31 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2005-12-04 02:22:31 +0300 |
commit | c2cff1cbcf71634de3aca184c70cc4bd23fe35a8 (patch) | |
tree | f5b507efeffa60eb028dc0887226a28cf8182e86 /source/blender/src/parametrizer_intern.h | |
parent | 8cb14867b0ad104ebe1f6fd086656dd12ada5758 (diff) |
More work on the new unwrapper code (orange branch):
- 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.
Diffstat (limited to 'source/blender/src/parametrizer_intern.h')
-rw-r--r-- | source/blender/src/parametrizer_intern.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/src/parametrizer_intern.h b/source/blender/src/parametrizer_intern.h index d873c1dab47..f22a7e4ab66 100644 --- a/source/blender/src/parametrizer_intern.h +++ b/source/blender/src/parametrizer_intern.h @@ -39,7 +39,7 @@ PHashLink *phash_next(PHash *ph, PHashKey key, PHashLink *link); if (!(condition)) \ { printf("Assertion %s:%d\n", __FILE__, __LINE__); abort(); } #define param_warning(message) \ - { printf("Warning %s:%d: %s\n", __FILE__, __LINE__, message); + { printf("Warning %s:%d: %s\n", __FILE__, __LINE__, message); } #endif typedef enum PBool { @@ -153,18 +153,22 @@ typedef struct PChart { struct PChartLscm { NLContext context; float *abf_alpha; - PVert *singlepin; PVert *pin1, *pin2; } lscm; struct PChartPack { - float rescale; + float rescale, area; float size[2], trans[2]; } pack; } u; + int flag; struct PHandle *handle; } PChart; +enum PChartFlag { + PCHART_NOPACK = 1 +}; + enum PHandleState { PHANDLE_STATE_ALLOCATED, PHANDLE_STATE_CONSTRUCTED, |