[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31177] branches/soc-2010-rohith291991: Small bugfixes.

Rohith B V rohith291991 at gmail.com
Sun Aug 8 22:15:54 CEST 2010


Revision: 31177
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31177
Author:   rohith291991
Date:     2010-08-08 22:15:54 +0200 (Sun, 08 Aug 2010)

Log Message:
-----------
Small bugfixes. I think field generation is flawless.

Modified Paths:
--------------
    branches/soc-2010-rohith291991/intern/comiso/intern/CMesh.cpp
    branches/soc-2010-rohith291991/intern/comiso/intern/uv.cpp
    branches/soc-2010-rohith291991/source/blender/modifiers/intern/MOD_quadrangulate.c

Modified: branches/soc-2010-rohith291991/intern/comiso/intern/CMesh.cpp
===================================================================
--- branches/soc-2010-rohith291991/intern/comiso/intern/CMesh.cpp	2010-08-08 19:34:12 UTC (rev 31176)
+++ branches/soc-2010-rohith291991/intern/comiso/intern/CMesh.cpp	2010-08-08 20:15:54 UTC (rev 31177)
@@ -320,7 +320,7 @@
 
 			if(mesh->edges[mesh->faces[i].edges[j]].faces[0]!=i)
 				{count++;
-				sign2=1;
+				sign2=-1;
 				}
 
 			angle=angle*sign2;

Modified: branches/soc-2010-rohith291991/intern/comiso/intern/uv.cpp
===================================================================
--- branches/soc-2010-rohith291991/intern/comiso/intern/uv.cpp	2010-08-08 19:34:12 UTC (rev 31176)
+++ branches/soc-2010-rohith291991/intern/comiso/intern/uv.cpp	2010-08-08 20:15:54 UTC (rev 31177)
@@ -389,7 +389,7 @@
 
 		}
 	h/=totedge;
-h*=0.1;
+h*=0.3;
 	// std::cout<<h<<"\n";
 	double hh = h * h ;
 
@@ -869,7 +869,7 @@
 			
 			}; 
 
-			Vector3d normal = e[1].cross(e[0]);
+		Vector3d normal = e[1].cross(e[0]);
 		normal.normalize() ;
 		Vector3d ut ;
 	//	Vector3d x;
@@ -883,15 +883,15 @@
 		ut=Vector3d(aa*ut);
 		ut.normalize();
 
-		/*hm->faces[l].ut[0]=ut[0];
-		hm->faces[l].ut[1]=ut[1];
-		hm->faces[l].ut[2]=ut[2];*/
+		//hm->faces[l].ut[0]=ut[0];
+		//hm->faces[l].ut[1]=ut[1];
+	//	hm->faces[l].ut[2]=ut[2];
 
 		Vector3d vt = normal.cross(ut);
 		vt.normalize();
-		/*hm->faces[l].vt[0]=vt[0];
-		hm->faces[l].vt[1]=vt[1];
-		hm->faces[l].vt[2]=vt[2];*/
+		//hm->faces[l].vt[0]=vt[0];
+		//hm->faces[l].vt[1]=vt[1];
+		//hm->faces[l].vt[2]=vt[2];
 
 		double x,y,z;
 

Modified: branches/soc-2010-rohith291991/source/blender/modifiers/intern/MOD_quadrangulate.c
===================================================================
--- branches/soc-2010-rohith291991/source/blender/modifiers/intern/MOD_quadrangulate.c	2010-08-08 19:34:12 UTC (rev 31176)
+++ branches/soc-2010-rohith291991/source/blender/modifiers/intern/MOD_quadrangulate.c	2010-08-08 20:15:54 UTC (rev 31177)
@@ -267,8 +267,8 @@
 			//Test code
 			cm.faces[3].flag |= CF_CONSTRAINED;
 			cm.faces[3].theta=0.3;
-			//cm.faces[10].flag |= CF_CONSTRAINED;
-			//cm.faces[10].theta=2.35;
+			//cm.faces[15].flag |= CF_CONSTRAINED;
+			//cm.faces[15].theta=2.35;
 			/*	cm.faces[25].flag |= CF_CONSTRAINED;
 			cm.faces[25].theta=6.3;
 			cm.faces[50].flag |= CF_CONSTRAINED;





More information about the Bf-blender-cvs mailing list