The BufferGeometry to modify
Array of unique vertex indices to transform
Center point for the transformation
Quaternion rotation as {x, y, z, w}
Scale factors [sx, sy, sz]
Optionalvertices: VertexData[]Optional vertex data for deduplication mapping
OptionalinitialPositions: Map<number, [number, number, number]>Optional captured initial positions
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.