A constant remote model designed for viewing CAE models with a stateless, scalable server.
The ConstantRemoteModel supports an efficient and scalable streaming of pre-defined CAE model configurations. The server is a stateless REST API based server that has very low resource usage on the server side and is easy to load balance. The streaming also starts immediately when a model is opened, no matter the size of the model. Similar to RemoteModel, it utilizes 3D Progressive Object Streaming to the client. The model needs to be converted into a CUG database format before it can be streamed. This is done with the included CugComposer command line utility.
The ConstantRemoteModel is used in the viewer on Ceetron Cloud.
See the example in Examples/BuildYourFirstApp/2-Viewer for how to use the ConstantRemoteModel.
The animation control for this ConstantRemoteModel
The frame to show
The given zero-based index must be between 0 and frameCount - 1.
Returns the ModelSpec describing the result used in this model
Might return null if model is not streamed yet or the model does not have result info.
Name of the model.
Mainly used for debugging.
Returns the number of parts in this model
Returns the SimulationInfo describing the simulation that is the source for this model.
Might return null if model is not streamed yet or the model does not have simulation info
Get the array with all ResultInfos defined in this model
Performs picking on the model using the current frame, querying the server for additional info
If something was hit, returns a HitItem containing information about the object that was hit. Returns null if nothing was hit.
This method will query the CUG server for additional info on the selected item
Set a master model to which animation in this model will be synchronized.
Calling this function will make this model a slave of masterModel with regards to animations. This means that animations will be controlled via the master model's animation control and that this model's animation control become invalid. To set this model back to normal operation, pass null to this function.
Sets a one- shot callback that will be called the next time we observe that data streaming is complete
Sets a handler function that will be called whenever when new progress data is available
Generated using TypeDoc