NeuronRobotics / NrConsole

This is the console application in Java for interacting with Bowler devices.
2 stars 0 forks source link

Add button to load .STL #10

Closed madhephaestus closed 10 years ago

madhephaestus commented 10 years ago

I have tested out the slicer module calling Slic3r as an external. I need a Button to load the .stl and slice it, then load the gcode.

madhephaestus commented 10 years ago

Here is a test function to look at how the slicer works: https://github.com/NeuronRobotics/java-bowler/blob/development/test/java/src/junit/test/neuronrobotics/cartesian/CartesianTestSuit.java#L40

We might want to add a config file for locating Slic3r binaries on the disk?

DrVulpinus commented 10 years ago

I added the ability to load STL's and GCode, and when a STL is loaded it automatically slices it and then loads the GCode file.

I do not necessarily think there needs to be such a heavily integrated interface for slic3r, if it could simply load the selected STL in slic3r in the GUI mode it would probably be much simpler.

madhephaestus commented 10 years ago

No, the reason to add those configurations is because they can be stored on the controller, NOT on the host computer in the slic3r configuration ini.

DrVulpinus commented 10 years ago

That makes sense. Also, it seems that for some reason when slic3r is called it crashes and is unable to slice the file. Have you experienced this issue?

madhephaestus commented 10 years ago

We need to come up witha good way of defining (or deploying) where the slic3r executable is. I have been hard codeing it for now, so for testing just change the hardcode.

DrVulpinus commented 10 years ago

I handled that issue by adding a check to see if the hardcoded location is wrong, and shows a FileSelectionFactory when NRConsole starts if it is wrong.

madhephaestus commented 10 years ago

neat!

DrVulpinus commented 10 years ago

Location of Slic3r is now saved in user specific preferences.