From: Bruce S. <Bru...@nc...> - 2009-07-13 21:31:49
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> VPython does not offer any capability for constructing objects through subtraction of solids. That's a difficult problem to handle in real time.<br> <br> Bruce Sherwood<br> <br> xingran xue wrote: <blockquote cite="mid:c97...@ma..." type="cite"><span class="il"></span>Hi guys,<br> <br> Say I have 4 spheres, and I want to make the intersection part disappear. Is there any easy way to only show the slice instead of the overlapping parts.<br> Here is the code:<br> <br> from visual import *<br> <br> sphere(pos=(0,2,0),opacity = 0.2,color= color.white, radius =2) <br> for t in arange(-pi,pi,2*pi/3):<br> sphere(pos = (1.2*cos(t),0,1.2*sin(t)), opacity = 0.2,color= color.white, radius = 2)<br> <br> <br> Any input will be appreciated.<br> <br> Best<br> Ran<br> <pre wrap=""> <hr size="4" width="90%"> ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: <a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/Challenge">http://p.sf.net/sfu/Challenge</a></pre> <pre wrap=""> <hr size="4" width="90%"> _______________________________________________ Visualpython-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Vis...@li...">Vis...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/visualpython-users">https://lists.sourceforge.net/lists/listinfo/visualpython-users</a> </pre> </blockquote> </body> </html> |