Plugin: 2D curve(s) to SVG

Legacy tS 6.6
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Plugin: 2D curve(s) to SVG

Post by Fenerit »

Originally part of the vertex exporter, because it concerns lines, I've split it from thats.
Below some naive NURBS-to-polyhedrons curves traced in tS have been converted in SVG and imported in Inkscape. Further - yet more naivest - elaborations have been made with it.
The plug-in get the outline profile of the curves (no fill in it) both the curve is got from context's nurbs extrusion and then converted to poly or converted to poly through the appropriate button or sweeped with "size z" > 0 as long as it isn't rotated along xy axis (top view is assumed). To make the "shape within the shape" is enough to set the "location z" freely up or down. The curve are exported grouped and locked; hence the relevant operations to work on each curve point or on every single shape is left to the client SVG program. I've tested OK the SVGs both on Inkscape and on GIMP. I don't know how they behaves on Illustrator; but the SVG is very basic, without any further reference or comment; so it would work. As always feedbacks are appreciated on this matters.
svg_ts.png
svg_ink.png
The zip
tSxSVGExport.zip
(7.82 KiB) Downloaded 409 times
User avatar
bitkar
Captain
Posts: 1967
Joined: 16 Mar 2010, 07:14
Type the number ten into the box: 0
Location: Czech Republic
Contact:

Re: Plugin: 2D curve(s) to SVG

Post by bitkar »

cool.... love those things. What about import of SVG?
Michal aka bitkar
tS freak since tS2 (1998) and forever (tS7.61 modeler)
User avatar
Draise
Captain
Posts: 3198
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia
Contact:

Re: Plugin: 2D curve(s) to SVG

Post by Draise »

This is great! Is there a way to import SVG's? I do use Inkscape sometimes!
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: 2D curve(s) to SVG

Post by Fenerit »

I made this plug-in because the way in which curves a got from tS is far more easy respect to whatelse 2D program of its kind. I'm unable to get with the same easyness of tS the curve's control in whatelse 2d program which does the same thing; thus I never thought to do the converse, because was a no-sense from my part. Just an example: do try to get an ISO conformed gears, an HE an IPE in a 2D graphic program; apart AutoCAD, you will find some trouble even with Illustrator. Nobody uses this programs to do so, while from 3D programs you can go in thats. Nonetheless, I will take a look.
User avatar
Draise
Captain
Posts: 3198
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia
Contact:

Re: Plugin: 2D curve(s) to SVG

Post by Draise »

Yeah, that makes sense. I did always love the curves of TS6.6 over 2d programs for sure. I guess you have a good point there! ;)
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: 2D curve(s) to SVG

Post by Fenerit »

Exporting from pagemakers to 3d program is puzzling; what hell one does export in 3D? :lol: At least one does make an heightfield of the page and then extrude all. :bananacool2:
User avatar
BNG
Chief Warrant Officer
Posts: 684
Joined: 16 Oct 2009, 03:26
Type the number ten into the box: 0
Location: Texas
Contact:

Re: Plugin: 2D curve(s) to SVG

Post by BNG »

Awesome bro, thanks for posting it for all. :bananahi:
User avatar
Fenerit
Senior Chief Petty Officer
Posts: 173
Joined: 21 Nov 2011, 19:19
Type the number ten into the box: 9

Re: Plugin: 2D curve(s) to SVG

Post by Fenerit »

Inspired by the discussion here about the outstanding clinton' work upon SVG importer, I've decided to enhance the exporter.

The new features allows the export of the material colors and of the filled shapes, either glued/unglued together. Currently, I'm working on settings, pretty easy to do with check-boxes and such, concerning also stroke-color and stroke-width, for this I should like to hear some suggestions about it (Emmanuel?) before to release the new version.
svg_color1.png
svg_color2.png
Last edited by Fenerit on 03 Nov 2015, 19:11, edited 1 time in total.
User avatar
Cellulo
Lieutenant
Posts: 915
Joined: 27 Sep 2012, 07:48
Type the number ten into the box: 9
Location: France
Contact:

Re: Plugin: 2D curve(s) to SVG

Post by Cellulo »

:bananathumb:
User avatar
clintonman
Captain
Posts: 5428
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Plugin: 2D curve(s) to SVG

Post by clintonman »

Maybe you can use the layer color for the stroke color.
Clinton Reese

http://clintons3d.com
Post Reply