SKYCIV.renderer Model
SkyCiv 3D renderer is available to bring 3D models to life. Use the SkyCiv Renderer to build and visualise the model ensuring the structure is built correctly it is built.
This client side renderer can be included in your applications enabling full rendering of the model in real-time.
viewer.model
#
The following methods are available through the viewer.model
property.
set
#
Function: viewer.model.set(s3d_model, callback)
Description: Sets/updates your S3D model in the viewer.
Params: An s3d_model object and a callback function to run once the model has been set.
buildStructure
#
Builds the object to be read by the renderer.
Function: viewer.model.buildStructure(run_update)
Description: Builds the object to be read by the renderer.
Params: A boolean indicating if run_update
should be triggered following the build.
viewer.results
#
The following methods are available through the viewer.results
property.
set
#
Function: viewer.results.set(analysis_results, callback)
Description: Set results to the model.
Params: The analysis_results
object and a callback function to run once the results have been set.
note
The object analysis_results
can be generated from a structural analysis via S3D.model.solve
. Below is an example of a function to display some results data and to modify the deformation of the structure.
setSettings
#
Function: viewer.results.setSettings(settings_object)
Description: Set the results settings for the viewer.
Params: The settings_object
object.
runDeformationAnimation
#
Function: viewer.results.runDeformationAnimation(settings_object)
Description: Runs an animation of the structure's deformation.
Params: The settings_object
object.