nav111 / heekscnc

Automatically exported from code.google.com/p/heekscnc
Other
0 stars 0 forks source link

sketch containing points crashes ScriptOp python generation #259

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. load attached file
2. generate py file
3. segmentation violation  in CScriptOp::OpenCamLibDefinition

What is the expected output? What do you see instead?

    I would have expected an error message, not a crash. 

version: latest svn, ubuntu 10.04

comment:

the definition of a 'sketch' is unclear. when is it expected to be a polyline 
only? one can paste points into it but at least not for this operation

clarify that when scripting objects, either a polyline-type sketch or just 
points should be added, but points should NOT be contained in a sketch 

when one pastes the points directly into the script operation everything's fine

Original issue reported on code.google.com by haberl...@gmail.com on 11 Oct 2010 at 12:32

Attachments:

GoogleCodeExporter commented 8 years ago
actually it fails in  gp_XYZ::Subtracted after calling ConvertSketchToEdges() 
from CScriptOp::OpenCamLibDefinition(), which I only saw after using unstripped 
binaries.

Original comment by haberl...@gmail.com on 11 Oct 2010 at 2:04

GoogleCodeExporter commented 8 years ago
I have added a check in the conversion from sketch to edge but I have not done 
anything about adding point objects that are children of sketches into the 
points array.

Original comment by David.Ni...@gmail.com on 15 Oct 2010 at 1:27

GoogleCodeExporter commented 8 years ago
thanks! I wasnt aware of the assumption of a connected path, or separate points 
only. Makes sense though.

Original comment by haberl...@gmail.com on 15 Oct 2010 at 8:52

GoogleCodeExporter commented 8 years ago
no feature requests here, just bug reports for HeeksCNC 1.0

Original comment by danhe...@gmail.com on 24 Mar 2014 at 5:22