I'm working on an SVG importer

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

I'm working on an SVG importer

Felipe Sanches
Anyone interested, please look at the code I'm writting at
https://github.com/felipesanches/openscad/commits/svg

happy hacking,
Felipe Sanches

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: I'm working on an SVG importer

Jesse Guardiani
Sounds like a cool idea for logos and the like.


On Sat, Jun 1, 2013 at 7:00 PM, Felipe Sanches <[hidden email]> wrote:
Anyone interested, please look at the code I'm writting at
https://github.com/felipesanches/openscad/commits/svg

happy hacking,
Felipe Sanches

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: I'm working on an SVG importer

matthew venn
yeah, that sounds great. I've had to do merges of svg from inkscape etc and dxfs from openscad to get logos/patterns/text on my files before.
Matt


On 2 June 2013 00:10, Jesse Guardiani <[hidden email]> wrote:
Sounds like a cool idea for logos and the like.


On Sat, Jun 1, 2013 at 7:00 PM, Felipe Sanches <[hidden email]> wrote:
Anyone interested, please look at the code I'm writting at
https://github.com/felipesanches/openscad/commits/svg

happy hacking,
Felipe Sanches

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: I'm working on an SVG importer

Jeff Senn-2
Slightly related: just the other day I adapted some code to convert TTF to OpenSCAD-compatible DXF.
In particular it also includes "dimension" information so you can use dxf_dim to do variable width
character layout.


It could be pretty easily be adapted into OpenSCAD so that TTF files could be loaded directly
(and simply represented internally as DXF layers) -- I didn't do this because I figured adding a TrueType
dependency to OpenSCAD might be controversial...


On Jun 2, 2013, at 6:33 AM, matthew venn <[hidden email]> wrote:

yeah, that sounds great. I've had to do merges of svg from inkscape etc and dxfs from openscad to get logos/patterns/text on my files before.
Matt


On 2 June 2013 00:10, Jesse Guardiani <[hidden email]> wrote:
Sounds like a cool idea for logos and the like.


On Sat, Jun 1, 2013 at 7:00 PM, Felipe Sanches <[hidden email]> wrote:
Anyone interested, please look at the code I'm writting at
https://github.com/felipesanches/openscad/commits/svg

happy hacking,
Felipe Sanches

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: I'm working on an SVG importer

kintel
Administrator
On 2013-06-02, at 14:31 , Jeff Senn wrote:

> It could be pretty easily be adapted into OpenSCAD so that TTF files could be loaded directly
> (and simply represented internally as DXF layers) -- I didn't do this because I figured adding a TrueType
> dependency to OpenSCAD might be controversial…

I think adding the freetype library as a dependency would make sense. I haven't followed font technology developments, so there might be other libraries out there by now.

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: I'm working on an SVG importer

