Settings
To use C3D Vision properly, you should pass a preliminary configuration.
Example of creating a view
variable for further use (TypeScript):
const instance = await c3dvision.createC3DViewer({
c3dService: {
host: 'http://127.0.0.1',
port: '12345'
}
})
const view: c3dvision.C3DModelView = await instance.createView('#view', {
environment:{
background:{
brush:"LinearGradient",
color_1:{
"r":255,
"g":255,
"b":255
},
color_2:{
"r":200,
"g":235,
"b":255
}
}
}
}, {})
This section helps to configure:
instance settings for
c3dvision.createC3DViewer(..)
function,view settings for second argument of
instance.createView(..)
functionand view options: optional third argument of
instance.createView(..)
function.instance settings for the
c3dviewer.createC3DViewer(..)
function,view settings as the second argument of the
instance.createView(..)
functionand view options as the third optional argument of the
instance.createView(..)
function.