}
}
// Clone appearance to avoid sharing it
if (appearance != null) {
appearance = (Appearance)appearance.cloneNodeComponent(false);
// Create texture coordinates if geometry doesn't define its own coordinates
// and appearance contains a texture
if (!firstGeometryHasTextureCoordinateIndices
&& appearance.getTexture() != null) {
appearance.setTexCoordGeneration(new TexCoordGeneration());