initialize

Initialize the configurator.

Signatures

  •   Paramate.Configurator.initialize(callback = undefined)

Details

This function does all the initialization of a configurator. It needs to be called once after the configurator object (and any objects for the viewport for server side rendering, the viewport for WebGL rendering, manually-generated or auto-generated controls) were created.

Example

 configurator = new Paramate.Configurator( {...} );
 configurator.initialize();
 

Parameters

callback

Function to be called when the initialization is done with the result as argument.

Return value

Returns an object of the configurator session creation:

 {
   id: ...,                // string: the configurator session ID
   imageKey: ...,          // string: key to use for requesting renderer images
   modelKey: ...,          // string: key to use for requesting the model
   rendererSessions:       // one or more render session objects
   [
     {
       rendererType: ...,  // string: the type of the renderer
       sessionId: ...      // string: the renderer session ID
     }
   ]
 }