@wendylabsinc/react-three-mesh-editor - v0.0.1
    Preparing search index...

    Function useMeshEditor

    • 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.

      Parameters

      Returns UseMeshEditorReturn

      const editor = useMeshEditor({
      geometry: myGeometry,
      onGeometryChange: (geo) => console.log('Geometry changed'),
      });

      // Select a vertex
      editor.selectVertex(0);

      // Move selected vertices
      editor.moveSelectedVertices([0.1, 0, 0]);