The Line Clamping issue in b3dm 3d tile

I tired to draw line on the b3dm 3d tile using Cesium.
The line is displayed on the 3d tile.
But there is one issue. It is displayed as well with some Camera angles, not well with some Camera angles.
Some line segments are hidden behind the 3d tile.

This is a code for add tileset

var tileset = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
url: tile_url,
heightReference : Cesium.HeightReference.CLAMP_TO_GROUND,
terrainProviderViewModels: terrainModels,
maximumScreenSpaceError : 1, // Temporary workaround for low memory mobile devices - Increase maximum error to 8.
maximumNumberOfLoadedTiles : 10000 // Temporary workaround for low memory mobile devices - Decrease (disable) tile cache.
}));

and this is a code for add line

viewer.entities.add({
            polyline : {
                positions : new Cesium.CallbackProperty(function() {
                    return currentPositions;
                }, false),
                material : new Cesium.Color(0.99, 0.89, 0.15, 1.0),
                width : 5
            }
        })

I already have checked sample code for draw line on the Cesium Site.
By my checking, it does works as well. But I have above issue in only our model.

Please make me clearly.
Thank you.

Is the behavior you’re seeing similar to this issue?

https://github.com/AnalyticalGraphicsInc/cesium/issues/6741#issuecomment-406717425

If so, this is a pretty high priority bug on our list to fix. If you can provide a pictures/GIFs of what you’re seeing, or contribute a test case as a Sandcastle example, it’ll definitely help us fix it!

Just a follow up, if you mean you’re drawing to draw a polyline that’s clamped to 3D Tiles, that’s not currently supported, but it should be with this upcoming PR:

It should also introduce a Sandcastle example showing you how to do that.