How to convert a custom data structure to .3dm

I plan to do a file conversion function, and I want to convert the customized brep structure into.3dm format. May I ask which project or demo I should refer to? I see that userdata and write both have write functions, but I don’t know the difference between them.

Hi @JJerry,

I am not sure I understand the question. You have some other Brep structure and you want to convert it to ON_Brep?

– Dale

sure,I got into some trouble