three-csg-ts
Advanced tools
Comparing version 3.1.11 to 3.1.12
@@ -16,3 +16,3 @@ "use strict"; | ||
constructor() { | ||
this.polygons = new Array(); | ||
this.polygons = []; | ||
} | ||
@@ -70,3 +70,3 @@ static fromPolygons(polygons) { | ||
} | ||
return CSG.fromPolygons(polys.filter((p) => !isNaN(p.plane.normal.x))); | ||
return CSG.fromPolygons(polys.filter((p) => !Number.isNaN(p.plane.normal.x))); | ||
} | ||
@@ -73,0 +73,0 @@ static toGeometry(csg, toMatrix) { |
@@ -13,3 +13,3 @@ import { BufferAttribute, BufferGeometry, Matrix3, Matrix4, Mesh, Vector3, } from 'three'; | ||
constructor() { | ||
this.polygons = new Array(); | ||
this.polygons = []; | ||
} | ||
@@ -67,3 +67,3 @@ static fromPolygons(polygons) { | ||
} | ||
return CSG.fromPolygons(polys.filter((p) => !isNaN(p.plane.normal.x))); | ||
return CSG.fromPolygons(polys.filter((p) => !Number.isNaN(p.plane.normal.x))); | ||
} | ||
@@ -70,0 +70,0 @@ static toGeometry(csg, toMatrix) { |
{ | ||
"name": "three-csg-ts", | ||
"version": "3.1.11", | ||
"version": "3.1.12", | ||
"description": "CSG library for use with THREE.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/cjs/index.js", |
56754