Commit graph

30 commits

Author SHA1 Message Date
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