[Soc-2005-cvs] CVS commit: soc-blender/intern/nurbana/intern NURBS_Generate.cpp Object_NURBS.cpp Object_Primitives.cpp libNurbana.cpp

Emmanuel Stone emmanuel.stone at gmail.com
Sat Aug 20 23:16:16 CEST 2005


eman (Emmanuel Stone) 2005/08/20 23:16:16 CEST

  Modified files:        (Branch: eman)
    soc-blender/intern/nurbana/intern NURBS_Generate.cpp 
                                      Object_NURBS.cpp 
                                      Object_Primitives.cpp 
                                      libNurbana.cpp 
  
  Log:
  Many changes relating to conversion between cyclic and non-cyclic surface and curves.
  This is still broken, but I am pretty close to fixing it.
  The problem is that nurbana and blender make different assumptions about how
  a surface or curve should be stored in memory if it is cyclic:
  blender 	- stored identically to non-cyclic with extra knots
  		 	- automagically generate 'extra' loopy cyclic virtual CP
  
  nurbana 	- 'manually' converts a non-cyclic surface or curve
  			-	resulting surface/curve is also non-cyclic but appears to
  				be cyclic because extra virtual CP are copied to the end of the loop(s)
  
  All this means is that I have to manually convert to and from each style, and this
  is proving to be tricky because of (among other things) the fact that the CP are
  stored in a 1D array which needs to be resized and restored.
  
  This approach was adopted so as to preserve backwards compatibility. Converting
  nurbana to algorithmically deal with blender's cyclic style would be a large
  undertaking at this point.
  
  curve should still work fine. circle is temporarily broken, as is cyclic switching.
  
  Revision  Changes    Path
  1.1.2.15  +3 -14     soc-blender/intern/nurbana/intern/Attic/NURBS_Generate.cpp
    <http://projects.blender.org/viewcvs/viewcvs.cgi/soc-blender/intern/nurbana/intern/Attic/NURBS_Generate.cpp.diff?r1=1.1.2&r2=1.1.2.15&cvsroot=soc-2005&only_with_tag=eman>
  1.1.2.11  +2 -2      soc-blender/intern/nurbana/intern/Attic/Object_NURBS.cpp
    <http://projects.blender.org/viewcvs/viewcvs.cgi/soc-blender/intern/nurbana/intern/Attic/Object_NURBS.cpp.diff?r1=1.1.2&r2=1.1.2.11&cvsroot=soc-2005&only_with_tag=eman>
  1.1.2.12  +4 -2      soc-blender/intern/nurbana/intern/Attic/Object_Primitives.cpp
    <http://projects.blender.org/viewcvs/viewcvs.cgi/soc-blender/intern/nurbana/intern/Attic/Object_Primitives.cpp.diff?r1=1.1.2&r2=1.1.2.12&cvsroot=soc-2005&only_with_tag=eman>
  1.1.2.15  +103 -61   soc-blender/intern/nurbana/intern/Attic/libNurbana.cpp
    <http://projects.blender.org/viewcvs/viewcvs.cgi/soc-blender/intern/nurbana/intern/Attic/libNurbana.cpp.diff?r1=1.1.2&r2=1.1.2.15&cvsroot=soc-2005&only_with_tag=eman>


More information about the Soc-2005-cvs mailing list