SubD confusing ONX_Model::Read

A customer has sent me a 3dm file which my openNURBS v7-based software cannot read; ONX_Model::Read returns false. Allegedly this file has a SubD object, and if they delete the SubD object and try to import that version of the file, it works fine. (For comparison, if I try to read the v7_rhino_logo_subd.3dm example file, ONX_Model::Read returns true, though my software doesn’t actually do anything useful with the SubD objects yet.)

Um, I’m hoping I get a chance to attach said file at some point in this topic creation process, and then hoping that you guys can take a peak and tell me if the file is correct or not. Or that this problem will ring bells with someone out there.

Thanks,
Sol

RhinoSubD.3dm (67.6 KB)

Hi Sol -
Does this help?

-wim

Sounds like that will be a big help for me with SubD in general=, thank you!

But this specific file does not get far enough into the import that you could call those functions; it fails utterly much earlier.

Hi @colomon,

The file is readable by the example_read project included with the openNURBS toolkit. This project uses ONX_Model to read .3dm files.

Here is the output of that example:

RhinoSubD.txt (32.1 KB)

– Dale