refactoring 3D point sequences and buffers