Package org.geppetto.core.model

Examples of org.geppetto.core.model.ModelWrapper


  private static final String COLLADA = "COLLADA";

  @Override
  public IModel readModel(URL url, List<URL> recordings, String instancePath) throws ModelInterpreterException
  {
    ModelWrapper collada = new ModelWrapper(instancePath);
    try
    {
      Scanner scanner = new Scanner(url.openStream(), "UTF-8");
      String colladaContent = scanner.useDelimiter("\\A").next();
      scanner.close();
      collada.wrapModel(COLLADA, colladaContent);
    }
    catch(IOException e)
    {
      throw new ModelInterpreterException(e);
    }
View Full Code Here


  private static final String OBJ = "OBJ";

  @Override
  public IModel readModel(URL url, List<URL> recordings, String instancePath) throws ModelInterpreterException
  {
    ModelWrapper collada = new ModelWrapper(instancePath);
    try
    {
      Scanner scanner = new Scanner(url.openStream(), "UTF-8");
      String objContent = scanner.useDelimiter("\\A").next();
      scanner.close();
      collada.wrapModel(OBJ, objContent);
    }
    catch(IOException e)
    {
      throw new ModelInterpreterException(e);
    }
View Full Code Here

TOP

Related Classes of org.geppetto.core.model.ModelWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.