Felipe Sanches
Today I worked a lot on the SVG importer and now it seems to be working fine (at least for the few test files I'm using).

I would appreciate if other people could help testing it and creating testcases for which the current code fails, so that I can work on improving the parser.

Known bugs:
- elliptical arcs are not implemented yet. Smooth/shortcut versions of cubic and quadratic curves are broken. All the other path commands are already implemented.
- rendering of bezier curves require the user to set $fn to some value. I still do not support $fs for the segmentation of bezier curves and I don 't think $fa would be useful in this case.
- self-intersecting curves are not rendered correctly due to limitations in the dxf tesselator I'm using.

Other than that, I think it already makes OpenSCAD a much better tool. Specially if you consider the annoying steps involved when one creates art in Inkscape and then has to convert it to DXF for loading into OpenSCAD. Now I can quickly edit an SVG in Inkscape and hit F5 in OpenSCAD to see the 3d model that uses it nicely updated.

Marius,
Now I'm comfortable with requesting a pull of this code.

happy hacking,
Felipe Sanches

On Sun, Jun 2, 2013 at 4:09 PM, Marius Kintel <[hidden email]> wrote:
On 2013-06-02, at 14:31 , Jeff Senn wrote:

> It could be pretty easily be adapted into OpenSCAD so that TTF files could be loaded directly
> (and simply represented internally as DXF layers) -- I didn't do this because I figured adding a TrueType
> dependency to OpenSCAD might be controversial…

I think adding the freetype library as a dependency would make sense. I haven't followed font technology developments, so there might be other libraries out there by now.

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: I'm working on an SVG importer

matthew venn
Felipe, I'd like to help out, but I totally failed to compile openscad last time I tried. Do you have a binary or package that would work in ubuntu 12?

Matt


On 2 June 2013 22:09, Felipe Sanches <[hidden email]> wrote:
Today I worked a lot on the SVG importer and now it seems to be working fine (at least for the few test files I'm using).

I would appreciate if other people could help testing it and creating testcases for which the current code fails, so that I can work on improving the parser.

Known bugs:
- elliptical arcs are not implemented yet. Smooth/shortcut versions of cubic and quadratic curves are broken. All the other path commands are already implemented.
- rendering of bezier curves require the user to set $fn to some value. I still do not support $fs for the segmentation of bezier curves and I don 't think $fa would be useful in this case.
- self-intersecting curves are not rendered correctly due to limitations in the dxf tesselator I'm using.

Other than that, I think it already makes OpenSCAD a much better tool. Specially if you consider the annoying steps involved when one creates art in Inkscape and then has to convert it to DXF for loading into OpenSCAD. Now I can quickly edit an SVG in Inkscape and hit F5 in OpenSCAD to see the 3d model that uses it nicely updated.

Marius,
Now I'm comfortable with requesting a pull of this code.

happy hacking,
Felipe Sanches


On Sun, Jun 2, 2013 at 4:09 PM, Marius Kintel <[hidden email]> wrote:
On 2013-06-02, at 14:31 , Jeff Senn wrote:

> It could be pretty easily be adapted into OpenSCAD so that TTF files could be loaded directly
> (and simply represented internally as DXF layers) -- I didn't do this because I figured adding a TrueType
> dependency to OpenSCAD might be controversial…

I think adding the freetype library as a dependency would make sense. I haven't followed font technology developments, so there might be other libraries out there by now.

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: I'm working on an SVG importer

Felipe Sanches
Cool!

No, I don't have a ready to distribute binary package at hand.

Please try again building openscad by running:

source scripts/setenv-linbuild.sh
scripts/ubuntu-build-dependencies.sh
make

I guess that would give you some good result. Maybe someone else here can help you further.
Marius, do we have detailed build instructions somewhere?

happy hacking,
Felipe Sanches

On Mon, Jun 3, 2013 at 7:07 AM, matthew venn <[hidden email]> wrote:
Felipe, I'd like to help out, but I totally failed to compile openscad last time I tried. Do you have a binary or package that would work in ubuntu 12?

Matt


On 2 June 2013 22:09, Felipe Sanches <[hidden email]> wrote:
Today I worked a lot on the SVG importer and now it seems to be working fine (at least for the few test files I'm using).

I would appreciate if other people could help testing it and creating testcases for which the current code fails, so that I can work on improving the parser.

Known bugs:
- elliptical arcs are not implemented yet. Smooth/shortcut versions of cubic and quadratic curves are broken. All the other path commands are already implemented.
- rendering of bezier curves require the user to set $fn to some value. I still do not support $fs for the segmentation of bezier curves and I don 't think $fa would be useful in this case.
- self-intersecting curves are not rendered correctly due to limitations in the dxf tesselator I'm using.

Other than that, I think it already makes OpenSCAD a much better tool. Specially if you consider the annoying steps involved when one creates art in Inkscape and then has to convert it to DXF for loading into OpenSCAD. Now I can quickly edit an SVG in Inkscape and hit F5 in OpenSCAD to see the 3d model that uses it nicely updated.

Marius,
Now I'm comfortable with requesting a pull of this code.

happy hacking,
Felipe Sanches


On Sun, Jun 2, 2013 at 4:09 PM, Marius Kintel <[hidden email]> wrote:
On 2013-06-02, at 14:31 , Jeff Senn wrote:

> It could be pretty easily be adapted into OpenSCAD so that TTF files could be loaded directly
> (and simply represented internally as DXF layers) -- I didn't do this because I figured adding a TrueType
> dependency to OpenSCAD might be controversial…

I think adding the freetype library as a dependency would make sense. I haven't followed font technology developments, so there might be other libraries out there by now.

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: I'm working on an SVG importer

matthew venn
Last time I tried the package management stuff wanted to upgrade my entire distribution.
Matt


On 3 June 2013 11:15, Felipe Sanches <[hidden email]> wrote:
Cool!

No, I don't have a ready to distribute binary package at hand.

Please try again building openscad by running:

source scripts/setenv-linbuild.sh
scripts/ubuntu-build-dependencies.sh
make

I guess that would give you some good result. Maybe someone else here can help you further.
Marius, do we have detailed build instructions somewhere?

happy hacking,
Felipe Sanches


On Mon, Jun 3, 2013 at 7:07 AM, matthew venn <[hidden email]> wrote:
Felipe, I'd like to help out, but I totally failed to compile openscad last time I tried. Do you have a binary or package that would work in ubuntu 12?

Matt


On 2 June 2013 22:09, Felipe Sanches <[hidden email]> wrote:
Today I worked a lot on the SVG importer and now it seems to be working fine (at least for the few test files I'm using).

I would appreciate if other people could help testing it and creating testcases for which the current code fails, so that I can work on improving the parser.

Known bugs:
- elliptical arcs are not implemented yet. Smooth/shortcut versions of cubic and quadratic curves are broken. All the other path commands are already implemented.
- rendering of bezier curves require the user to set $fn to some value. I still do not support $fs for the segmentation of bezier curves and I don 't think $fa would be useful in this case.
- self-intersecting curves are not rendered correctly due to limitations in the dxf tesselator I'm using.

Other than that, I think it already makes OpenSCAD a much better tool. Specially if you consider the annoying steps involved when one creates art in Inkscape and then has to convert it to DXF for loading into OpenSCAD. Now I can quickly edit an SVG in Inkscape and hit F5 in OpenSCAD to see the 3d model that uses it nicely updated.

Marius,
Now I'm comfortable with requesting a pull of this code.

happy hacking,
Felipe Sanches


On Sun, Jun 2, 2013 at 4:09 PM, Marius Kintel <[hidden email]> wrote:
On 2013-06-02, at 14:31 , Jeff Senn wrote:

> It could be pretty easily be adapted into OpenSCAD so that TTF files could be loaded directly
> (and simply represented internally as DXF layers) -- I didn't do this because I figured adding a TrueType
> dependency to OpenSCAD might be controversial…

I think adding the freetype library as a dependency would make sense. I haven't followed font technology developments, so there might be other libraries out there by now.

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: I'm working on an SVG importer

Felipe Sanches
I think that when you use the scripts I mentioned in my previous message you actually build all the dependencies yourself (automatically) and then you don't need to install packages from your package manager.

On Mon, Jun 3, 2013 at 7:16 AM, matthew venn <[hidden email]> wrote:
Last time I tried the package management stuff wanted to upgrade my entire distribution.
Matt


On 3 June 2013 11:15, Felipe Sanches <[hidden email]> wrote:
Cool!

No, I don't have a ready to distribute binary package at hand.

Please try again building openscad by running:

source scripts/setenv-linbuild.sh
scripts/ubuntu-build-dependencies.sh
make

I guess that would give you some good result. Maybe someone else here can help you further.
Marius, do we have detailed build instructions somewhere?

happy hacking,
Felipe Sanches


On Mon, Jun 3, 2013 at 7:07 AM, matthew venn <[hidden email]> wrote:
Felipe, I'd like to help out, but I totally failed to compile openscad last time I tried. Do you have a binary or package that would work in ubuntu 12?

Matt


On 2 June 2013 22:09, Felipe Sanches <[hidden email]> wrote:
Today I worked a lot on the SVG importer and now it seems to be working fine (at least for the few test files I'm using).

I would appreciate if other people could help testing it and creating testcases for which the current code fails, so that I can work on improving the parser.

Known bugs:
- elliptical arcs are not implemented yet. Smooth/shortcut versions of cubic and quadratic curves are broken. All the other path commands are already implemented.
- rendering of bezier curves require the user to set $fn to some value. I still do not support $fs for the segmentation of bezier curves and I don 't think $fa would be useful in this case.
- self-intersecting curves are not rendered correctly due to limitations in the dxf tesselator I'm using.

Other than that, I think it already makes OpenSCAD a much better tool. Specially if you consider the annoying steps involved when one creates art in Inkscape and then has to convert it to DXF for loading into OpenSCAD. Now I can quickly edit an SVG in Inkscape and hit F5 in OpenSCAD to see the 3d model that uses it nicely updated.

Marius,
Now I'm comfortable with requesting a pull of this code.

happy hacking,
Felipe Sanches


On Sun, Jun 2, 2013 at 4:09 PM, Marius Kintel <[hidden email]> wrote:
On 2013-06-02, at 14:31 , Jeff Senn wrote:

> It could be pretty easily be adapted into OpenSCAD so that TTF files could be loaded directly
> (and simply represented internally as DXF layers) -- I didn't do this because I figured adding a TrueType
> dependency to OpenSCAD might be controversial…

I think adding the freetype library as a dependency would make sense. I haven't followed font technology developments, so there might be other libraries out there by now.

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: I'm working on an SVG importer

matthew venn
Ace, that worked thanks.
Got a demo, test or documenation you've been using to get me started?
Matt


On 3 June 2013 11:23, Felipe Sanches <[hidden email]> wrote:
I think that when you use the scripts I mentioned in my previous message you actually build all the dependencies yourself (automatically) and then you don't need to install packages from your package manager.


On Mon, Jun 3, 2013 at 7:16 AM, matthew venn <[hidden email]> wrote:
Last time I tried the package management stuff wanted to upgrade my entire distribution.
Matt


On 3 June 2013 11:15, Felipe Sanches <[hidden email]> wrote:
Cool!

No, I don't have a ready to distribute binary package at hand.

Please try again building openscad by running:

source scripts/setenv-linbuild.sh
scripts/ubuntu-build-dependencies.sh
make

I guess that would give you some good result. Maybe someone else here can help you further.
Marius, do we have detailed build instructions somewhere?

happy hacking,
Felipe Sanches


On Mon, Jun 3, 2013 at 7:07 AM, matthew venn <[hidden email]> wrote:
Felipe, I'd like to help out, but I totally failed to compile openscad last time I tried. Do you have a binary or package that would work in ubuntu 12?

Matt


On 2 June 2013 22:09, Felipe Sanches <[hidden email]> wrote:
Today I worked a lot on the SVG importer and now it seems to be working fine (at least for the few test files I'm using).

I would appreciate if other people could help testing it and creating testcases for which the current code fails, so that I can work on improving the parser.

Known bugs:
- elliptical arcs are not implemented yet. Smooth/shortcut versions of cubic and quadratic curves are broken. All the other path commands are already implemented.
- rendering of bezier curves require the user to set $fn to some value. I still do not support $fs for the segmentation of bezier curves and I don 't think $fa would be useful in this case.
- self-intersecting curves are not rendered correctly due to limitations in the dxf tesselator I'm using.

Other than that, I think it already makes OpenSCAD a much better tool. Specially if you consider the annoying steps involved when one creates art in Inkscape and then has to convert it to DXF for loading into OpenSCAD. Now I can quickly edit an SVG in Inkscape and hit F5 in OpenSCAD to see the 3d model that uses it nicely updated.

Marius,
Now I'm comfortable with requesting a pull of this code.

happy hacking,
Felipe Sanches


On Sun, Jun 2, 2013 at 4:09 PM, Marius Kintel <[hidden email]> wrote:
On 2013-06-02, at 14:31 , Jeff Senn wrote:

> It could be pretty easily be adapted into OpenSCAD so that TTF files could be loaded directly
> (and simply represented internally as DXF layers) -- I didn't do this because I figured adding a TrueType
> dependency to OpenSCAD might be controversial…

I think adding the freetype library as a dependency would make sense. I haven't followed font technology developments, so there might be other libraries out there by now.

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: I'm working on an SVG importer

donbright


FYI On the newest version of openscad the build scripts have changed, per the README

source scripts/setenv-unibuild.sh
scripts/uni-build-dependencies.sh
make

(This was to reflect the fact they work on linux, BSD, hurd, etc)

-DB



On Mon, Jun 3, 2013 at 5:58 AM, matthew venn <[hidden email]> wrote:
Ace, that worked thanks.
Got a demo, test or documenation you've been using to get me started?
Matt


On 3 June 2013 11:23, Felipe Sanches <[hidden email]> wrote:
I think that when you use the scripts I mentioned in my previous message you actually build all the dependencies yourself (automatically) and then you don't need to install packages from your package manager.


On Mon, Jun 3, 2013 at 7:16 AM, matthew venn <[hidden email]> wrote:
Last time I tried the package management stuff wanted to upgrade my entire distribution.
Matt


On 3 June 2013 11:15, Felipe Sanches <[hidden email]> wrote:
Cool!

No, I don't have a ready to distribute binary package at hand.

Please try again building openscad by running:

source scripts/setenv-linbuild.sh
scripts/ubuntu-build-dependencies.sh
make

I guess that would give you some good result. Maybe someone else here can help you further.
Marius, do we have detailed build instructions somewhere?

happy hacking,
Felipe Sanches


On Mon, Jun 3, 2013 at 7:07 AM, matthew venn <[hidden email]> wrote:
Felipe, I'd like to help out, but I totally failed to compile openscad last time I tried. Do you have a binary or package that would work in ubuntu 12?

Matt


On 2 June 2013 22:09, Felipe Sanches <[hidden email]> wrote:
Today I worked a lot on the SVG importer and now it seems to be working fine (at least for the few test files I'm using).

I would appreciate if other people could help testing it and creating testcases for which the current code fails, so that I can work on improving the parser.

Known bugs:
- elliptical arcs are not implemented yet. Smooth/shortcut versions of cubic and quadratic curves are broken. All the other path commands are already implemented.
- rendering of bezier curves require the user to set $fn to some value. I still do not support $fs for the segmentation of bezier curves and I don 't think $fa would be useful in this case.
- self-intersecting curves are not rendered correctly due to limitations in the dxf tesselator I'm using.

Other than that, I think it already makes OpenSCAD a much better tool. Specially if you consider the annoying steps involved when one creates art in Inkscape and then has to convert it to DXF for loading into OpenSCAD. Now I can quickly edit an SVG in Inkscape and hit F5 in OpenSCAD to see the 3d model that uses it nicely updated.

Marius,
Now I'm comfortable with requesting a pull of this code.

happy hacking,
Felipe Sanches


On Sun, Jun 2, 2013 at 4:09 PM, Marius Kintel <[hidden email]> wrote:
On 2013-06-02, at 14:31 , Jeff Senn wrote:

> It could be pretty easily be adapted into OpenSCAD so that TTF files could be loaded directly
> (and simply represented internally as DXF layers) -- I didn't do this because I figured adding a TrueType
> dependency to OpenSCAD might be controversial…

I think adding the freetype library as a dependency would make sense. I haven't followed font technology developments, so there might be other libraries out there by now.

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: I'm working on an SVG importer

donbright
Oops, of course there is a qmake before the make

-DB


On Mon, Jun 3, 2013 at 6:41 AM, Don Bright <[hidden email]> wrote:


FYI On the newest version of openscad the build scripts have changed, per the README

source scripts/setenv-unibuild.sh
scripts/uni-build-dependencies.sh
make

(This was to reflect the fact they work on linux, BSD, hurd, etc)

-DB



On Mon, Jun 3, 2013 at 5:58 AM, matthew venn <[hidden email]> wrote:
Ace, that worked thanks.
Got a demo, test or documenation you've been using to get me started?
Matt


On 3 June 2013 11:23, Felipe Sanches <[hidden email]> wrote:
I think that when you use the scripts I mentioned in my previous message you actually build all the dependencies yourself (automatically) and then you don't need to install packages from your package manager.


On Mon, Jun 3, 2013 at 7:16 AM, matthew venn <[hidden email]> wrote:
Last time I tried the package management stuff wanted to upgrade my entire distribution.
Matt


On 3 June 2013 11:15, Felipe Sanches <[hidden email]> wrote:
Cool!

No, I don't have a ready to distribute binary package at hand.

Please try again building openscad by running:

source scripts/setenv-linbuild.sh
scripts/ubuntu-build-dependencies.sh
make

I guess that would give you some good result. Maybe someone else here can help you further.
Marius, do we have detailed build instructions somewhere?

happy hacking,
Felipe Sanches


On Mon, Jun 3, 2013 at 7:07 AM, matthew venn <[hidden email]> wrote:
Felipe, I'd like to help out, but I totally failed to compile openscad last time I tried. Do you have a binary or package that would work in ubuntu 12?

Matt


On 2 June 2013 22:09, Felipe Sanches <[hidden email]> wrote:
Today I worked a lot on the SVG importer and now it seems to be working fine (at least for the few test files I'm using).

I would appreciate if other people could help testing it and creating testcases for which the current code fails, so that I can work on improving the parser.

Known bugs:
- elliptical arcs are not implemented yet. Smooth/shortcut versions of cubic and quadratic curves are broken. All the other path commands are already implemented.
- rendering of bezier curves require the user to set $fn to some value. I still do not support $fs for the segmentation of bezier curves and I don 't think $fa would be useful in this case.
- self-intersecting curves are not rendered correctly due to limitations in the dxf tesselator I'm using.

Other than that, I think it already makes OpenSCAD a much better tool. Specially if you consider the annoying steps involved when one creates art in Inkscape and then has to convert it to DXF for loading into OpenSCAD. Now I can quickly edit an SVG in Inkscape and hit F5 in OpenSCAD to see the 3d model that uses it nicely updated.

Marius,
Now I'm comfortable with requesting a pull of this code.

happy hacking,
Felipe Sanches


On Sun, Jun 2, 2013 at 4:09 PM, Marius Kintel <[hidden email]> wrote:
On 2013-06-02, at 14:31 , Jeff Senn wrote:

> It could be pretty easily be adapted into OpenSCAD so that TTF files could be loaded directly
> (and simply represented internally as DXF layers) -- I didn't do this because I figured adding a TrueType
> dependency to OpenSCAD might be controversial…

I think adding the freetype library as a dependency would make sense. I haven't followed font technology developments, so there might be other libraries out there by now.

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: I'm working on an SVG importer

matthew venn
OK I tried making a square in inkscape and saved as a standard drawing (drawing.svg)
Then this code in openscad:

linear_extrude(height=100){
  import("drawing.svg", $fn=20);
}

results in this in openscad:

Loaded design '/home/matthew/work/cad/openscad/pushfitcircuit/pushfit.scad'.

Module cache size: 0 modules

Compiling design (CSG Tree generation)...

Compiling design (CSG Products generation)...

PolySetCache hit: import(file="drawing.svg",layer="",origi

CGAL Cache insert: import(file="drawing.svg",layer="",origi (0 bytes)

ERROR: CSG generation failed! (no top level object found)

PolySets in cache: 2

PolySet cache size in bytes: 96

CGAL Polyhedrons in cache: 1

CGAL cache size in bytes: 0


And this:


\\\\\\found a group!

id=layer1


in the shell that I'm running openscad from.


Thanks,
Matt



On 3 June 2013 12:42, Don Bright <[hidden email]> wrote:
Oops, of course there is a qmake before the make

-DB


On Mon, Jun 3, 2013 at 6:41 AM, Don Bright <[hidden email]> wrote:


FYI On the newest version of openscad the build scripts have changed, per the README

source scripts/setenv-unibuild.sh
scripts/uni-build-dependencies.sh
make

(This was to reflect the fact they work on linux, BSD, hurd, etc)

-DB



On Mon, Jun 3, 2013 at 5:58 AM, matthew venn <[hidden email]> wrote:
Ace, that worked thanks.
Got a demo, test or documenation you've been using to get me started?
Matt


On 3 June 2013 11:23, Felipe Sanches <[hidden email]> wrote:
I think that when you use the scripts I mentioned in my previous message you actually build all the dependencies yourself (automatically) and then you don't need to install packages from your package manager.


On Mon, Jun 3, 2013 at 7:16 AM, matthew venn <[hidden email]> wrote:
Last time I tried the package management stuff wanted to upgrade my entire distribution.
Matt


On 3 June 2013 11:15, Felipe Sanches <[hidden email]> wrote:
Cool!

No, I don't have a ready to distribute binary package at hand.

Please try again building openscad by running:

source scripts/setenv-linbuild.sh
scripts/ubuntu-build-dependencies.sh
make

I guess that would give you some good result. Maybe someone else here can help you further.
Marius, do we have detailed build instructions somewhere?

happy hacking,
Felipe Sanches


On Mon, Jun 3, 2013 at 7:07 AM, matthew venn <[hidden email]> wrote:
Felipe, I'd like to help out, but I totally failed to compile openscad last time I tried. Do you have a binary or package that would work in ubuntu 12?

Matt


On 2 June 2013 22:09, Felipe Sanches <[hidden email]> wrote:
Today I worked a lot on the SVG importer and now it seems to be working fine (at least for the few test files I'm using).

I would appreciate if other people could help testing it and creating testcases for which the current code fails, so that I can work on improving the parser.

Known bugs:
- elliptical arcs are not implemented yet. Smooth/shortcut versions of cubic and quadratic curves are broken. All the other path commands are already implemented.
- rendering of bezier curves require the user to set $fn to some value. I still do not support $fs for the segmentation of bezier curves and I don 't think $fa would be useful in this case.
- self-intersecting curves are not rendered correctly due to limitations in the dxf tesselator I'm using.

Other than that, I think it already makes OpenSCAD a much better tool. Specially if you consider the annoying steps involved when one creates art in Inkscape and then has to convert it to DXF for loading into OpenSCAD. Now I can quickly edit an SVG in Inkscape and hit F5 in OpenSCAD to see the 3d model that uses it nicely updated.

Marius,
Now I'm comfortable with requesting a pull of this code.

happy hacking,
Felipe Sanches


On Sun, Jun 2, 2013 at 4:09 PM, Marius Kintel <[hidden email]> wrote:
On 2013-06-02, at 14:31 , Jeff Senn wrote:

> It could be pretty easily be adapted into OpenSCAD so that TTF files could be loaded directly
> (and simply represented internally as DXF layers) -- I didn't do this because I figured adding a TrueType
> dependency to OpenSCAD might be controversial…

I think adding the freetype library as a dependency would make sense. I haven't followed font technology developments, so there might be other libraries out there by now.

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566



--
Matthew Venn
mattvenn.net

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566

drawing.svg (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: I'm working on an SVG importer

Felipe Sanches
That's a simple one :-)

The svg file you created uses the svg:rect tag, which my svg importer
did not support yet. I've just written some more code to support that.

Please update, rebuild and test with the test file I placed at:
testdata/scad/svg/rect.svg

cheers,
Felipe

On Wed, Jun 5, 2013 at 6:22 AM, matthew venn <[hidden email]> wrote:

> OK I tried making a square in inkscape and saved as a standard drawing
> (drawing.svg)
> Then this code in openscad:
>
> linear_extrude(height=100){
>   import("drawing.svg", $fn=20);
> }
>
> results in this in openscad:
>
> Loaded design '/home/matthew/work/cad/openscad/pushfitcircuit/pushfit.scad'.
>
> Module cache size: 0 modules
>
> Compiling design (CSG Tree generation)...
>
> Compiling design (CSG Products generation)...
>
> PolySetCache hit: import(file="drawing.svg",layer="",origi
>
> CGAL Cache insert: import(file="drawing.svg",layer="",origi (0 bytes)
>
> ERROR: CSG generation failed! (no top level object found)
>
> PolySets in cache: 2
>
> PolySet cache size in bytes: 96
>
> CGAL Polyhedrons in cache: 1
>
> CGAL cache size in bytes: 0
>
>
> And this:
>
>
> \\\\\\found a group!
>
> id=layer1
>
>
> in the shell that I'm running openscad from.
>
>
> Thanks,
> Matt
>
>
>
> On 3 June 2013 12:42, Don Bright <[hidden email]> wrote:
>>
>> Oops, of course there is a qmake before the make
>>
>> -DB
>>
>>
>> On Mon, Jun 3, 2013 at 6:41 AM, Don Bright <[hidden email]>
>> wrote:
>>>
>>>
>>>
>>> FYI On the newest version of openscad the build scripts have changed, per
>>> the README
>>>
>>> source scripts/setenv-unibuild.sh
>>> scripts/uni-build-dependencies.sh
>>> make
>>>
>>> (This was to reflect the fact they work on linux, BSD, hurd, etc)
>>>
>>> -DB
>>>
>>>
>>>
>>> On Mon, Jun 3, 2013 at 5:58 AM, matthew venn <[hidden email]> wrote:
>>>>
>>>> Ace, that worked thanks.
>>>> Got a demo, test or documenation you've been using to get me started?
>>>> Matt
>>>>
>>>>
>>>> On 3 June 2013 11:23, Felipe Sanches <[hidden email]> wrote:
>>>>>
>>>>> I think that when you use the scripts I mentioned in my previous
>>>>> message you actually build all the dependencies yourself (automatically) and
>>>>> then you don't need to install packages from your package manager.
>>>>>
>>>>>
>>>>> On Mon, Jun 3, 2013 at 7:16 AM, matthew venn <[hidden email]> wrote:
>>>>>>
>>>>>> Last time I tried the package management stuff wanted to upgrade my
>>>>>> entire distribution.
>>>>>> Matt
>>>>>>
>>>>>>
>>>>>> On 3 June 2013 11:15, Felipe Sanches <[hidden email]> wrote:
>>>>>>>
>>>>>>> Cool!
>>>>>>>
>>>>>>> No, I don't have a ready to distribute binary package at hand.
>>>>>>>
>>>>>>> Please try again building openscad by running:
>>>>>>>
>>>>>>> source scripts/setenv-linbuild.sh
>>>>>>> scripts/ubuntu-build-dependencies.sh
>>>>>>> make
>>>>>>>
>>>>>>> I guess that would give you some good result. Maybe someone else here
>>>>>>> can help you further.
>>>>>>> Marius, do we have detailed build instructions somewhere?
>>>>>>>
>>>>>>> happy hacking,
>>>>>>> Felipe Sanches
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Jun 3, 2013 at 7:07 AM, matthew venn <[hidden email]>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> Felipe, I'd like to help out, but I totally failed to compile
>>>>>>>> openscad last time I tried. Do you have a binary or package that would work
>>>>>>>> in ubuntu 12?
>>>>>>>>
>>>>>>>> Matt
>>>>>>>>
>>>>>>>>
>>>>>>>> On 2 June 2013 22:09, Felipe Sanches <[hidden email]> wrote:
>>>>>>>>>
>>>>>>>>> Today I worked a lot on the SVG importer and now it seems to be
>>>>>>>>> working fine (at least for the few test files I'm using).
>>>>>>>>>
>>>>>>>>> I would appreciate if other people could help testing it and
>>>>>>>>> creating testcases for which the current code fails, so that I can work on
>>>>>>>>> improving the parser.
>>>>>>>>>
>>>>>>>>> Known bugs:
>>>>>>>>> - elliptical arcs are not implemented yet. Smooth/shortcut versions
>>>>>>>>> of cubic and quadratic curves are broken. All the other path commands are
>>>>>>>>> already implemented.
>>>>>>>>> - rendering of bezier curves require the user to set $fn to some
>>>>>>>>> value. I still do not support $fs for the segmentation of bezier curves and
>>>>>>>>> I don 't think $fa would be useful in this case.
>>>>>>>>> - self-intersecting curves are not rendered correctly due to
>>>>>>>>> limitations in the dxf tesselator I'm using.
>>>>>>>>>
>>>>>>>>> Other than that, I think it already makes OpenSCAD a much better
>>>>>>>>> tool. Specially if you consider the annoying steps involved when one creates
>>>>>>>>> art in Inkscape and then has to convert it to DXF for loading into OpenSCAD.
>>>>>>>>> Now I can quickly edit an SVG in Inkscape and hit F5 in OpenSCAD to see the
>>>>>>>>> 3d model that uses it nicely updated.
>>>>>>>>>
>>>>>>>>> Marius,
>>>>>>>>> Now I'm comfortable with requesting a pull of this code.
>>>>>>>>>
>>>>>>>>> happy hacking,
>>>>>>>>> Felipe Sanches
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Sun, Jun 2, 2013 at 4:09 PM, Marius Kintel <[hidden email]>
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> On 2013-06-02, at 14:31 , Jeff Senn wrote:
>>>>>>>>>>
>>>>>>>>>> > It could be pretty easily be adapted into OpenSCAD so that TTF
>>>>>>>>>> > files could be loaded directly
>>>>>>>>>> > (and simply represented internally as DXF layers) -- I didn't do
>>>>>>>>>> > this because I figured adding a TrueType
>>>>>>>>>> > dependency to OpenSCAD might be controversial…
>>>>>>>>>>
>>>>>>>>>> I think adding the freetype library as a dependency would make
>>>>>>>>>> sense. I haven't followed font technology developments, so there might be
>>>>>>>>>> other libraries out there by now.
>>>>>>>>>>
>>>>>>>>>>  -Marius
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> OpenSCAD mailing list
>>>>>>>>>> [hidden email]
>>>>>>>>>> http://rocklinux.net/mailman/listinfo/openscad
>>>>>>>>>> http://openscad.org - https://flattr.com/thing/121566
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> OpenSCAD mailing list
>>>>>>>>> [hidden email]
>>>>>>>>> http://rocklinux.net/mailman/listinfo/openscad
>>>>>>>>> http://openscad.org - https://flattr.com/thing/121566
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Matthew Venn
>>>>>>>> mattvenn.net
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> OpenSCAD mailing list
>>>>>>>> [hidden email]
>>>>>>>> http://rocklinux.net/mailman/listinfo/openscad
>>>>>>>> http://openscad.org - https://flattr.com/thing/121566
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> OpenSCAD mailing list
>>>>>>> [hidden email]
>>>>>>> http://rocklinux.net/mailman/listinfo/openscad
>>>>>>> http://openscad.org - https://flattr.com/thing/121566
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Matthew Venn
>>>>>> mattvenn.net
>>>>>>
>>>>>> _______________________________________________
>>>>>> OpenSCAD mailing list
>>>>>> [hidden email]
>>>>>> http://rocklinux.net/mailman/listinfo/openscad
>>>>>> http://openscad.org - https://flattr.com/thing/121566
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> OpenSCAD mailing list
>>>>> [hidden email]
>>>>> http://rocklinux.net/mailman/listinfo/openscad
>>>>> http://openscad.org - https://flattr.com/thing/121566
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Matthew Venn
>>>> mattvenn.net
>>>>
>>>> _______________________________________________
>>>> OpenSCAD mailing list
>>>> [hidden email]
>>>> http://rocklinux.net/mailman/listinfo/openscad
>>>> http://openscad.org - https://flattr.com/thing/121566
>>>
>>>
>>
>>
>> _______________________________________________
>> OpenSCAD mailing list
>> [hidden email]
>> http://rocklinux.net/mailman/listinfo/openscad
>> http://openscad.org - https://flattr.com/thing/121566
>
>
>
>
> --
> Matthew Venn
> mattvenn.net
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
> http://openscad.org - https://flattr.com/thing/121566
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: I'm working on an SVG importer

Felipe Sanches
And you can also test SVG files with anything you can draw in Inkscape
and convert to curves by hitting CTRL-SHIFT-C because it results in an
svg:path tag which is pretty much well supported by the svg importer
code I wrote.

On Wed, Jun 5, 2013 at 9:45 AM, Felipe Sanches <[hidden email]> wrote:

> That's a simple one :-)
>
> The svg file you created uses the svg:rect tag, which my svg importer
> did not support yet. I've just written some more code to support that.
>
> Please update, rebuild and test with the test file I placed at:
> testdata/scad/svg/rect.svg
>
> cheers,
> Felipe
>
> On Wed, Jun 5, 2013 at 6:22 AM, matthew venn <[hidden email]> wrote:
>> OK I tried making a square in inkscape and saved as a standard drawing
>> (drawing.svg)
>> Then this code in openscad:
>>
>> linear_extrude(height=100){
>>   import("drawing.svg", $fn=20);
>> }
>>
>> results in this in openscad:
>>
>> Loaded design '/home/matthew/work/cad/openscad/pushfitcircuit/pushfit.scad'.
>>
>> Module cache size: 0 modules
>>
>> Compiling design (CSG Tree generation)...
>>
>> Compiling design (CSG Products generation)...
>>
>> PolySetCache hit: import(file="drawing.svg",layer="",origi
>>
>> CGAL Cache insert: import(file="drawing.svg",layer="",origi (0 bytes)
>>
>> ERROR: CSG generation failed! (no top level object found)
>>
>> PolySets in cache: 2
>>
>> PolySet cache size in bytes: 96
>>
>> CGAL Polyhedrons in cache: 1
>>
>> CGAL cache size in bytes: 0
>>
>>
>> And this:
>>
>>
>> \\\\\\found a group!
>>
>> id=layer1
>>
>>
>> in the shell that I'm running openscad from.
>>
>>
>> Thanks,
>> Matt
>>
>>
>>
>> On 3 June 2013 12:42, Don Bright <[hidden email]> wrote:
>>>
>>> Oops, of course there is a qmake before the make
>>>
>>> -DB
>>>
>>>
>>> On Mon, Jun 3, 2013 at 6:41 AM, Don Bright <[hidden email]>
>>> wrote:
>>>>
>>>>
>>>>
>>>> FYI On the newest version of openscad the build scripts have changed, per
>>>> the README
>>>>
>>>> source scripts/setenv-unibuild.sh
>>>> scripts/uni-build-dependencies.sh
>>>> make
>>>>
>>>> (This was to reflect the fact they work on linux, BSD, hurd, etc)
>>>>
>>>> -DB
>>>>
>>>>
>>>>
>>>> On Mon, Jun 3, 2013 at 5:58 AM, matthew venn <[hidden email]> wrote:
>>>>>
>>>>> Ace, that worked thanks.
>>>>> Got a demo, test or documenation you've been using to get me started?
>>>>> Matt
>>>>>
>>>>>
>>>>> On 3 June 2013 11:23, Felipe Sanches <[hidden email]> wrote:
>>>>>>
>>>>>> I think that when you use the scripts I mentioned in my previous
>>>>>> message you actually build all the dependencies yourself (automatically) and
>>>>>> then you don't need to install packages from your package manager.
>>>>>>
>>>>>>
>>>>>> On Mon, Jun 3, 2013 at 7:16 AM, matthew venn <[hidden email]> wrote:
>>>>>>>
>>>>>>> Last time I tried the package management stuff wanted to upgrade my
>>>>>>> entire distribution.
>>>>>>> Matt
>>>>>>>
>>>>>>>
>>>>>>> On 3 June 2013 11:15, Felipe Sanches <[hidden email]> wrote:
>>>>>>>>
>>>>>>>> Cool!
>>>>>>>>
>>>>>>>> No, I don't have a ready to distribute binary package at hand.
>>>>>>>>
>>>>>>>> Please try again building openscad by running:
>>>>>>>>
>>>>>>>> source scripts/setenv-linbuild.sh
>>>>>>>> scripts/ubuntu-build-dependencies.sh
>>>>>>>> make
>>>>>>>>
>>>>>>>> I guess that would give you some good result. Maybe someone else here
>>>>>>>> can help you further.
>>>>>>>> Marius, do we have detailed build instructions somewhere?
>>>>>>>>
>>>>>>>> happy hacking,
>>>>>>>> Felipe Sanches
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Jun 3, 2013 at 7:07 AM, matthew venn <[hidden email]>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> Felipe, I'd like to help out, but I totally failed to compile
>>>>>>>>> openscad last time I tried. Do you have a binary or package that would work
>>>>>>>>> in ubuntu 12?
>>>>>>>>>
>>>>>>>>> Matt
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 2 June 2013 22:09, Felipe Sanches <[hidden email]> wrote:
>>>>>>>>>>
>>>>>>>>>> Today I worked a lot on the SVG importer and now it seems to be
>>>>>>>>>> working fine (at least for the few test files I'm using).
>>>>>>>>>>
>>>>>>>>>> I would appreciate if other people could help testing it and
>>>>>>>>>> creating testcases for which the current code fails, so that I can work on
>>>>>>>>>> improving the parser.
>>>>>>>>>>
>>>>>>>>>> Known bugs:
>>>>>>>>>> - elliptical arcs are not implemented yet. Smooth/shortcut versions
>>>>>>>>>> of cubic and quadratic curves are broken. All the other path commands are
>>>>>>>>>> already implemented.
>>>>>>>>>> - rendering of bezier curves require the user to set $fn to some
>>>>>>>>>> value. I still do not support $fs for the segmentation of bezier curves and
>>>>>>>>>> I don 't think $fa would be useful in this case.
>>>>>>>>>> - self-intersecting curves are not rendered correctly due to
>>>>>>>>>> limitations in the dxf tesselator I'm using.
>>>>>>>>>>
>>>>>>>>>> Other than that, I think it already makes OpenSCAD a much better
>>>>>>>>>> tool. Specially if you consider the annoying steps involved when one creates
>>>>>>>>>> art in Inkscape and then has to convert it to DXF for loading into OpenSCAD.
>>>>>>>>>> Now I can quickly edit an SVG in Inkscape and hit F5 in OpenSCAD to see the
>>>>>>>>>> 3d model that uses it nicely updated.
>>>>>>>>>>
>>>>>>>>>> Marius,
>>>>>>>>>> Now I'm comfortable with requesting a pull of this code.
>>>>>>>>>>
>>>>>>>>>> happy hacking,
>>>>>>>>>> Felipe Sanches
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Sun, Jun 2, 2013 at 4:09 PM, Marius Kintel <[hidden email]>
>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>> On 2013-06-02, at 14:31 , Jeff Senn wrote:
>>>>>>>>>>>
>>>>>>>>>>> > It could be pretty easily be adapted into OpenSCAD so that TTF
>>>>>>>>>>> > files could be loaded directly
>>>>>>>>>>> > (and simply represented internally as DXF layers) -- I didn't do
>>>>>>>>>>> > this because I figured adding a TrueType
>>>>>>>>>>> > dependency to OpenSCAD might be controversial…
>>>>>>>>>>>
>>>>>>>>>>> I think adding the freetype library as a dependency would make
>>>>>>>>>>> sense. I haven't followed font technology developments, so there might be
>>>>>>>>>>> other libraries out there by now.
>>>>>>>>>>>
>>>>>>>>>>>  -Marius
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> OpenSCAD mailing list
>>>>>>>>>>> [hidden email]
>>>>>>>>>>> http://rocklinux.net/mailman/listinfo/openscad
>>>>>>>>>>> http://openscad.org - https://flattr.com/thing/121566
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> OpenSCAD mailing list
>>>>>>>>>> [hidden email]
>>>>>>>>>> http://rocklinux.net/mailman/listinfo/openscad
>>>>>>>>>> http://openscad.org - https://flattr.com/thing/121566
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Matthew Venn
>>>>>>>>> mattvenn.net
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> OpenSCAD mailing list
>>>>>>>>> [hidden email]
>>>>>>>>> http://rocklinux.net/mailman/listinfo/openscad
>>>>>>>>> http://openscad.org - https://flattr.com/thing/121566
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> OpenSCAD mailing list
>>>>>>>> [hidden email]
>>>>>>>> http://rocklinux.net/mailman/listinfo/openscad
>>>>>>>> http://openscad.org - https://flattr.com/thing/121566
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Matthew Venn
>>>>>>> mattvenn.net
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> OpenSCAD mailing list
>>>>>>> [hidden email]
>>>>>>> http://rocklinux.net/mailman/listinfo/openscad
>>>>>>> http://openscad.org - https://flattr.com/thing/121566
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> OpenSCAD mailing list
>>>>>> [hidden email]
>>>>>> http://rocklinux.net/mailman/listinfo/openscad
>>>>>> http://openscad.org - https://flattr.com/thing/121566
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Matthew Venn
>>>>> mattvenn.net
>>>>>
>>>>> _______________________________________________
>>>>> OpenSCAD mailing list
>>>>> [hidden email]
>>>>> http://rocklinux.net/mailman/listinfo/openscad
>>>>> http://openscad.org - https://flattr.com/thing/121566
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> OpenSCAD mailing list
>>> [hidden email]
>>> http://rocklinux.net/mailman/listinfo/openscad
>>> http://openscad.org - https://flattr.com/thing/121566
>>
>>
>>
>>
>> --
>> Matthew Venn
>> mattvenn.net
>>
>> _______________________________________________
>> OpenSCAD mailing list
>> [hidden email]
>> http://rocklinux.net/mailman/listinfo/openscad
>> http://openscad.org - https://flattr.com/thing/121566
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566