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: 9
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 9161 times and has 8 replies Next Thread
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 4005
Status: Offline
Reply to this Post  Reply with Quote 
Round walls aren't round?

Emmanuel,

I always wanted to make a spiral staircase like this one:



So, I devised a way to make it in SH3D using round walls. This is how I did it:
- draw a round wall with an angle of 180 degrees
- correct XY coordinates to exact round numbers
- make it sloping from 300 to 0.1 cms
- then use CopyAsNewFurniture, Paste, Export to OBJ format
- Import furniture twice, rotating the second model so that it's upside-down.
- stack the two objects, and voila.

It's only then that I discovered that (1) round walls aren't perfectly round or (2) that I must have done something wrong. The image below shows a clear band on the left where the top and lower half don't line up.



Do you have a solution?

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info
[Jan 25, 2011, 1:13:16 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Round walls aren't round?

Round walls are not really round (anyway roundness doesn't exist in Java3D and OpenGL which handle only triangles) and you can see how many points are used to approximate a round wall when you double-click to create a room surrounded by round walls.
If you look closer to the points of the room created that way, you'll guess that the wall aren't generally symmetric and that's why you get the problem you reported. So, either you try to change wall length and/or thickness step by step until it's symmetric, or with the (quite complicate) following formula used to compute the step between two points of a round wall, try to find which thickness, arc extent, and/or radius will give you an integer (with no decimals):
step = squareRoot( (thickness/2 + radius) x arcExtent x π / 180)
For example, it works for a wall thickness of 14.776 cm, a radius of 120 cm and an arc extent of 180°.

Suddenly, I feel you hate me! wink
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Jan 25, 2011, 2:21:19 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 4005
Status: Offline
Reply to this Post  Reply with Quote 
Re: Round walls aren't round?

Emmanuel,

Now, why should I hate you for helping me?
I can manage a spreadsheet, so I could solve your puzzle, as the picture proves. The shadow on the top-edge isn't perfect, but I can't change that.
It's a nice one for Tips & Tricks.

Hans


----------------------------------------
Hans

new website - under constuction
hansdirkse.info
[Jan 25, 2011, 3:03:26 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Round walls aren't round?

Thank you for creating such a spreadsheet. But I'll try to fix it in the program, to ensure round walls will always be symmetric.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Jan 26, 2011, 12:10:41 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 4005
Status: Offline
Reply to this Post  Reply with Quote 
Re: Round walls aren't round?

Emmanuel,

After solving "The Riddle of the Round Walls and the Climbing Spiral", I was (once again) trying to make a helical staircase.



After saving my design, which still included help parts and such, I checked the file size and found that is was about 600 Kb. I then deleted all the stuff I didn't need, and only kept the model you can see in the image above. To my surprise the file size still was 470 Kb.

This means that a 130 Kb basic design, somehow swells to 470 Kb just becasue of applying CopyAsNewFurniture and Export to OBJ format. I attach the file, so you can check my design and data.

Hans

helical staircase.sh3d
----------------------------------------
Hans

new website - under constuction
hansdirkse.info
[Jan 26, 2011, 12:15:14 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Round walls aren't round?

I'm not astonished by that. CopyAsNewFurniture plug-in transforms a simple Wall Java object which is less than 100 bytes in a PieceOfFurniture Java object bound to an OBJ file describing the many faces of an arc.

By the way, did you save your file with the Save and compress menu item, to see if it's still big?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Jan 26, 2011, 12:44:59 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 4005
Status: Offline
Reply to this Post  Reply with Quote 
Re: Round walls aren't round?

Emmanuel,

Thanks for your explanation.

When I Save & Compress, the "dirty" file becomes 201 Kb (instead of 595) and just the helical staircase shrinks from 468 Kb to 124 Kb.

For a staircase a growing file isn't a big problem, most homes only have one. But for a repeating model (chair or table in a restaurant?) it would make a big difference.

Now I know what the reason is, I hope I can sleep well :-)

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info
[Jan 26, 2011, 12:57:53 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Round walls aren't round?

From the current beta version 3.1, unjoined new round walls are always symmetric. As the CopyAsNewFurniture plug-in can't work with Java Web Start, you won't be interested that much by this feature but it will be a nice to have for the next release.
I didn't change the way round walls created with version 3.0 were computed to ensure they look exactly the same.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Jan 26, 2011, 8:50:17 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 4005
Status: Offline
Reply to this Post  Reply with Quote 
Re: Round walls aren't round?

Emmanuel,

I'm not sure that I understand your message.
Does it mean that new walls will automatically follow your formula?
We won't need this spreadsheet model anymore?

EDIT
I constructed a semi-circle in v3.0 and imported it in v3.1b13. Then I constructed the same semi-circle in v3.1b13, and it lines up perfectly with the imported one. That suggests they are based on the same mathematical <?> principles.

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info
----------------------------------------
[Edit 1 times, last edit by hansmex at Jan 26, 2011, 10:59:05 AM]
[Jan 26, 2011, 9:21:33 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ 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