Config
配置类,用于Viewer3D引擎初始化的配置
Constructor
new Config(modelToken,container)
Parameters
param
type
description
modelToken
string
NIVIOBIM轻量化平台模型TokenId,或者模型名称。
container
HTMLElement
你APP应用的容器
Properties
name
type
description
container
HTMLElement
Viewer的容器
STAIC_PATH
string
静态路径,默认'./models/';
modelName
string
模型名称
enabledRaycaster
bool
加载的模型是否能够被射线检测,默认True;
commonPath
string
模型数据资源的公共路径
cadPath
string
CAD链接路径
modelIndexFileName
string
模型的索引文件名称,包含扩展名。
modelPropertyFileName
string
模型属性文件名称,包含扩展名。
modelTreeFileName
string
模型结构树文件名称,包含扩展名。
modelIndexFileUrl
string
模型的索引文件Url
glTFModelFileUrl
string
glTF模型文件URL,用于非流式加载。
modelTreeFileUrl
string
模型结构树文件url
modelPropertyFileUrl
string
模型属性文件url
Methods
setCadParams(params)
用于设置图模映射的参数配置
Parameters
param
type
description
setStaticPath(path)
用于配置静态路径的配置
Parameters
param
type
description
path
string
用于配置模型数据文件的静态路径,默认"./models/"
最后更新于
这有帮助吗?