gkjohnson / three-bvh-csg

A flexible, memory compact, fast and dynamic CSG implementation on top of three-mesh-bvh
MIT License
552 stars 45 forks source link

lib can't support three.js version 0.77.1 #124

Closed pandacodecode closed 11 months ago

pandacodecode commented 11 months ago

run it

const csgEvaluator = new Evaluator();
          const brush1 = new Brush(geometry);
          const brush2 = new Brush(boxGeometry);

          const result = csgEvaluator.evaluate(brush1, brush2, SUBTRACTION);

error message: three__WEBPACK_IMPORTED_MODULE_0__.Triangle.getInterpolation is not a function

gkjohnson commented 11 months ago

Correct. Three.js version 77 is over seven years old. It should not be used anymore.

pandacodecode commented 11 months ago

tks,update lib to 0.155!