aboutsummaryrefslogtreecommitdiff
path: root/js/lib/geom/rectangle.js
diff options
context:
space:
mode:
authorhwc4872012-04-04 05:52:54 -0700
committerhwc4872012-04-04 05:52:54 -0700
commit0f31002ca696c1ef303d2926a504afd27305e94f (patch)
tree8f3684ff426fd94db338b802ecf1eed643efde9d /js/lib/geom/rectangle.js
parent4b199cf04af83f59895d4d1e9a2d8443c1ec8e06 (diff)
downloadninja-0f31002ca696c1ef303d2926a504afd27305e94f.tar.gz
Added Flag material
Diffstat (limited to 'js/lib/geom/rectangle.js')
-rwxr-xr-xjs/lib/geom/rectangle.js46
1 files changed, 23 insertions, 23 deletions
diff --git a/js/lib/geom/rectangle.js b/js/lib/geom/rectangle.js
index e511d5f4..51947ff1 100755
--- a/js/lib/geom/rectangle.js
+++ b/js/lib/geom/rectangle.js
@@ -943,13 +943,13 @@ RectangleFill.create = function( rectCtr, width, height, tlRad, blRad, brRad,
943 } 943 }
944 944
945 //refine the mesh for vertex deformations 945 //refine the mesh for vertex deformations
946// if (material) { 946 if (material) {
947// if (material.hasVertexDeformation()) { 947 if (material.hasVertexDeformation()) {
948// var paramRange = material.getVertexDeformationRange(); 948 var paramRange = material.getVertexDeformationRange();
949// var tolerance = material.getVertexDeformationTolerance(); 949 var tolerance = material.getVertexDeformationTolerance();
950// nVertices = ShapePrimitive.refineMesh( this.vertices, this.normals, this.uvs, this.indices, nVertices, paramRange, tolerance ); 950 nVertices = ShapePrimitive.refineMesh( this.vertices, this.normals, this.uvs, this.indices, nVertices, paramRange, tolerance );
951// } 951 }
952// } 952 }
953 953
954 // create the RDGE primitive 954 // create the RDGE primitive
955 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, g_Engine.getContext().renderer.TRIANGLES, nVertices); 955 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, g_Engine.getContext().renderer.TRIANGLES, nVertices);
@@ -1175,13 +1175,13 @@ RectangleStroke.create = function( rectCtr, width, height, strokeWidth, tlRad,
1175 } 1175 }
1176 1176
1177 //refine the mesh for vertex deformations 1177 //refine the mesh for vertex deformations
1178// if (material) { 1178 if (material) {
1179// if (material.hasVertexDeformation()) { 1179 if (material.hasVertexDeformation()) {
1180// var paramRange = material.getVertexDeformationRange(); 1180 var paramRange = material.getVertexDeformationRange();
1181// var tolerance = material.getVertexDeformationTolerance(); 1181 var tolerance = material.getVertexDeformationTolerance();
1182// nVertices = ShapePrimitive.refineMesh( this.vertices, this.normals, this.uvs, this.indices, nVertices, paramRange, tolerance ); 1182 nVertices = ShapePrimitive.refineMesh( this.vertices, this.normals, this.uvs, this.indices, nVertices, paramRange, tolerance );
1183// } 1183 }
1184// } 1184 }
1185 1185
1186 // create the RDGE primitive 1186 // create the RDGE primitive
1187 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, g_Engine.getContext().renderer.TRIANGLES, nVertices); 1187 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, g_Engine.getContext().renderer.TRIANGLES, nVertices);
@@ -1259,15 +1259,15 @@ RectangleGeometry.create = function( ctr, width, height, material ) {
1259 RectangleGeometry.pushIndices( 0, 3, 2 ); 1259 RectangleGeometry.pushIndices( 0, 3, 2 );
1260 1260
1261 //refine the mesh for vertex deformations 1261 //refine the mesh for vertex deformations
1262// if (material) 1262 if (material)
1263// { 1263 {
1264// if (material.hasVertexDeformation()) 1264 if (material.hasVertexDeformation())
1265// { 1265 {
1266// var paramRange = material.getVertexDeformationRange(); 1266 var paramRange = material.getVertexDeformationRange();
1267// var tolerance = material.getVertexDeformationTolerance(); 1267 var tolerance = material.getVertexDeformationTolerance();
1268// nVertices = ShapePrimitive.refineMesh( this.vertices, this.normals, this.uvs, this.indices, nVertices, paramRange, tolerance ); 1268 nVertices = ShapePrimitive.refineMesh( this.vertices, this.normals, this.uvs, this.indices, nVertices, paramRange, tolerance );
1269// } 1269 }
1270// } 1270 }
1271 1271
1272 // create the RDGE primitive 1272 // create the RDGE primitive
1273 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, g_Engine.getContext().renderer.TRIANGLES, nVertices); 1273 return ShapePrimitive.create(this.vertices, this.normals, this.uvs, this.indices, g_Engine.getContext().renderer.TRIANGLES, nVertices);