When I run the attached drawing with the CAM function I end up with two contours as you can see in the log. Normally this is ok with a standard gcode.js. If I try to set the start at the other end with my own config I get some unpredictable results.
The problem I see is in the appendtocontour function in CamExporter.js.
srl
Two contours in open contour
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Indicate the post processor used.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Indicate the post processor used.
Attach drawing files and screenshots.
Post one question per topic.
Re: Two contours in open contour
Here is a better and more simple example.
srl
srl
Re: Two contours in open contour
Looks like the example in the last post is ok.
Here is another one.
Looking at CamExporter.js I can't see the
while (this.prependToContour(contour)); line being successful at all ?
srl
Here is another one.
Looking at CamExporter.js I can't see the
while (this.prependToContour(contour)); line being successful at all ?
srl
Re: Two contours in open contour
I found the problem in CamExporter.
The prependToContour function needs to return a value.
srl
The prependToContour function needs to return a value.
Code: Select all
Myconfig.prototype.prependToContour = function(contour) {
return this.appendToContour(contour, true);
};
Re: Two contours in open contour
Great, thanks for posting the outcome. Unfortunately, I didn't have time to look into this, but I did read along..