Respect primitive type when using Line and BufferGeometry