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

How to make a csg from complicated svg? #47

Open
giloh728 opened this issue Jul 5, 2018 · 6 comments
Open

How to make a csg from complicated svg? #47

giloh728 opened this issue Jul 5, 2018 · 6 comments

Comments

@giloh728
Copy link

giloh728 commented Jul 5, 2018

I really appreciate your effort.

I am going to try to make a 3D viewport with CSG function.

It is very important to me about extrusion from DXF section or SVG such as complicated shape.

May I ask why fail to extrude these svg files?

2D section.zip

@miho
Copy link
Owner

miho commented Jul 5, 2018

What exactly doesn't work? Is the result unexpected? It's easier to find bugs if you send a minimal working example that demonstrates the bug.

@madhephaestus
Copy link
Contributor

madhephaestus commented Jul 5, 2018

If you are just looking for functions that load a complex SVG to a CSG (including hole detection and auto differencing), check out https://github.com/NeuronRobotics/JCSG/blob/development/src/main/java/eu/mihosoft/vrl/v3d/svg/
My fork includes SVG loading and export through a GPU accelerated slicing engine.

@giloh728
Copy link
Author

giloh728 commented Jul 6, 2018

Thanks for reply all.

@miho
https://github.com/giloh728/CSGExample/blob/master/src/main/java/kr/co/giloh/example/SVGExtrudeExample.java

This is the simple example.

@madhephaestus
thanks a lot for suggestion.
My project refered to [ JavaCad(compile group: 'com.neuronrobotics', name: 'JavaCad', version: '0.15.0') ]. But It couldn't work to me.

@miho
Copy link
Owner

miho commented Jul 6, 2018

It looks like you are using a JCSG fork. @madhephaestus might be able to help you out. JCSG only provides limited SVG functionality via https://github.com/miho/JCSG-PathExtensions. If you encounter problems with that please open an issue there and reference this issue.

@madhephaestus
Copy link
Contributor

@giloh728 The Imports for my fork are different, I forked before they all changed in the mainline. Ill get it harmonized one of these days...

In the mean time, you can just erase the import statements and let the IDE find the new imports.

@giloh728
Copy link
Author

giloh728 commented Jul 9, 2018

I understood!!

I didn't know about fork function.

I will try test using a JCSG fork(JCSG-PathExtensions).

I really appreciated helpers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants