three-csg-ts
Advanced tools
Comparing version 3.1.10 to 3.1.11
@@ -60,3 +60,3 @@ "use strict"; | ||
for (const grp of grps) { | ||
if (index[i] >= grp.start && index[i] < grp.start + grp.count) { | ||
if (i >= grp.start && i < grp.start + grp.count) { | ||
polys[pli] = new Polygon_1.Polygon(vertices, grp.materialIndex); | ||
@@ -63,0 +63,0 @@ } |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
@@ -57,3 +57,3 @@ import { BufferAttribute, BufferGeometry, Matrix3, Matrix4, Mesh, Vector3, } from 'three'; | ||
for (const grp of grps) { | ||
if (index[i] >= grp.start && index[i] < grp.start + grp.count) { | ||
if (i >= grp.start && i < grp.start + grp.count) { | ||
polys[pli] = new Polygon(vertices, grp.materialIndex); | ||
@@ -60,0 +60,0 @@ } |
{ | ||
"name": "three-csg-ts", | ||
"version": "3.1.10", | ||
"version": "3.1.11", | ||
"description": "CSG library for use with THREE.js", | ||
@@ -21,3 +21,3 @@ "main": "lib/cjs/index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/Jiro-Digital/three-csg-ts.git" | ||
"url": "git+https://github.com/samalexander/three-csg-ts.git" | ||
}, | ||
@@ -31,8 +31,8 @@ "keywords": [ | ||
], | ||
"author": "Jiro", | ||
"author": "Sam Alexander", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/Jiro-Digital/three-csg-ts/issues" | ||
"url": "https://github.com/samalexander/three-csg-ts/issues" | ||
}, | ||
"homepage": "https://github.com/Jiro-Digital/three-csg-ts#readme", | ||
"homepage": "https://github.com/samalexander/three-csg-ts#readme", | ||
"devDependencies": { | ||
@@ -39,0 +39,0 @@ "@types/jest": "^27.0.1", |
@@ -35,3 +35,6 @@ # three-csg-ts | ||
// Make 2 meshes.. | ||
const box = new THREE.Mesh(new THREE.BoxGeometry(2, 2, 2), new THREE.MeshNormalMaterial()); | ||
const box = new THREE.Mesh( | ||
new THREE.BoxGeometry(2, 2, 2), | ||
new THREE.MeshNormalMaterial() | ||
); | ||
const sphere = new THREE.Mesh(new THREE.SphereGeometry(1.2, 8, 8)); | ||
@@ -38,0 +41,0 @@ |
56758
1481
51