Print at Dec 20, 2025, 10:57:03 AM

Posted by Puybaret at May 25, 2009, 5:57:00 PM
Re: field multiPartModel; any use yet?
The best documentation is the code itself. ;-)

If you follow the use of the multiPartModel flag step by step, you'll see that it's stored in com.eteks.sweethome3d.tools.ResourceURLContent instances and used by com.eteks.sweethome3d.io.DefaultHomeOutputStream$HomeObjectOutputStream class that handles the recording of a home.
This flag tells if a resource is a multi part resource stored in a directory with other required resources. In the facts, the multiPartModel flag is set for all the OBJ files of a catalog or a home file that comes with a MTL file and texture image files, to tell HomeObjectOutputStream class that it should save an OBJ file and all the files that are in the same directory as the OBJ file.
Look in SH3D and SH3F files, and you'll see that as soon as an OBJ file isn't alone, it's in a subdirectory and it's multiPartModel is true.


----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator