Browse Source

Create Polygon Correct Parameter Order

Cubees 8 years ago
parent
commit
8bd133e246
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Mesh/babylon.mesh.ts

+ 2 - 2
src/Mesh/babylon.mesh.ts

@@ -2517,7 +2517,7 @@
          * The mesh can be set to updatable with the boolean parameter `updatable` (default false) if its internal geometry is supposed to change once created.
          * Remember you can only change the shape positions, not their number when updating a polygon.
          */
-        public static CreatePolygon(name: string, shape: Vector3[], holes?: Vector3[][], updatable?: boolean, sideOrientation?: number, scene: Scene): Mesh {
+        public static CreatePolygon(name: string, shape: Vector3[], scene: Scene, holes?: Vector3[][], updatable?: boolean, sideOrientation?: number): Mesh {
             var options = {
                 shape: shape,
                 holes: holes,
@@ -2531,7 +2531,7 @@
          * Creates an extruded polygon mesh, with depth in the Y direction. 
          * Please consider using the same method from the MeshBuilder class instead. 
 		*/
-        public static ExtrudePolygon(name: string, shape: Vector3[], holes?: Vector3[][], depth?: number, updatable?: boolean, sideOrientation?: number, scene: Scene): Mesh {
+        public static ExtrudePolygon(name: string, shape: Vector3[], depth: number, scene: Scene, holes?: Vector3[][], updatable?: boolean, sideOrientation?: number): Mesh {
             var options = {
                 shape: shape,
                 holes: holes,