Class: MeshResource

ROS3D. MeshResource

new MeshResource(options)

A MeshResource is an THREE object that will load from a external mesh file. Currently loads Collada files.

Name Type Description

object with following keys:

  • path (optional) - the base path to the associated models that will be loaded
  • resource - the resource file name to load
  • material (optional) - the material to use for the object
  • warnings (optional) - if warnings should be printed
  • loader (optional) - the Collada loader to use (e.g., an instance of ROS3D.COLLADA_LOADER ROS3D.COLLADA_LOADER_2) -- defaults to ROS3D.COLLADA_LOADER_2
  • models/MeshResource.js, line 20