/******************************************************************************* * Copyright (c) 2007 VTT Technical Research Centre of Finland and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * VTT Technical Research Centre of Finland - initial API and implementation *******************************************************************************/ package org.simantics.proconf.g3d.base; import org.simantics.layer0.utils.IEntity; /** * Interface for geometryProviders * * TODO : instead of using Geometry array, create class that is passed through * TODO : Current animation system links resources; what about code generated meshes ? * * @author Marko Luukkainen * */ public interface GeometryProvider { /** * Used to check if GeometryProvider can generate mesh * @param instance * @return */ public boolean canHandle(IEntity instance); /** * Generates mesh * @param instance * @param transform * @return */ public com.jme.scene.Geometry[] getGeometryFromResource(IEntity instance, boolean transform); /** * Updates mesh * @param instance * @param transform * @param geometry * @return */ public boolean reconstructGeometry(IEntity instance, boolean transform, com.jme.scene.Geometry[] geometry); }