|
Sweet Home 3D Forum » List all forums » » Forum: Features use and tips » » » Thread: SVG path addendum » » » » Post: SVG path addendum |
Print at Dec 16, 2025, 1:53:02 PM |
| Posted by okh at Dec 14, 2016, 11:50:12 AM |
|
SVG path addendum A quick addendum to SVG paths described in the guide - for information. Out of curiosity, I tested quadratic Bézier curves in SH3D SVG path cutouts, and they seem to work just fine. (To be expected, but impressive anyway... so thanks!)Probably of limited general interest, but for anyone who wants to experiment with funny staircases or highly ornamented windows with different fronts and backs, there are a couple cutouts that could be easier using the full range of SVG path commands. And using a transparent box, it is possible to use the Furniture Library Editor and SVG cutout to create highly custom openings without having to create a 3D object. There may be limitations when it comes to browser visualisation. Inkscape will read such paths (but appears to avoid writing them, preferring normal C/c curveto instead). ok PS. Example of additional path command (a wave-shaped cutout on top of a limited rectangle). m.15,.15 q.05,-.05 .1,0 t .1,0 t .1,0t .1,0t .1,0t .1,0t .1,0 v.5 h-.7 zFrom W3C, on paths: Q/q x1 y1 x y - quadratic Bézier curve to (x,y) using (x1,y1) as the control point T/t x y - quadratic Bézier curve to (x,y), control point is assumed to be the reflection of the control point on the previous command relative to the current point And testfile (with different paths, albeit in a 100,100 co-ordinate system): <svg version="1.1" |
|
|
Current timezone is GMT Dec 16, 2025, 1:53:02 PM |