diff options
Diffstat (limited to 'js/lib/geom/rectangle.js')
-rwxr-xr-x | js/lib/geom/rectangle.js | 46 |
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); |