Reordering layers through openNURBS

How does one change the order of the layers in a model through the openNURBS API? From my reading of the API docs, the index of a component is locked once it is added to the model, so calling SetIndex() isn’t an option. The only other method I can think of would be to remove all the layers from the model and re-add them in the desired order, but this seems rather clumsy. Am I missing a more elegant solution?

Hi @Nicholas_Rawlings,

The openNURBS toolkit does not provide a way to change the sort order of layers. Layers are “sorted” in the order in which they are added.

– Dale

Thanks, Dale!