Hello @tino,
I have resolved the above issue. by changing the creation flag
But I am facing the issue related to addPolyline, createMeshInstance function
const leaderLineVertices = [0, 0, 0, 1, 1, 1]
const leaderMeshData = new Communicator.MeshData()
leaderMeshData.addPolyline(leaderLineVertices, undefined);
const leaderMeshId = await this._viewer.model.createMesh(leaderMeshData)
const leaderMeshInstanceData = new Communicator.MeshInstanceData(
leaderMeshId,
)
leaderMeshInstanceData.setCreationFlags(
Communicator.MeshInstanceCreationFlags.OverrideSceneVisibility
)
leaderMeshInstanceData.setLineColor(Communicator.Color.black())
const leaderInstanceId = await this._viewer.model.createMeshInstance(
leaderMeshInstanceData
)
But we are getting below unexpected behavior, as per our code color of polyline should be BLACK, but its getting red at some places as its default behavior