|
Sweet Home 3D Forum » List all forums » » Forum: New versions » » » Thread: Staircase generator plug-in |
||
| Print at Aug 20, 2026, 9:54:45 PM |
|
|
| Posted by Xlance at Jun 27, 2026, 11:36:14 PM |
|
Re: Staircase generator plug-in @el_dario Version 4.2 or later will be posted on sourceforge as soon as it's ready ![]() ---------------------------------------- Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins |
| Posted by el_dario at Jun 30, 2026, 12:38:05 PM |
|
Re: Staircase generator plug-in Thank you for your reply, @Xlance! I eagerly await the release of version 4.2, so I can try out these new features! :) |
| Posted by Xlance at Aug 7, 2026, 8:30:20 AM |
|
Re: Staircase generator plug-in NEW in version 4.2 Import Plan image of Staircase in 2D Shape Designer and Trace it to get Precise cutout *.svg path 1.CHOOSE Plan image of Staircase to Trace 2.TRACE then SAVE values of custom cutout into *.svg 3.LOAD *.svg file then COPY values of custom cutout 4.PASTE values of custom cutout into field (make sure to un-select 'generate cutout' check box) 5.CREATE staircase (custom cutout will be embedded with model) Take screenshot https://ibb.co/Hp7L50hg Open 2D Shape Designer and choose image to load https://ibb.co/kgcqv5DS Trace outline/cutout then save in *.svg https://ibb.co/hJPJcnb7 Load *.svg and copy values https://ibb.co/SjhZx5Z Paste values into custom cutout field (make sure to un-select 'generate cutout' check box) https://ibb.co/21Pkb45G Result https://ibb.co/3Y0zDr4F ---------------------------------------- Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins |
| Posted by Keet at Aug 7, 2026, 9:53:06 AM |
|
Re: Staircase generator plug-in Why so difficult? You can easily calculate an SVG cutout string using the v lines in a room object (or any other object where an outline can be calculated from). It is much easier to draw a room then the screenshot copies. Here's the code for it in PHP and C#. Both code listings are made to to be readable by non-programmers too. This was a test for me so a little optimization is probably possible. The C# code is close to Java code so should be easy to convert. The PHP code is amateur work, I only use it for my websites. C# code: using System;PHP code: <?php---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Xlance at Aug 7, 2026, 10:45:09 AM |
|
Re: Staircase generator plug-in An excellent solution. Thank You However in many cases I need to get creative and design a cutout which does not correspond to model edges. e.g. circular for a T shaped ---------------------------------------- Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins |
| Posted by Keet at Aug 7, 2026, 11:23:05 AM |
|
Re: Staircase generator plug-in That's why this code solution is easier. You can draw a room in any form you need, for example a star or T and it will calculate the cutout. To be clear: this is independent from the staircase object, completely separate. It is as if you draw the outline as in your examples but now without screenshots and as a room object. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Xlance at Aug 8, 2026, 12:09:39 PM |
|
Re: Staircase generator plug-in ▼ Version 4.2 Released on Sourceforge (This update took a LOT of time and effort ;-) Enjoy https://sourceforge.net/p/sweethome3d/plug-ins/60/#a9db ---------------------------------------- Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins |
|
|
|
Current timezone is GMT Aug 20, 2026, 9:54:45 PM |