Print at Dec 21, 2025, 9:36:49 AM

Posted by aperezm at May 26, 2009, 2:30:00 PM
Re: field multiPartModel; any use yet?
This was the original e-mail I sent to Emanuel:

Reading
sweethome3d, came with this field: MULTI_PART_MODEL. I haven´t find
any other use. I´m interested because I´m using part of your code in
an application, and I need to load objects scattered on several .3ds
files.

How can I take advantage of this? I was thinking of inheriting from
CatalogPieceOfFurniture and create my model from a .ini file. I
already have the code to load an join the objects according to
corresponding points, but it would be better if support or this is
already done. Even if I have to handle it on my own, if it is not
already done, I could contribute my code to do so.

And this was hs answer:

As I answered to you on the forum, this flag could interest you at recording time since if you place all the 3DS files in the same sub directory and set the multiPartModel# key to true, current IO classes will record all the 3DS files in the same directory as the one referenced by ResourceURLContent.
If I had to program it myself, the model# keys would reference files at a new format MYFORMAT describing how to assemble the 3DS files in the same directory as your MYFORMAT file. Then I would program a new Java 3D loader able to handle the MYFORMAT files and tell Sweet Home 3D to add the class of this loader to the supported ones with com.eteks.sweethome3d.j3d.additionalLoaderClasses system property (used in ModelManager).
If you use classpath correctly, this way of doing will even avoid you to compile Sweet Home 3D main jar. ;-) See also my comments at https://sourceforge.net/tracker/?func=detail&...id=152568&atid=784668

A last thing : please post again your need on the forum, and I'll post my answer to let everyone share this idea. ;-)

Best regards
--
Emmanuel PUYBARET
Email : [email protected]
Web : http://www.eteks.com
http://www.sweethome3d.eu


Once again, merci beaucoup.