- 24 Mar, 2012 1 commit
-
-
Whitham D. Reeve II authored
-
- 05 Mar, 2012 1 commit
-
-
Whitham D. Reeve II authored
PyCam has been spending about 75% of it's time creating point objects. I decided to replace the pycam Point object with a 3 position tuple, and the pycam Vector object with a 4 position tuple. All of the point object methods were rewritten to accept and emit tuples. The transform_by_matrix method was rewritten to accept both 3 and 4 position tuples with behavior dependent on that size. The normalized method is the only method required to emit the same kind of object that it is called on, and this has been taken care of with the tuple version. What does this mean? All instances of Point(x,y,z) have been converted into (x,y,z) All instances of Vector(x,y,z) have been converted into (x,y,z,'v') The notation to access the x,y,z of the Point objects has been been changed from p.x,p.y,p.z to p[0],p[1],p[2] The notation for the point math functions has been completely changed. Instead of p1.sub(p2) it has been converted to psub(p1,p2) Instead of p1.sub(p2).mul(0.5) it has been converted to pmul(psub(p1,p2), 0.5) It is very important to point out that the tuple is an immutable type. You can not change it once you create it. t[0] = calculated_x_value # syntax error You have to replace the reference (t) to the old tuple with a new reference to a new tuple. t = (calculated_x_value, t[1], t[2]) # works There was a particularly hairy mutable/immutable barrier in the next() generator present in each class that inherits TransformableContainer. The TransformableContainer.transform_by_matrix function uses these generators to collapse polygons and lines and triangles into points where a shift is performed on each. Now that point is immutable, you can not change the value emitted by the generator. Geometry/__init__.py transform_by_marix and the associated next() generator in each sub class has been rewritten to transfer the attr used to store the reference to the tuple. Geometry/__init__.py transform_by_matrix now sets these attributes which effectively gets around this limitation. There could be some old point object code in any of the files not contained in this commit. It is impossible to know without running the code path and/or careful analysis of each file. Some list comprehensions that convert a list of point objects into a 3 position tuple have been removed. Whitham D. Reeve II
-
- 21 Jan, 2012 1 commit
-
-
Paul Bonser authored
-
- 15 Jan, 2012 1 commit
-
-
sumpfralle authored
* this decreases memory consumption significantly * see http://docs.python.org/release/2.5.2/ref/slots.html git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1241 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 19 Jul, 2011 1 commit
-
-
sumpfralle authored
added a motion-grid generator for engraving separated the toolpath visualization git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1125 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 07 Feb, 2011 1 commit
-
-
sumpfralle authored
disabled "namedtuple" for now (it was never in effect) git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@975 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 02 Dec, 2010 1 commit
-
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@880 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 19 Nov, 2010 1 commit
-
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@855 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 11 Nov, 2010 1 commit
-
-
sumpfralle authored
reduced initialization time for Points and Lines (these initializations were quite expensive when loading CXF fonts) git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@827 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 07 Nov, 2010 3 commits
-
-
sumpfralle authored
reduce the number of cone layers to one (sufficient and resource-friendly) git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@820 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@819 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@817 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 05 Nov, 2010 1 commit
-
-
sumpfralle authored
optional visualization of directions (for contour models, toolpaths and triangle's normals) git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@816 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 24 Sep, 2010 2 commits
-
-
sumpfralle authored
prevent Exceptions for zero-length lines (e.g. caused by pycam.Geometry.intersection.intersect_circle_line) git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@697 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@693 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 19 Sep, 2010 1 commit
-
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@688 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 17 Sep, 2010 1 commit
-
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@679 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 29 Aug, 2010 1 commit
-
-
sumpfralle authored
fixed intersection of lines to always return the first intersection (in case of multiple candidates) git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@646 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 10 Aug, 2010 2 commits
-
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@570 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@569 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 09 Aug, 2010 1 commit
-
-
sumpfralle authored
* only useful for debugging (toolpath generation slows down by a factor of 40) git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@567 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 07 Aug, 2010 1 commit
-
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@564 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 03 Aug, 2010 3 commits
-
-
sumpfralle authored
switch from line-based polygon to point-based approach git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@562 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
sumpfralle authored
calculate all properties during instanciation (not on demand) git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@561 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@560 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 01 Aug, 2010 2 commits
-
-
sumpfralle authored
allow (optional) line intersection outside the length of both lines git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@559 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@558 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 31 Jul, 2010 4 commits
-
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@557 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@556 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@554 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
sumpfralle authored
fix engrave offset for models with a star-like shape (two adjacent lines removed instead of just one) git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@549 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 30 Jul, 2010 1 commit
-
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@548 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 28 Jul, 2010 1 commit
-
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@546 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 25 Jul, 2010 1 commit
-
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@538 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 24 Jul, 2010 1 commit
-
-
sumpfralle authored
* now EngraveCutter respects the defined boundary box git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@529 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 23 Jul, 2010 1 commit
-
-
sumpfralle authored
skip unnecessary double-check of line collisions moved "MODEL_TRANSFORMATIONS" from pycam.Geometry.Model to pycam.Geometry.Matrix (as "TRANSFORMATIONS") fixed accidental reversion of contour model direction caused by some model transformations git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@523 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 20 Jul, 2010 1 commit
-
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@504 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 18 Jul, 2010 1 commit
-
-
sumpfralle authored
git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@491 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 09 Jul, 2010 1 commit
-
-
sumpfralle authored
moved all source files to a separate "src" directory git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@424 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-
- 23 Jun, 2010 1 commit
-
-
sumpfralle authored
report an error, if a contour model with an offset causes intersections between lines of different line groups git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@419 bbaffbd6-741e-11dd-a85d-61de82d9cad9
-