Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export splitting layers on multiple files (useful for SVG and OpenSCAD) #154

Closed
paserra opened this issue Apr 30, 2019 · 5 comments
Closed
Labels
enhancement A suggestion about how to improve the project export Everything related to the export functions programming Something related to the programming activity on the project

Comments

@paserra
Copy link

paserra commented Apr 30, 2019

I propose to export selected layers as sequential SVGs (one SVG-per-Layer) and add to FidoCAD a dialog window for helping the user in the creation of an OpenSCAD script for 3D extrusion of vectors.
In this manner you can use the power of FidoCADJ in the creation of stacked layers of 2D vectors and the powerful functions of OpenSCAD in the reconstructions of 3D objects.
3D objects can be obtained by importSVG-extrusion-offset of vector layers but also by using OpenSCAD boolean operators for subtracting extruded layers (at the same offset level).
The obtained 3D objects can be exported as STL and eventually printed.

@DarwinNE DarwinNE added enhancement A suggestion about how to improve the project export Everything related to the export functions programming Something related to the programming activity on the project labels May 2, 2019
@DarwinNE
Copy link
Owner

DarwinNE commented May 2, 2019

This issue is related to a discussion (in italian) here:

https://sourceforge.net/p/fidocadj/discussion/997486/thread/a2c3e11ab5/?limit=25#3800

Exporting layers as sequential SVGs should be easy to do.
I may allow to create a simple OpenSCAD script, too.

@DarwinNE DarwinNE added this to the FidoCadJ 0.24.8 milestone May 2, 2019
@DarwinNE
Copy link
Owner

DarwinNE commented May 8, 2019

I decided that it would be interesting to allow to separate layers into different files for all vector formats.

@DarwinNE
Copy link
Owner

DarwinNE commented May 8, 2019

I think I will implement an export option for that in the command line.
For example:

-m       if a file export is done towards a vector graphic file format,
         split the layers and write one file for each layer. The file name
         will be obtained by appending _ followed by the layer number
         to the specified file name. For example, the following command
         will create files test_0.svg, test_1.svg ... from the drawing 
         contained in test.fcd:

         java -jar fidocadj.jar -n -m -c r2 svg test.svg test.fcd

@paserra
Copy link
Author

paserra commented May 9, 2019

Hi Davide,
this is amazing!
I wait for your next jar!

DarwinNE added a commit that referenced this issue May 9, 2019
…ll not active). Checked code style with checkstyle and corrected some details.
@DarwinNE DarwinNE changed the title FidoCADJ-to-OpenSCAD export SVGs for 3D extrusion Export splitting layers on multiple files (useful for SVG and OpenSCAD) May 11, 2019
DarwinNE added a commit that referenced this issue May 12, 2019
…ced some elements are sometimes missing in the files, though, this should be fixed.
DarwinNE added a commit that referenced this issue May 31, 2019
…w be correct (i.e. the size of the whole drawing). This should complete implementation of issue #154.
@DarwinNE
Copy link
Owner

Implementation of this feature request should now be complete. I close it, please reopen if problems are found in versions >= 0.24.8 beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A suggestion about how to improve the project export Everything related to the export functions programming Something related to the programming activity on the project
Projects
None yet
Development

No branches or pull requests

2 participants