scripts/modelCreation.js
/**
 * Driver function for creating a model
 * @param {ModelSimulator} simulator The simulator to create a model for
 */
Driver function for creating a model
@param {ModelSimulator} simulator The simulator to create a model for
Driver function for creating a model @param { ModelSimulator } simulator The simulator to create a model for
function createModel(simulator) {
	simulator.modelURL = getModelURL($("#model"));
	if(checkStringEndText(simulator.modelURL, ".kmz") || checkStringEndText(simulator.modelURL, ".zip"))
		fetchKMZModel(createModelKmlObjectParser, simulator);
	if(checkStringEndText(simulator.modelURL, ".dae"))
		fetchColladaModel(simulator);
}
function createModel ( simulator ) { simulator . modelURL = getModelURL ( $ ( "#model" ) ) ; if ( checkStringEndText ( simulator . modelURL , ".kmz" ) || checkStringEndText ( simulator . modelURL , ".zip" ) ) fetchKMZModel ( createModelKmlObjectParser , simulator ) ; if ( checkStringEndText ( simulator . modelURL , ".dae" ) ) fetchColladaModel ( simulator ) ; }
Driver function for creating a model
 @param {ModelSimulator} simulator The simulator to create a model for
Driver function for creating a model @param { ModelSimulator } simulator The simulator to create a model for