Print at Dec 16, 2025, 6:12:01 PM

Posted by Keet at Jul 3, 2023, 8:36:44 PM
Re: Read back generated shape
The most logical and generic solution is to check if a (generated) shape is selected, if so read the coordinates from the object and set these in the composition dialog. This is what I meant when I said that is what the Roof Generator does: if you have the roof selected and you start the generator it displays that roof in the dialog window. The roof generator handles many more points than the box of the shape generator so a shape generator handling more than the eight box points should be possible.

What I imagined is something like this:
・ If no shape is selected start with the box.
・ If a shape is selected read the coordinates into the dialog input fields.
・ High-light a point when one of it's input fields XYZ has focus.
・ Right click on a vertice allows to add a point which adds a row of XYZ input fields. (If the number of points exceeds 50(?) change the rows of input fields to a single row for the selected point)
・ Right click on a point to allow deletion of a point which removes it's row of XYZ input fields.
・ Display a list of the faces with a material name you can change.
・ No need for a list of previously generated shapes. You can archive shapes in a Shapes.sh3d file or have an option to import from a file browser.
・ Allow renaming the material name for a face. This should allow multiple faces to have the same name.
・ Resizable dialog window, the current window is way too small.
・ Bonus: possibility to drag a point close to where you want it, then fine-tune with the coordinate fields.

This could replace the current shape editor or become a separate tool like the Furniture Library Editor. It would in many cases eliminate the need to use programs like Blender.

I haven't looked into it, but how difficult is it to import a (non-shape) furniture object to display for editing? With and add/delete point option this would be the ultimate editor and would be a great tool to create custom furniture(-parts) in Sweethome3D or more importantly: to use any existing object as a base to create a new object. I wouldn't mind if it was limited to a max number of points but a click on a point could jump to the row of input fields for that point so a long list shouldn't be a problem.

----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects