复杂模型计算时间过长

This commit is contained in:
Last
2025-05-08 03:03:44 +08:00
parent 999168037a
commit a954ab01c4
3 changed files with 28 additions and 10 deletions

View File

@@ -2,7 +2,7 @@ import * as THREE from 'three';
import { SUBTRACTION, ADDITION, Brush, Evaluator } from 'three-bvh-csg';
export class 方形育苗盘 extends THREE.BufferGeometry {
constructor(width = 0.6, depth = 0.4, height = 0.01, holeDiameter = 0.02, holeRadius = .1, holeRows = 20, holeCols = 12, rowSpacing = .01, colSpacing = .01) {
constructor(width = 0.9, depth = 0.4, height = 0.01, holeDiameter = 0.02, holeRadius = .1, holeRows = 24, holeCols = 12, rowSpacing = .005, colSpacing = .005) {
super();
this.parameters = {