New feature; User definable Clipping Planes.
authorTon Roosendaal <ton@blender.org>
Sat, 20 Aug 2005 19:18:35 +0000 (19:18 +0000)
committerTon Roosendaal <ton@blender.org>
Sat, 20 Aug 2005 19:18:35 +0000 (19:18 +0000)
commitdd5410162aa3eec61906febfdb0a550122cb2202
tree27e702e1fb98fb6cb39e3a454ce052916b65bd5d
parentad5ac39ccc9941a77a69266eedb5f4218a779c32
New feature; User definable Clipping Planes.

Press ALT+B in 3d window, draw a rect, and it becomes a clipping
volume of 4 planes. You then can rotate the view anyway you like.
Works for each 3d window individually.

Disable it with another ALT+B press.

Commit is huge because it had to change all selection code as well.
The user-clipping planes are in 'eye space', the other clipping
happens in projected 'viewport space'.

Nice to notice is that the 'x=3200' convention (to denote a coordinate
is clipped) now is a define. Define value is still a number though... but
we now can get up to screens of 12000 pixels without issues!

Known issue; here it refuses to draw the 'object centers' or Lamp icons
within the clipping region. Can't find any reason for it... however, we
might move to non-pixmaps for it anyway.

Testing might reveil numerous issues, will be standby for it.

Curious? Check this http://www.blender.org/bf/rt4.jpg
18 files changed:
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/writefile.c
source/blender/include/BIF_editview.h
source/blender/include/BSE_drawview.h
source/blender/include/BSE_view.h
source/blender/makesdna/DNA_object_types.h
source/blender/makesdna/DNA_view3d_types.h
source/blender/src/drawimage.c
source/blender/src/drawipo.c
source/blender/src/drawobject.c
source/blender/src/drawview.c
source/blender/src/editlattice.c
source/blender/src/editmesh_mods.c
source/blender/src/editmesh_tools.c
source/blender/src/editview.c
source/blender/src/space.c
source/blender/src/transform.c
source/blender/src/view.c