import { MeshCutter } from './MeshCutter.js'
const meshCutter = new MeshCutter()
const plane = new THREE.Plane(new THREE.Vector3(1,0,0), 0)
const output = meshCutter.cutByPlane(mesh, plane)
/*
output = {
object1, // object1 can be null only in case of internal error.
object2, // object2 can be null if the plane doesn't cut the object.
numObjects, // number of pieces, 1 or 2. 0 for error.
}
*/
forked from webaverse/metaverse-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
gonnavis/metaverse-utils
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 100.0%