Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 18
Posts: 18   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2421 times and has 17 replies Next Thread
Ollie_Jess
Newbie
Member's Avatar

México
Joined: Apr 10, 2022
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
SurroundRoom Plugin

Hello SH3D community!
I developed a plugin that surrounds a room with a piece of furniture, externally or internally, in 3 different ways. Both the room and the furniture must be selected at the same time on the plan.

This is the direct download and is also on SourceForge (please download the version 1.1 instead of 1.0, due to compatibility problems).

These are the steps for surround a room with the plugin:

Step 1.- Select the object and the room.



Step 2.- Select “Tools” in the principal menu and select “Surround room…”



Step 3.- Customize the way in which the room will be surrounded.



Result:



----------------------------------------------------------------------
This is another example using the plugin:

Step 3.- Select “Surround internally”



Result:



Hope you like the plugin!
[Feb 19, 2025, 11:07:36 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 1366
Status: Offline
Reply to this Post  Reply with Quote 
Re: SurroundRoom Plugin

Nice!
Does it also work with an room created from curved walls?
----------------------------------------
Dodecagon.nl
1000+ 3D models, manuals, and projects
[Feb 20, 2025, 9:22:54 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
dorin
Advanced Member
Member's Avatar

Romania
Joined: Apr 24, 2014
Post Count: 676
Status: Offline
Reply to this Post  Reply with Quote 
Re: SurroundRoom Plugin

@Ollie
It's a good start! Keep going!
@Keet
I've test it and NO, not this time. Maybe in the future.

@Me
While this plugin act as a multiplier what if it will be added as feature to the current Multiplier?
Could be BUT not before to have a more performant (customizable) polyline in the main program.
What's in my mind:
The Art Off Illusion (java) have the option to draw objects (or extrude) along a curved line especially to make pipes.
Could be a good source of inspiration.
----------------------------------------
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law
[Feb 20, 2025, 12:46:52 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
JonnyD
Member




Joined: Jun 1, 2019
Post Count: 36
Status: Offline
Reply to this Post  Reply with Quote 
Re: SurroundRoom Plugin

I’m afraid the plugin just presents a warning that no room is selected for me - even when it is.
[Feb 20, 2025, 1:58:13 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
dorin
Advanced Member
Member's Avatar

Romania
Joined: Apr 24, 2014
Post Count: 676
Status: Offline
Reply to this Post  Reply with Quote 
Re: SurroundRoom Plugin

@Ollie
JonnyD is right, but don't despair. I've encountered the same problem at the beginning and Emmanuel have helped me.
Now it's my turn.
You have to verify first if the home have more levels.
Study of case:
Level selectedLevel = getHome().getSelectedLevel();

-New file; draw a room; add an flower and select both. Run the plugin => OK.
selectedLevel = null

-On the same file add a level and then delete it.
selectedLevel != null
Run the plugin => Not OK.

So, in my Select/Hide Special plugin I've use something like this:
if (selectedLevel == null || selectedLevel.isVisible()) {
userView = new SelectHideView();
contentPanel = userView.createComponents(resource);
}
Of course probably you will need other conditions.
Feel free to take inspiration from other plugin sources. I do it all the time.
----------------------------------------
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law
----------------------------------------
[Edit 1 times, last edit by dorin at Feb 20, 2025, 7:21:20 PM]
[Feb 20, 2025, 7:18:43 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Ollie_Jess
Newbie
Member's Avatar

México
Joined: Apr 10, 2022
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
Re: SurroundRoom Plugin

@dorin thanks for detecting the source of the error and for recommending a way to fix it. I also detected that if the furniture angle is not at 0° it doesn't surround the room well. In version 1.2 these problems will be solved, which I hope to finish this month.
In version 1.3 I will add more ways to surround rooms, being able to surround curved lines and more customization to surround rooms.
[Feb 21, 2025, 12:07:29 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Ollie_Jess
Newbie
Member's Avatar

México
Joined: Apr 10, 2022
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
Re: SurroundRoom Plugin

Hello community! the version 1.2 is ready, with the problems mentioned fixed.
If there is something wrong with the plugin or you have any suggestions, let me know.
[Feb 26, 2025, 4:14:31 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Ollie_Jess
Newbie
Member's Avatar

México
Joined: Apr 10, 2022
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
Re: SurroundRoom Plugin

This is the version 1.2 and is also on SourceForge
[Feb 26, 2025, 4:18:03 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Daniels118
Advanced Member
Member's Avatar

Italy
Joined: Nov 17, 2021
Post Count: 466
Status: Offline
Reply to this Post  Reply with Quote 
Re: SurroundRoom Plugin

Nice plugin! I've added it to the Plugin Manager catalog!
[Feb 27, 2025, 7:26:42 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Ollie_Jess
Newbie
Member's Avatar

México
Joined: Apr 10, 2022
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
Re: SurroundRoom Plugin

Thanks Daniels118!
[Feb 27, 2025, 9:58:02 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 18   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved