[Bf-committers] Patch for auto-identation in text editor
Campbell Barton
bf-committers@blender.org
Wed, 14 Jul 2004 13:31:40 +1000
Hi, Im having trouble comparing the colours of 2 faces- to break it down
All I need to do is compare the colour of 2 faces verts, as shown below.
- Comparing the red of the first vert of 2 faces.
active_tface[0].col[0] <= tface[0].col[0]+limit_int &&
active_tface[0].col[0]+limit_int >= tface[0].col[0]
As you can see Im using a limit to make its possible to have some fuzzyness.
One problem I have is Im not sure whats white and whats black
from doing a ...
printf("u%", active_tface[0].col[0])
the col is an unsigned int from 255 to 4294967295
The problem is that the races that are selected seem random and I was
windering if there was a better way to compare the colours of 2 faces.
- Cam
--
Campbell J Barton
133 Hope Street
Geelong West, Victoria 3218 Australia
URL: http://www.metavr.com
e-mail: cbarton@metavr.com
phone: AU (03) 5229 0241