David `Deltakosh` Catuhe 5 years ago
parent
commit
174d2b278b

+ 1 - 5
dist/preview release/babylon.max.js

@@ -115366,7 +115366,6 @@ _mesh_vertexData__WEBPACK_IMPORTED_MODULE_0__["VertexData"].CreateCapsule = func
         radius: 0.25,
         capSubdivisions: 6
     }; }
-    //let path = options.orientation || Vector3.Up()
     var subdivisions = Math.max(options.subdivisions ? options.subdivisions : 2, 1);
     var tessellation = Math.max(options.tessellation ? options.tessellation : 16, 3);
     var height = Math.max(options.height ? options.height : 2, 0.);
@@ -115385,9 +115384,7 @@ _mesh_vertexData__WEBPACK_IMPORTED_MODULE_0__["VertexData"].CreateCapsule = func
     var vertices = [];
     var normals = [];
     var uvs = [];
-    var index = 0, 
-    //indexOffset = 0,
-    indexArray = [], halfHeight = height / 2;
+    var index = 0, indexArray = [], halfHeight = height / 2;
     var x, y;
     var normal = _Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__["Vector3"].Zero();
     var vertex = _Maths_math_vector__WEBPACK_IMPORTED_MODULE_1__["Vector3"].Zero();
@@ -115398,7 +115395,6 @@ _mesh_vertexData__WEBPACK_IMPORTED_MODULE_0__["VertexData"].CreateCapsule = func
     var vl = radiusTop * alpha
         + cone_length
         + radiusBottom * (Math.PI / 2 - alpha);
-    //var groupCount = 0;
     // generate vertices, normals and uvs
     var v = 0;
     for (y = 0; y <= capsTopSegments; y++) {

File diff suppressed because it is too large
+ 1 - 1
dist/preview release/babylon.max.js.map


+ 1 - 1
src/Meshes/Builders/capsuleBuilder.ts

@@ -204,7 +204,7 @@ VertexData.CreateCapsule = function(
         // now save vertices of the row in our index array
         indexArray.push(indexRow);
     }
-    
+
     // generate indices
     for (x = 0; x < radialSegments; x ++) {
         for (y = 0; y < capsTopSegments + heightSegments + capsBottomSegments; y ++) {