/* 1677 */ J3DBuffer buffer = ga.getCoordRefBuffer();
/* 1678 */ this.initialPositionIndex = ga.getInitialCoordIndex();
/* */
/* 1680 */ switch (BufferWrapper.getBufferType(buffer)) {
/* */ case 3:
/* 1682 */ this.positionsF = new FloatBufferWrapper(buffer);
/* */
/* 1684 */ break;
/* */ case 4:
/* 1686 */ this.positionsD = new DoubleBufferWrapper(buffer);
/* */
/* 1688 */ break;
/* */ default:
/* 1690 */ throw new IllegalArgumentException("\nposition buffer must be FloatBuffer or DoubleBuffer");
/* */ }
/* */
/* 1694 */ if (CompressionStream.this.vertexColors) {
/* 1695 */ buffer = ga.getColorRefBuffer();
/* 1696 */ this.initialColorIndex = ga.getInitialColorIndex();
/* */
/* 1698 */ switch (BufferWrapper.getBufferType(buffer)) {
/* */ case 2:
/* 1700 */ this.colorsB = new ByteBufferWrapper(buffer);
/* */
/* 1702 */ break;
/* */ case 3:
/* 1704 */ this.colorsF = new FloatBufferWrapper(buffer);
/* */
/* 1706 */ break;
/* */ default:
/* 1708 */ throw new IllegalArgumentException("\ncolor buffer must be ByteBuffer or FloatBuffer");
/* */ }
/* */
/* */ }
/* */
/* 1713 */ if (CompressionStream.this.vertexNormals) {
/* 1714 */ buffer = ga.getNormalRefBuffer();
/* 1715 */ this.initialNormalIndex = ga.getInitialNormalIndex();
/* */
/* 1717 */ switch (BufferWrapper.getBufferType(buffer)) {
/* */ case 3:
/* 1719 */ this.normals = new FloatBufferWrapper(buffer);
/* */
/* 1721 */ break;
/* */ default:
/* 1723 */ throw new IllegalArgumentException("\nnormal buffer must be FloatBuffer");
/* */ }