Joined: Oct 2, 2007
Post Count: 188
Status:
Offline
SVG cutout tutorial for Library Editor?
I need a tutorial to learn how to cut out a shape for a staircase (for my grand staircase) when using the Library Editor. How does one determine the coordinates? Is there some sort of program that the .obj can be opened with so that the coordinates can be figured out?
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
Re: SVG cutout tutorial for Library Editor?
You have to describe with SVG path syntax a closed shape that is within a 1 unit wide square. To find the good shape for the spiral staircase in the default catalog, I added this staircase to the plan, resized it to 1meter wide and 1meter deep and placed it on the grid in a way it touches a meter grid line (of course you'll have to chose metric system in the preferences). Then I measured the points of the cut out shape and described it with SVG path syntax (the syntax isn't very easy to understand but the previous link gives many examples to guide you). Describing the shape of a pie is quite tedious and finding the right values of the shape of the spiral staircase took me several minutes:
M0,0.35 h0.47 l0.375,-0.35 l0.088,0.118 A0.5,0.5 0 1,1 0,0.35 z
But describing a polygonal shape should be much easier. For example, the following expression describes a L shape:
M0,0 h0.5 v0.5 h0.5 v0.5 h-1 z
Don't forget to close the shape with a final z and pay attention to the difference between upper case letter (followed by absolute coordinate values) and lower case letter (followed by coordinate values relative to the previous move) syntax. Hope you can handle it.
Merry Christmas
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: Oct 2, 2007
Post Count: 188
Status:
Offline
Re: SVG cutout tutorial for Library Editor?
I found a way to convert my .obj grandstaircase into .svg by using Inkscape. (found this in the Inkscape forums):
take a look at the extension 'Render > 3D Polyhedrons' which can import (and draw as SVG paths) 3d objects from a Wavefront .obj 3D file stored in a local folder [1], with various settings (for appearance, lighting, rotation, etc.)
I'm wondering if I can copy and paste one of those, but which one(s) are the right ones?
I guess I'll try it out the way you said when I get time. I was just hoping that there would be a quicker way to do it.
If you have Inkscape and want to see what I've done so far, I can email the Inkscape file(s) to you.
----------------------------------------
[Edit 1 times,
last edit by pencilart at Dec 24, 2011, 4:49:10 PM]
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
Re: SVG cutout tutorial for Library Editor?
I don't think Inkscape will help you that much, and yes, it's not that easy to do. That's why I put this advanced feature only in the Furniture Library Editor at this time.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
I noticed the d="m -276.002,80.133 7.638,6.829 51.287,0 z" parts.
---------------------------------------- grandstaircasedrawing.svg
(346427 bytes)
(Download count: 4907)
(The staircase svg just for the fun of it...)