Dewey Garrett
b5301718e8
glnav.py:GlNavBase:set_viewangle() add forcerotate
...
commit c44c029d5
"glnav -don't rotate view unless in perspective mode"
didn't consider vismach.py usage of set_viewangle()
affects numerous vismach guis that use lat,lon settings:
5axisgui.py, hbmgui.py, hexagui.py, melfagui.py,
millturngui.py, puma560gui.py, pumagui.py, scaragui.py,
xyzac-trt-gui.py, xyzbc-trt-gui.py,
2023-01-03 12:12:19 -07:00
eb62efcaed
Fix "object has no attribute 'tolist'"
...
This occurs since the switch to pyopengl (yay!) but only if python3-numpy
is not also installed.
I was able to eliminate the conversion of the matrix to its 1D / list form
entirely.
I think I got pretty good coverage of everything _except_ qt vismach
in my testing, both with and without python3-numpy installed. qt vismach
should be the same as tk vismach, as I made edits with the same intended
effect.
2021-09-25 17:15:26 -05:00
Rene Hopf
6cc2fdd091
removes minigl and replaces it with libepoxy
2021-08-27 17:13:37 +02:00
Rene Hopf
e0c3d05aa8
remove various python2 workarounds
2021-08-01 12:36:41 +02:00
luz paz
ea08a53edd
docs: fix source comment and doc typos in lib/python
...
Found via `codespell v2.0.dev`
```
codespell -q 3 -L ans,doubleclick,halp,parms
```
2021-01-04 09:53:06 -05:00
Dewey Garrett
37f0e633c9
vismach.py py2/py3 tkinter compatibility
2020-05-04 07:14:12 -07:00
Rene Hopf
ac66fe3eb0
python3 compatibility in lib/python
2020-04-26 22:56:52 +02:00
Dewey Garrett
f68a5223a3
Merge remote-tracking branch 'origin/2.8'
2020-03-25 18:04:00 -07:00
Dewey Garrett
5a8cd4879f
Merge remote-tracking branch 'origin/2.7' into 2.8
2020-03-25 17:42:00 -07:00
Dewey Garrett
3b07688d0e
vismach.py bugfix for memory link (Hud() fontbase)
...
Reported: https://forum.linuxcnc.org/38-general-linuxcnc-questions/38673-xyzbc-trt-gui-memory-problem#161490
2020-03-25 17:06:21 -07:00
Dewey Garrett
7c4522a9a9
vismach.py new hal pin vismach.plotclear
...
The pin can be accessed by virtual control panels (like pyvcp)
or with sim_pin. Example:
$ sim_pin vismach.plotclear/mode=Pulse
2019-11-18 17:39:43 -07:00
andy pugh
7277657ba6
Merge branch '2.7' into 2.8
2019-06-09 02:42:18 +01:00
joseph calderon
2f40e30fe0
fix undefined variables causing some stl imports to fail in lib/python/vismach.py
2019-06-08 17:49:25 -07:00
Lubomir Rintel
a63ec765cb
all: update FSF address in GPL 2.0 notices
...
If you write to 59 Temple Place you're unlikely to get a response.
Let's realign the address with a more up-to-date one from [1].
[1] https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
This is purely a cosmetic change, doesn't affect the meaning of the
license. Done to make rpmlint happy.
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
2017-09-15 13:06:22 +02:00
Dewey Garrett
81e5d5d7fb
vismach.py increase plotlen for new examples JA
...
recommended by Rudy du Preez for longer ngc files that demonstrate
more complex 5-axis machining
Signed-off-by: Dewey Garrett <dgarrett@panix.com>
2016-06-26 19:08:28 -06:00
Jeff Epler
25db1fdd66
vismach: Fix HalToolCylinder
...
.. and other subclasses of CoordsBase which do not have any constructor
arguments.
2016-06-26 19:08:28 -06:00
Jeff Epler
7b91409830
vismach: make it possible to use HAL pins in any CoordsBase
...
so that for instance this cylinder will have its
length set by c['tl']:
CylinderX(c, 0, 5, 'tl', 5)
2016-06-26 19:08:28 -06:00
Jeff Epler
db71c5a5bb
vismach: work around a bug in mesa
...
https://bugs.freedesktop.org/show_bug.cgi?id=22014 says that calling
glGetError inside glNewList..glEndList can erroneously report a
GL_INVALID_OPERATION error at a subsequent glGetError call. That bug
reports that using GL_COMPILE is a workaround.
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2015-08-08 16:05:34 -05:00
Jeff Epler
1aa8339e88
factor behavior code out of Togl classes
...
this will allow other programs to navigate using mostly the same
navigation code as Axis
2009-12-18 21:02:49 -06:00
Alex Joni
c3c910214b
remove debug prints
2009-08-19 19:38:47 +03:00
Alex Joni
24f3775621
for some reason it works better to have only GL_COMPILE, then a subsequent execute for big loaded OBJs
2009-08-14 19:05:28 +03:00
Ben Lipkowitz
6fc47c4dc7
fix slight angular misalignment in Track() caused by using the wrong formula
2009-02-11 03:21:08 +00:00
John Kasunich
531eed9702
fix bug in CylinderY() - cylinder pointed wrong direction along axis - also fix invocations of CylinderY()
2008-10-20 02:46:45 +00:00
Jeff Epler
3b794e00d4
remove debugging print
2008-10-20 01:08:32 +00:00
Jeff Epler
4965191543
allow calling code to control the rotation vectors and initial orientation
2008-10-20 01:04:57 +00:00
Jeff Epler
46e9b38ffe
rudumentary reader for .obj 3d meshes
2008-08-18 16:13:33 +00:00
John Kasunich
98f1d22b27
added an Arc primitive - can make washers, pie slices, etc
2008-08-01 01:31:32 +00:00
John Kasunich
7be3c0b620
added computation of the volume of each primitive - for crude solid modeling work
2008-07-19 03:14:33 +00:00
John Kasunich
35e3bac6db
allow vismach models to be viewed from all angles
2008-06-28 19:18:38 +00:00
Jeff Epler
5404b170a9
rudimentary support for stl format
2008-06-24 19:56:53 +00:00
John Kasunich
de0f1b385d
fix box surface normals, add a triangle primitive, add a scale operation
2008-06-23 02:22:04 +00:00
Jeff Epler
2e5abccfef
from branch: exit reliably with 'halcmd unload'
2008-01-28 14:17:46 +00:00
Jeff Epler
4e4733e2b0
improve visiblity of backplot lines
2007-12-06 13:36:03 +00:00
Jeff Epler
1a095be2ec
refactor objects that take coords so that they can more easily be parameterized. get rid of not very useful HalCylinderZ
2007-11-17 14:11:01 +00:00
Chris Radek
046b085bdb
5 axis tool length offset, and tool length visualization in vismach
2007-11-16 17:36:58 +00:00
Jeff Epler
b0fe52cd58
make it possible to color a group of objects by using
...
Color((r,g,b,a), [objects])
2007-11-15 17:26:36 +00:00
Ben Lipkowitz
5c6698ead1
the global keyword does not define the variable
2007-10-17 20:06:59 +00:00
Ben Lipkowitz
4c7412fa8d
head-up display, fix track's spamming
2007-10-16 13:09:53 +00:00
Ben Lipkowitz
078a239189
added Track transform
2007-10-15 03:05:44 +00:00
Ben Lipkowitz
cf9d9db063
revert previous change. scaling is not supported by backplot matrix operations, and its not very useful anyway
2007-10-14 14:05:15 +00:00
Ben Lipkowitz
f4cec403c3
added Scale/HalScale for a visualization i was doing
2007-10-11 16:27:55 +00:00
John Kasunich
0425a4bfc8
added backplot to vismach
2007-02-06 10:15:29 +00:00
John Kasunich
94ed45b574
add Sphere primitive, auto-calc near, far, and distance for perspective calcs using 'size' parameter
2007-02-05 03:18:13 +00:00
Chris Radek
6b53ca5a99
scrollywheel
2007-02-05 03:15:22 +00:00
Jeff Epler
39ad521500
don't print KeyboardInterrupt when exiting, it looks like a programming error
2007-02-04 22:07:33 +00:00
Jeff Epler
080fec58c3
fix all polygons to face the right way
2007-02-04 21:15:56 +00:00
Jeff Epler
3c267e649c
fix ImportError: No module named vismach
2007-02-04 20:36:46 +00:00