Skip to content

Commit

Permalink
CNC No Offset Vector Cut
Browse files Browse the repository at this point in the history
  • Loading branch information
petervanderwalt committed Sep 17, 2018
1 parent d8db051 commit f6c4ae1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 14 additions & 1 deletion js/advanced-cam-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ function typeofOperation(newval, objectseq) {
} else if (newval == "Laser: Vector (raster fill) (Beta)") {
laserOutsideMode(objectseq);
updateCamUserData(objectseq);
} else if (newval == "CNC: Vector (no offset)") {
cncNoOffsetMode(objectseq);
updateCamUserData(objectseq);
} else if (newval == "CNC: Vector (path outside)") {
cncOutsideMode(objectseq);
updateCamUserData(objectseq);
Expand Down Expand Up @@ -215,6 +218,7 @@ function setupJob(i) {
<span class="input-addon-label-left active-border"><i class="fa fa-wrench fa-fw" aria-hidden="true"></i></span>
<select class="cam-form-field cam-form-field-right active-border" id="toperation` + i + `" objectseq="` + i + `" style="width: 180px; padding: 0px;">
<option>... Select Operation ...</option>
<option>CNC: Vector (no offset)</option>
<option>CNC: Vector (path inside)</option>
<option>CNC: Vector (path outside)</option>
<option>CNC: Pocket</option>
Expand All @@ -233,7 +237,7 @@ function setupJob(i) {
</td>
</tr>
<tr class="inputcnc inputpocket">
<tr class="inputcnc inputpocket inputtooldia">
<td>Endmill Diameter</td>
<td>
<div class="input-addon">
Expand Down Expand Up @@ -561,6 +565,15 @@ function cncOutsideMode(i) {
$('.inputcnc').show();
};

function cncNoOffsetMode(i) {
$('.inputlaser').hide();
$('.inputpocket').hide();
$('.inputdragknife').hide();
$('.inputplasma').hide();
$('.inputcnc').show();
$('.inputtooldia').hide();
}

function cncPocketMode(i) {
$('.inputlaser').hide();
$('.inputdragknife').hide();
Expand Down
2 changes: 2 additions & 0 deletions js/advanced-cam-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ function toolpathPreviewExec(i) {
toolpathsInScene[i].userData.inflated = getToolpath("inflate", i, (SpotSize / 2), 0, 1, 1, 0, false, false, false, false, union);
} else if (operation == "Laser: Vector (raster fill) (Beta)") {
toolpathsInScene[i].userData.inflated = getToolpath("fill", i, (SpotSize / 2), 0, 1, 1, 0, false, false, false, false, union);
} else if (operation == "CNC: Vector (no offset)") {
toolpathsInScene[i].userData.inflated = getToolpath("inflate", i, 0, 0, ZStep, ZDepth, ZStart, false, tabdepth, tabspace, tabwidth, union);
} else if (operation == "CNC: Vector (path inside)") {
toolpathsInScene[i].userData.inflated = getToolpath("inflate", i, -(ToolDia / 2), 0, ZStep, ZDepth, ZStart, false, tabdepth, tabspace, tabwidth, union);
} else if (operation == "CNC: Vector (path outside)") {
Expand Down

0 comments on commit f6c4ae1

Please sign in to comment.