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

    Function transformVerticesAroundCenter

    • Apply rotation and scale transformation to vertices around a center point.

      Uses quaternion rotation and scales vertices relative to the center. Uses initial positions if provided to prevent cumulative drift during dragging.

      Parameters

      • geometry: BufferGeometry

        The BufferGeometry to modify

      • vertexIndices: number[]

        Array of unique vertex indices to transform

      • center: [number, number, number]

        Center point for the transformation

      • rotation: { w: number; x: number; y: number; z: number }

        Quaternion rotation as {x, y, z, w}

      • scale: [number, number, number]

        Scale factors [sx, sy, sz]

      • Optionalvertices: VertexData[]

        Optional vertex data for deduplication mapping

      • OptionalinitialPositions: Map<number, [number, number, number]>

        Optional captured initial positions

      Returns void