addPolyline Leader line creating with outer uncertain thickness

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

Hello @swaminarayan.sharma,

When running your code snippet, I’m not able to reproduce different colors on the polyline:

Can you try loading a different model? Also, I noticed that the polyline thickness is larger than I would expect. Do you have such code that affects the line thickness?

Thanks,
Tino