Skip to content

Commit

Permalink
delete unnecessary stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronkim218 committed Feb 26, 2024
1 parent 2b76798 commit db21269
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 39 deletions.
7 changes: 2 additions & 5 deletions backend/src/cad_to_gcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,22 @@ TopoDS_Shape convert_file(const std::string filepath) {

int main(int argc, char *argv[]) {
try {
// Check if the correct number of arguments are passed
if (argc != 3) {
std::cerr << "Usage: " << argv[0] << " <input_file_path> <output_file_path>" << std::endl;
return 1; // Return an error code
return 1;
}

// Get file and output path from command line arguments
std::string filename = argv[1];
std::string outputPath = argv[2];

// Assuming the rest of your code goes here
TopoDS_Shape shape = convert_file(filename);
Handle(Geom_BSplineCurve) bsplineCurve = CreateBSplineFromShape(shape);
std::vector<gp_Vec> tangentVectors = calculate_tangent_vectors(bsplineCurve);
generateGCode(tangentVectors, outputPath);

} catch (const std::exception& e) {
std::cerr << "Exception caught: " << e.what() << std::endl;
return 1; // Return an error code
return 1;
}

return 0;
Expand Down
33 changes: 0 additions & 33 deletions backend/src/determine_file_type.cpp

This file was deleted.

1 change: 0 additions & 1 deletion frontend/public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ function createWindow() {
filters: [{ name: 'Design Files', extensions: ['iges', 'step', 'igs'] }],
}).then(result => {
if (!result.canceled && result.filePaths.length > 0) {
// Send the selected file path back to the renderer process
event.reply('selected-file', result.filePaths[0]);
}
}).catch(err => {
Expand Down

0 comments on commit db21269

Please sign in to comment.