-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move threejs initialising useEffect logic to hook, useEffect was unnecessary create functional settings pane restyled editor to be less of a coloring book simplified commands by removing arguments when equal to previous completely rewrote slicing edges to shapes algorithm - introduces multiple shapes on one layer - sets correct winding direction for internal shapes - joins open paths - ... adds some json encoded 3D models to test with
- Loading branch information
1 parent
e0ad64b
commit 41e8a14
Showing
45 changed files
with
21,997 additions
and
28,345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import './App.css'; | ||
import React from 'react'; | ||
import GCodeEditor from './components/GCodeEditor'; | ||
import GCodeViewer from './components/GCodeViewer'; | ||
import PrintSettings from './components/PrintSettings'; | ||
import useGCodeGenerator from './hooks/useGCodeGenerator'; | ||
|
||
|
||
const App = () => { | ||
const { | ||
gCode, | ||
setGCode, | ||
geometry, | ||
setGeometry, | ||
settings, | ||
setSettings, | ||
// graphs | ||
} = useGCodeGenerator(); | ||
// const [graphLayer, setGraphLayer] = useState(0); | ||
|
||
return ( | ||
<div className="App"> | ||
<GCodeEditor gCode={gCode} onChange={setGCode} /> | ||
{gCode && <GCodeViewer gCode={gCode} shell={geometry} />} | ||
<PrintSettings | ||
value={settings} | ||
onChange={setSettings} | ||
geometry={geometry} | ||
setGeometry={setGeometry} | ||
// setGraphLayer={setGraphLayer} | ||
// gaphLayer={graphLayer} | ||
// graphLayers={graphs?.length ?? 0} | ||
/> | ||
{/*<Graph graph={graphs?.[graphLayer]} />*/} | ||
</div> | ||
); | ||
}; | ||
|
||
export default App; |
Oops, something went wrong.
41e8a14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
polar-slicer – ./
polar-slicer-sam-apostel.vercel.app
slicer.sams.land
polar-slicer-git-master-sam-apostel.vercel.app