Newer
Older
CactusClient / src / java3d / TriangleArray.java
n-konishi on 8 May 2018 508 bytes first commit
package java3d;

public class TriangleArray extends GeometryArray {

	public TriangleArray(int vertexCount, int vertexFormat) {
		super(vertexCount, vertexFormat);
	}

	@Override
	public NodeComponent cloneNodeComponent() {
		TriangleArray newOne = new TriangleArray(vertexCount, vertexFormat);
		newOne.vertexBuffer = vertexBuffer.duplicate();
		if (normalBuffer != null) newOne.normalBuffer = normalBuffer.duplicate();
		if (uvBuffer != null) newOne.uvBuffer = uvBuffer.duplicate();
		return newOne;
	}

}