[tuhopuu-cvs] CVS commit: tuhopuu2/source/blender/src editface.c

Martin Poirier theeth at yahoo.com
Mon Dec 22 04:41:44 CET 2003


theeth (Martin Poirier) 2003/12/22 04:41:44 CET

  Modified files:
    tuhopuu2/source/blender/src editface.c 
  
  Log:
  BjornMose's patch approved for commitement (really nice feature btw). I just reformated and removed some warnings.
  
  ----- Original e-mail -----
  
  hi all
  
  i posted a suggestion at the blender forum (interface section)
  about UV calculation in the faceedit 3d window. it was about
  the static orientation of the sphere and cylinder mapping.
  
  torq suggested to use the current view to determine of the
  projection sphere / cylinder like the "from window" option does.
  
  Well, i did some coding to see if it would work.
  
  the attached patch applies to uv_autocalc_tface() in faceedit.c and does:
  
  1. append two options (from window to sphere ..cylinder) to the UV calculation popup
  
  2. inserts two new cases to the corresponding switch statement
  
  3. the code in this cases
  a. cares for the around settings of the 3D view (bounding box and cursor work)
  b. calculates a rotation matrix such that the orgigin of the
  polar/spherical coordinate system points out of the screen
  c. in the cylinder case pops up a fbutton to read the radius of the projection cylinder.
  d. calculates the new UV coordinates for the selected faces.
  
  notes
  the code that gets the rotaion from the view is a little hacky, may be this can be done better.
  it did compile with MSVC 6, have no other compiler working yet
  
  bjornmose
  
  grabbed it from the wincvs result window so may be wrong CFLFs
  (is there a way to pipe wincvs output to a file ? no tcl installed)
  
  Revision  Changes    Path
  1.2       +208 -10   tuhopuu2/source/blender/src/editface.c



More information about the tuhopuu-cvs mailing list