Update the TransformMatrix of a ClassificationPrimitive interactively

Hi, very beginner question here but I am stumped as to how to achieve this:
I want to use a slider value to dynamically update the elevation of
buildingHighlight. In this sandcastle demo I manage to create new primitives when the slider is adjusted, but I have not managed to find a way update the existing one. I did figure out how to redraw the ClassificationPrimitive on slider update, but this results in flickering.

Link to sandcastle demo here

Hi @hjhilden!

Is there a specific reason you’re using the Primtive API over the Entity API? Entities support classification and on the whole are simpler to update.