UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

24 lines (23 loc) 581 B
"use strict"; import { Vector3 } from "three"; import { ObjectNamedFunction1 } from "./_Base"; import { cubeLatticeDeform as _cubeLatticeDeform } from "../../core/geometry/operation/CubeLatticeDeform"; const offset = new Vector3(0, 0, 0); const options = { offset, moveObjectPosition: false }; export class cubeLatticeDeform extends ObjectNamedFunction1 { static type() { return "cubeLatticeDeform"; } func(object3D, points) { const geometry = object3D.geometry; if (!geometry) { return; } _cubeLatticeDeform(object3D, points, options); } }