Browse Source

Added the parameter singleFace to CreatePolyhedron()

jbousquie 9 năm trước cách đây
mục cha
commit
c22b6e20ad
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Mesh/babylon.meshBuilder.ts

+ 1 - 1
src/Mesh/babylon.meshBuilder.ts

@@ -478,7 +478,7 @@
             return tube;
         }
 
-        public static CreatePolyhedron(name: string, options: { type?: number, size?: number, sizeX?: number, sizeY?: number, sizeZ?: number, custom?: any, faceUV?: Vector4[], faceColors?: Color4[], updatable?: boolean, sideOrientation?: number }, scene: Scene): Mesh {
+        public static CreatePolyhedron(name: string, options: { type?: number, size?: number, sizeX?: number, sizeY?: number, sizeZ?: number, custom?: any, faceUV?: Vector4[], faceColors?: Color4[], singleFace?: boolean, updatable?: boolean, sideOrientation?: number }, scene: Scene): Mesh {
             var polyhedron = new Mesh(name, scene);
 
             var vertexData = VertexData.CreatePolyhedron(options);