Appearance
KBE3D / KBCore / Cesium / removeInvalidBinaryBodyReferences
函数: removeInvalidBinaryBodyReferences()
removeInvalidBinaryBodyReferences(
parsedContent:any):void
Remove all invalid binary body references from the batch table JSON of the given parsed content.
This is a workaround for gracefully handling the invalid PNTS files that may have been created by the point cloud tiler. See https://github.com/CesiumGS/cesium/issues/12872
When the batch table JSON is undefined, nothing will be done. When the batch table binary is defined, nothing will be done (assuming that any binary body references are valid - this is not checked here).
Otherwise, this will remove all binary body references from the batch table JSON that are not resolved from draco via the parsedContent.draco.batchTableProperties.
If any (invalid) binary body reference is found (and removed), a one-time warning will be printed.
参数
parsedContent
any
The parsed content
返回
void
