David Catuhe 8 年之前
父节点
当前提交
a7856af022
共有 4 个文件被更改,包括 8122 次插入8162 次删除
  1. 4061 4070
      dist/preview release/babylon.d.ts
  2. 4061 4070
      dist/preview release/babylon.module.d.ts
  3. 0 1
      dist/preview release/what's new.md
  4. 0 21
      src/Mesh/babylon.mesh.ts

文件差异内容过多而无法显示
+ 4061 - 4070
dist/preview release/babylon.d.ts


文件差异内容过多而无法显示
+ 4061 - 4070
dist/preview release/babylon.module.d.ts


+ 0 - 1
dist/preview release/what's new.md

@@ -28,7 +28,6 @@
  - New blur mode for mirrors. [Demo](https://www.babylonjs-playground.com/#9I6NX1) ([deltakosh](https://github.com/deltakosh)) 
 
 ### Updates
-- New `mesh.recomputeNormals` function ([deltakosh](https://github.com/deltakosh))
 - New helpers to use ExtrudePolygon. [Demo](http://www.babylonjs-playground.com/#RNCYVM#10) ([Cubees](https://github.com/Cubees))
 - PostProcess can now use alpha blending and share outputs ([deltakosh](https://github.com/deltakosh))
 - Added `ArcRotateCamera.panningInertia` to decouple inertia from panning inertia ([deltakosh](https://github.com/deltakosh))

+ 0 - 21
src/Mesh/babylon.mesh.ts

@@ -805,27 +805,6 @@
         }
 
         /**
-         * This method will force the computation of normals for the mesh.
-         * Please note that the mesh must have normals vertex data already.
-         * Returns the Mesh. 
-         */
-        public recomputeNormals(markDataAsUpdatable?: boolean): Mesh {
-            var positions = this.getVerticesData(VertexBuffer.PositionKind);
-            var indices = this.getIndices();
-            var normals: number[] | Float32Array;
-            
-            if (this.isVerticesDataPresent(VertexBuffer.NormalKind)) {
-                normals = this.getVerticesData(VertexBuffer.NormalKind);
-            } else {
-                normals = [];
-            }
-            VertexData.ComputeNormals(positions, indices, normals);
-            this.setVerticesData(VertexBuffer.NormalKind, normals, markDataAsUpdatable);
-
-            return this;
-        }
-
-        /**
          * Creates a un-shared specific occurence of the geometry for the mesh.  
          * Returns the Mesh.  
          */