Fwd: VPython-basics: how move the centre-point of rotation to the centre of a cuboid (not (0, 0, 0)) ?
Bruce Sherwood <[email protected]> Fri, 15 Feb 2013 10:24:57 -0700
| Newsgroups | gmane.comp.python.visualpython.user |
|---|---|
| Message-ID | <CAFDG03jyDa4jiRCqzt47z2n2dG6vGJYvWb-pioeXcYHH-1BAwg@mail.gmail.com> |
--===============2717285031616459437== Content-Type: multipart/alternative; boundary=20cf307c9fc081615304d5c6a71e --20cf307c9fc081615304d5c6a71e Content-Type: text/plain; charset=UTF-8 I meant to share this note with the whole mailing list, especially because the user asked why we don't have a forum, which is a good question. It's basically just historical. I've been increasingly pleased with Google Groups; so I'll look into creating one for the VPython community. Bruce Sherwood ---------- Forwarded message ---------- From: Bruce Sherwood <[email protected]> Date: Fri, Feb 15, 2013 at 10:06 AM Subject: Re: [Visualpython-users] VPython-basics: how move the centre-point of rotation to the centre of a cuboid (not (0, 0, 0)) ? To: Ottmar Petry <[email protected]> You can change the center of the scene (which is also the center of camera rotation with the mouse) by setting scene.center. You may have already found them, but I'll point out that there is a great variety of example programs installed when you install VPython. The download page at vpython.org explains how to find these programs. For example, on Windows, after starting VIDLE just go to File > Open and you can choose an example program to run. Also, in the Contributed section of vpython.org you will find a variety of additional example programs. You mention wanting to make objects with holes in them. Be sure to study the "extrusion" object, and the example programs that use extrusions. Bruce Sherwood On Fri, Feb 15, 2013 at 9:02 AM, Ottmar Petry <[email protected]> wrote: > Hello. > > I want to show 3D-geometric objects like wooden boards > with drillings/holes inside and e.g. pockets milled inside and found some > infos > about Python/VPython. Normally I am programming in C++ (Visual Studio > 2008 Windows) > but I did not find a very simple free tool to generate a 3D-view of such > simple > geometric figures which can easily be zoomed and rotated. > > Then I found VPython, made the installation and took a look at the > examples. > This seemed to be quite simple. > > But off course I will need some help and therefore I looked for further > info > and found this mailing list. > I wonder why there is no forum for VPython users ? > Now I try to get some answers to basic questions of a beginner. > > When I draw a cuboid / cube with details around it and have the point > (0,0,0) > at one corner of the cuboid then I want to set the zero-point for > rotation and zooming somewhere in the centre of the cuboid and not in > (0,0,0). > > At the moment it seems to me that the centre-point for rotation using the > mouse is always (0,0,0). How can I move this point to the centre of the > whole > geometry ? Or how can I reach the same result ? > > Can you send me some simple example for building such geometries with a > cuboid > or links to sides with some examples ? > > That would be very nice. > Thanks in advance > Ottmar > > > --20cf307c9fc081615304d5c6a71e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I meant to share this note with the whole mailing list, es= pecially because the user asked why we don't have a forum, which is a g= ood question. It's basically just historical. I've been increasingl= y pleased with Google Groups; so I'll look into creating one for the VP= ython community.<div> <br></div><div>Bruce Sherwood<br> <br><div class=3D"gmail_quote">---------- Forwarded message ----------<br>F= rom: <b class=3D"gmail_sendername">Bruce Sherwood</b> <span dir=3D"ltr"><= ;<a href=3D"mailto:[email protected]" target=3D"_blank">Bruce_Sherwoo= [email protected]</a>></span><br> Date: Fri, Feb 15, 2013 at 10:06 AM<br>Subject: Re: [Visualpython-users] VP= ython-basics: how move the centre-point of rotation to the centre of a cubo= id (not (0, 0, 0)) ?<br>To: Ottmar Petry <<a href=3D"mailto:Ottmar-Petry= @gmx.de" target=3D"_blank">[email protected]</a>><br> <br><br><div dir=3D"ltr">You can change the center of the scene (which is a= lso the center of camera rotation with the mouse) by setting scene.center.<= div><br></div><div>You may have already found them, but I'll point out = that there is a great variety of example programs installed when you instal= l VPython. The download page at <a href=3D"http://vpython.org" target=3D"_b= lank">vpython.org</a> explains how to find these programs. For example, on = Windows, after starting VIDLE just go to File > Open and you can choose = an example program to run. Also, in the Contributed section of <a href=3D"h= ttp://vpython.org" target=3D"_blank">vpython.org</a> you will find a variet= y of additional example programs.</div> <div><br></div><div>You mention wanting to make objects with holes in them.= Be sure to study the "extrusion" object, and the example program= s that use extrusions.</div><div><br></div><div> Bruce Sherwood</div></div><div class=3D"gmail_extra"><br><br><div class=3D"= gmail_quote"><div><div>On Fri, Feb 15, 2013 at 9:02 AM, Ottmar Petry <span = dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">Ot= [email protected]</a>></span> wrote:<br> </div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo= rder-left:1px #ccc solid;padding-left:1ex"><div><div> =20 =20 =20 <div text=3D"#000000" bgcolor=3D"#FFFFFF"> <font size=3D"-1">Hello.<br> <br> I want to show 3D-geometric objects like wooden boards<br> with drillings/holes inside and e.g. pockets milled inside and found some infos<br> about Python/VPython.=C2=A0 Normally I am programming in C++ (Visual Studio 2008 Windows)<br> but I did not find a very simple free tool to generate a 3D-view of such simple<br> geometric figures which can easily be zoomed and rotated.<br> <br> Then I found VPython, made the installation and took a look at the examples.<br> This seemed to be quite simple.<br> <br> But off course I will need some help and therefore I looked for further info<br> and found this mailing list.<br> I wonder why there is no forum for VPython users ?<br> Now I try to get some answers to basic questions of a beginner.<br> <br> When I draw a cuboid / cube with details around it and have the point (0,0,0)<br> at one corner of the cuboid then I want to set the zero-point for <br> rotation and zooming somewhere in the centre of the cuboid and not in (0,0,0).<br> <br> At the moment it seems to me that the centre-point for rotation using the<br> mouse is always (0,0,0). How can I move this point to the centre of the whole<br> geometry ? Or how can I reach the same result ?<br> <br> Can you send me some simple example for building such geometries with a cuboid<br> or links to sides with some examples ?<br> <br> That would be very nice.<br> Thanks in advance<span><font color=3D"#888888"><br> Ottmar<br> <br></font></span></font></div></div></div> <br></blockquote></div><br></div> </div><br></div></div> --20cf307c9fc081615304d5c6a71e-- --===============2717285031616459437== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb --===============2717285031616459437== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Visualpython-users mailing list Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/visualpython-users --===============2717285031616459437==--