Diff of /inst/vrml_points.m [b988a4] .. [c0a266]  Maximize  Restore

Switch to side-by-side view

--- a/inst/vrml_points.m
+++ b/inst/vrml_points.m
@@ -103,19 +103,19 @@
 
   if prod (size (col)) == 3*P	# One color per point
     smat = "";
-    scol = sprintf ("  color Color { color [\n   %s]\n   }\n",\
+    scol = sprintf ("  color Color { color [\n   %s]\n   }\n",...
 		    sprintf ("      %8.3f %8.3f %8.3f\n", col));
   else				# One color
-    smat = ["  appearance Appearance {\n",\
-	    vrml_material(col, emit),"\n",\
+    smat = ["  appearance Appearance {\n",...
+	    vrml_material(col, emit),"\n",...
 	    "  }\n"];
     scol = "";
   end
 
-  s = sprintf(["Shape {\n",\
-	       smat,\
-	       "  geometry PointSet {\n",\
-	       scol,\
+  s = sprintf(["Shape {\n",...
+	       smat,...
+	       "  geometry PointSet {\n",...
+	       scol,...
 	       "  coord DEF %s Coordinate {\n  point [\n  " ],name); # ] 
   
   
@@ -131,25 +131,25 @@
   s = "";
   if prod (size (col)) == 3, col = col(:) * ones (1,P); end
   for i = 1:P,
-    s0 = sprintf([\
-		  "Transform {\n",\
-		  "  translation %10.6g %10.6g %10.6g\n",\
-		  "  children [\n",\ # ]
-		  "    Billboard {\n",\
-		  "      children [\n",\ # ]
-		  "        Shape {\n",\
-		  "          appearance Appearance {\n",\
-		  vrml_material(col(:,i), emit, tran),"\n",\
-		  "          }\n",\
-		  "          geometry Text {\n",\
-		  "            string \"%s\"\n",\
-		  "            fontStyle FontStyle { size 0.25 }\n",\
-		  "          }\n",\
-		  "        }\n",\
-		  "      ]\n",\
-		  "    }\n",\
-		  "  ]\n",\
-		  "}\n"],\ # [
+    s0 = sprintf([...
+		  "Transform {\n",...
+		  "  translation %10.6g %10.6g %10.6g\n",...
+		  "  children [\n",... # ]
+		  "    Billboard {\n",...
+		  "      children [\n",... # ]
+		  "        Shape {\n",...
+		  "          appearance Appearance {\n",...
+		  vrml_material(col(:,i), emit, tran),"\n",...
+		  "          }\n",...
+		  "          geometry Text {\n",...
+		  "            string \"%s\"\n",...
+		  "            fontStyle FontStyle { size 0.25 }\n",...
+		  "          }\n",...
+		  "        }\n",...
+		  "      ]\n",...
+		  "    }\n",...
+		  "  ]\n",...
+		  "}\n"],... # [
 		 x(:,i),sprintf("%d",i-1));
 		 ## x(:,i),col,col,sprintf("%d",i-1));
     ## "              emissiveColor %8.3f %8.3f %8.3f\n",\
@@ -196,18 +196,18 @@
 				# nodes individually
     if ! all_same_col, colorstr = vrml_material (col(:,i), emit); end
 
-    s0 = sprintf([\
-		  "Transform {\n",\
-		  "  translation %10.6g %10.6g %10.6g\n",\
-		  "  children [\n",\ # ]
-		  "    Shape {\n",\
-		  "      appearance Appearance {\n",\
-		  colorstr,"\n",\
-		  "      }\n",\
-		  "      geometry ",shapestr,"\n",\
-		  "    }\n",\
-		  "  ]\n",\
-		  "}\n"],\
+    s0 = sprintf([...
+		  "Transform {\n",...
+		  "  translation %10.6g %10.6g %10.6g\n",...
+		  "  children [\n",... # ]
+		  "    Shape {\n",...
+		  "      appearance Appearance {\n",...
+		  colorstr,"\n",...
+		  "      }\n",...
+		  "      geometry ",shapestr,"\n",...
+		  "    }\n",...
+		  "  ]\n",...
+		  "}\n"],...
 		 x(:,i));
     ## "          emissiveColor %8.3f %8.3f %8.3f\n",\
     ##		 x(:,i),col,col,shape);

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks