These are not implemented yet, so currently PerformanceModel#setPickable() and PerformanceModel#setColorize() are just empty methods.
PerformanceModel is used as the default scene representation within BIMServerLoaderPlugin and GLTFLoaderPlugin. If you need these two functions for Entity's loaded by these plugins, then a workaround (for non-huge models) is to load models with performance: false, which will internally use the xeokit's scene graph representation, which has Node and MeshEntity types which support pickable and colorize.
const bimServerLoader = new BIMServerLoaderPlugin(viewer, {
bimServerClient: bimServerClient
});
const model = bimServerLoader.load({
id: "myModel",
poid: ...,
roid: ....,
schema:....,
performance: false // <<--------------------- Add this
});
These are not implemented yet, so currently
PerformanceModel#setPickable()
andPerformanceModel#setColorize()
are just empty methods.PerformanceModel
is used as the default scene representation withinBIMServerLoaderPlugin
andGLTFLoaderPlugin
. If you need these two functions for Entity's loaded by these plugins, then a workaround (for non-huge models) is to load models withperformance: false
, which will internally use the xeokit's scene graph representation, which hasNode
andMesh
Entity
types which supportpickable
andcolorize
.