Skip to content

Commit

Permalink
Merge pull request #18 from rbp28668/point_z
Browse files Browse the repository at this point in the history
Point z
  • Loading branch information
Bruce Porteous authored Oct 20, 2020
2 parents f106141 + 5b93d17 commit e26c32f
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ AEROFOIL/x86/*
*.suo
*.tlog # build log
/.vs/Aerofoil/v16
/Test/coords.txt
8 changes: 4 additions & 4 deletions Aerofoil.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1214,8 +1214,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 7,0,0,0
PRODUCTVERSION 7,0,0,0
FILEVERSION 7,0,0,1
PRODUCTVERSION 7,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -1232,12 +1232,12 @@ BEGIN
BEGIN
VALUE "Comments", "Aerofoil Plotting Program"
VALUE "FileDescription", "Aerofoil MFC Application"
VALUE "FileVersion", "7.0.0.0"
VALUE "FileVersion", "7.0.0.1"
VALUE "InternalName", "Aerofoil"
VALUE "LegalCopyright", "Copyright (C) Bruce Porteous 2002-2020"
VALUE "OriginalFilename", "Aerofoil.EXE"
VALUE "ProductName", "Aerofoil Application"
VALUE "ProductVersion", "7.0.0.0"
VALUE "ProductVersion", "7.0.0.1"
END
END
BLOCK "VarFileInfo"
Expand Down
8 changes: 4 additions & 4 deletions Cutter/Cutter.rc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 7,0,0,0
PRODUCTVERSION 7,0,0,0
FILEVERSION 7,0,0,1
PRODUCTVERSION 7,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -42,12 +42,12 @@ BEGIN
BLOCK "080904b0"
BEGIN
VALUE "FileDescription", "Cutter MFC Application"
VALUE "FileVersion", "7.0.0.0"
VALUE "FileVersion", "7.0.0.1"
VALUE "InternalName", "Cutter"
VALUE "LegalCopyright", "Copyright (C) 2002"
VALUE "OriginalFilename", "Cutter.EXE"
VALUE "ProductName", "Cutter Application"
VALUE "ProductVersion", "7.0.0.0"
VALUE "ProductVersion", "7.0.0.1"
END
END
BLOCK "VarFileInfo"
Expand Down
Binary file added Docs/Code.odt
Binary file not shown.
2 changes: 1 addition & 1 deletion FeedRateDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void FeedRateDialog::OnOK()
pConfig->sendEnableControls = sendEnableControls == TRUE;
pConfig->sendMirror = sendMirror == TRUE;
pConfig->sendWorkshifts = sendWorkshifts == TRUE;
pConfig->preCorrectGeometry = useCutterGeometry = TRUE;
pConfig->preCorrectGeometry = useCutterGeometry == TRUE;

}

Expand Down
6 changes: 5 additions & 1 deletion Kernel/BlockCorrectionOutputDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

BlockCorrectionOutputDevice::BlockCorrectionOutputDevice(COutputDevice* delegate, const Bounds& bounds)
: delegate(delegate),
bounds(bounds)
bounds(bounds),
hasLeft(false),
hasRight(false)
{
// Set geometry so that a virtual block with the same width as the effective span of the cut
// defines the nominal edges of the block.
Expand Down Expand Up @@ -37,8 +39,10 @@ void BlockCorrectionOutputDevice::transformCaptured() {
geometry.blockToAxes(axes, left.fz - bounds.getMinz(), right.fz - bounds.getMinz());
left.fx = axes.x;
left.fy = axes.y;
left.fz = 0;
right.fx = axes.u;
right.fy = axes.v;
right.fz = bounds.depth();
}

void BlockCorrectionOutputDevice::MoveTo(int iStream, const PointT& pt)
Expand Down
15 changes: 7 additions & 8 deletions Kernel/Cut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,26 +73,25 @@ void Cut::cut(COutputDevice & pdev, const CutStructure::Context& context)

// Create proxy output device to perform correction to edges of virtual block
BlockCorrectionOutputDevice proxy(&pdev, bounds);
pdev = proxy;

try {
pdev.startPlot();
proxy.startPlot();

std::ostringstream os;
os << "(--EFFECTIVE_SPAN=" << bounds.depth() << ")";
pdev.passthrough(os.str().c_str());
proxy.passthrough(os.str().c_str());

for (CutIterator iter = cut_structures.begin();
iter != cut_structures.end();
++iter)
{
CutStructure* pcs = *iter;
pdev.startObject(pcs->getDescriptiveText().c_str());
pcs->cut(&pdev, context);
pdev.endObject(pcs->getDescriptiveText().c_str());
proxy.startObject(pcs->getDescriptiveText().c_str());
pcs->cut(&proxy, context);
proxy.endObject(pcs->getDescriptiveText().c_str());
}
pdev.Flush();
pdev.endPlot();
proxy.Flush();
proxy.endPlot();
}
catch (COutputDevice::OutputException& /*ex*/) {
// NOP for the time being.
Expand Down
2 changes: 1 addition & 1 deletion Stories/TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Adaptive step size in cutter for G-code output- start large and reduce step in U
Plan view of cutter when width and block position defined DONE


Rotate tapered wing to make TE parallel to edge of block
Rotate tapered wing to make TE parallel to edge of block DONE

Make ellipse tool offset aware.

Expand Down

0 comments on commit e26c32f

Please sign in to comment.