Hook for managing mesh editor state and operations.
Provides all the state and methods needed to implement a mesh editor, including selection management, vertex manipulation, and geometry updates.
const editor = useMeshEditor({ geometry: myGeometry, onGeometryChange: (geo) => console.log('Geometry changed'),});// Select a vertexeditor.selectVertex(0);// Move selected verticeseditor.moveSelectedVertices([0.1, 0, 0]); Copy
const editor = useMeshEditor({ geometry: myGeometry, onGeometryChange: (geo) => console.log('Geometry changed'),});// Select a vertexeditor.selectVertex(0);// Move selected verticeseditor.moveSelectedVertices([0.1, 0, 0]);
Hook for managing mesh editor state and operations.
Provides all the state and methods needed to implement a mesh editor, including selection management, vertex manipulation, and geometry updates.