Mita, Hans,
There's no way to specify a door swing in OBJ format. The OBJ format isn't that clever! [;)]
If you want to achieve that with your own model, you should create a custom SH3F file containing your door model (use
Furniture Library Editor if you want to), and add the following properties in the
PluginFurnitureCatalog.properties file contained in the SH3F zipped file (where n is the number of the model):
Code: Select all
doorOrWindow#n=true
doorOrWindowWallThickness#n=
doorOrWindowWallDistance#n=
doorOrWindowSashXAxis#n=
doorOrWindowSashYAxis#n=
doorOrWindowSashWidth#n=
doorOrWindowSashStartAngle#n=
doorOrWindowSashEndAngle#n=
By example, the
default door defined in Sweet Home 3D catalog is defined this way:
Code: Select all
name#19=Door
category#19=Doors and windows
icon#19=/com/eteks/sweethome3d/io/resources/door.png
model#19=/com/eteks/sweethome3d/io/resources/door.obj
width#19=91.5
depth#19=14.5
height#19=208.5
movable#19=false
doorOrWindow#19=true
doorOrWindowWallThickness#19=7.5
doorOrWindowWallDistance#19=1
doorOrWindowSashXAxis#19=5
doorOrWindowSashYAxis#19=8.5
doorOrWindowSashWidth#19=81.5
doorOrWindowSashStartAngle#19=0
doorOrWindowSashEndAngle#19=-90
I guess it's not so easy to handle but it's the way all doors and windows are defined in Sweet Home 3D. I'll try to add some options about doors in a future version of the Furniture Library Editor.
Finally, if you just want to show the swing of doors and windows defined in the
3D models page, please consider
downloading the SH3F files that contain all of them with correct definition.