public void replaceWithModel(Model model, boolean replaceAlpha) {
		vertexCount = model.vertexCount;
		triangleCount = model.triangleCount;
		texturedTriangleCount = model.texturedTriangleCount;
		if (anIntArray1622.length < vertexCount) {
			anIntArray1622 = new int[vertexCount + 100];
			anIntArray1623 = new int[vertexCount + 100];
			anIntArray1624 = new int[vertexCount + 100];
		}
		verticesX = anIntArray1622;
		verticesY = anIntArray1623;
		verticesZ = anIntArray1624;
		for (int vertex = 0; vertex < vertexCount; vertex++) {
			verticesX[vertex] = model.verticesX[vertex];
			verticesY[vertex] = model.verticesY[vertex];
			verticesZ[vertex] = model.verticesZ[vertex];
		}

		if (replaceAlpha) {
			triangleAlpha = model.triangleAlpha;
		} else {
			if (anIntArray1625.length < triangleCount)
				anIntArray1625 = new int[triangleCount + 100];
			triangleAlpha = anIntArray1625;
			if (model.triangleAlpha == null) {
				for (int triangle = 0; triangle < triangleCount; triangle++)
					triangleAlpha[triangle] = 0;

			} else {
				System.arraycopy(model.triangleAlpha, 0, triangleAlpha, 0,
						triangleCount);

			}
		}
		triangleDrawType = model.triangleDrawType;
		triangleColours = model.triangleColours;
		trianglePriorities = model.trianglePriorities;
		trianglePriority = model.trianglePriority;
		triangleSkin = model.triangleSkin;
		vertexSkin = model.vertexSkin;
		triangleX = model.triangleX;
		triangleY = model.triangleY;
		triangleZ = model.triangleZ;
		triangleHSLA = model.triangleHSLA;
		triangleHSLB = model.triangleHSLB;
		triangleHSLC = model.triangleHSLC;
		texturedTrianglePointsX = model.texturedTrianglePointsX;
		texturedTrianglePointsY = model.texturedTrianglePointsY;
		texturedTrianglePointsZ = model.texturedTrianglePointsZ;
	}