From: Bruce S. <bas...@nc...> - 2010-12-19 17:40:53
|
Those objects are built using faces, which currently support materials but not opacity. You might consider adding a materials option to those objects yourself. Kadir Haldenbilen, whose work with the Polygon, FontTools, and ttfquery modules led to the 3D text object, has done further work on 2D "constructive geometry" using the Polygon tool, which makes it possible to add and subtract areas to create arbitrarily complex 2D figures such as a square with round holes. He and I hope to incorporate this machinery into VPython by allowing you to specify one of these 2D areas as a cross section for the curve object. This would give you hollow tubes and much much more, but it wouldn't give you frustums and partial spheres (which would require 3D constructive geometry). Bruce Sherwood On Sun, Dec 19, 2010 at 9:33 AM, Poul Riis <Pou...@sk...> wrote: > I'm still hoping that someone could find the time to update Thom Ives' > moreobjects.py so that the tube, the frustum, and the spherepart could be > used with the materials and the opacity options - or even better include > these objects as standard objects in VPython. > Furthermore, I would suggest a ring section (bent tube) as a new object (for > connecting tubes, for instance). > Poul Riis > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |