NTNUJAVA Virtual Physics Laboratory
Physics Simulations to help you enjoy the fun of physics!
February 10, 2010, 04:52:29 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This site host hundreds of physics related java simulations under create common license. All registered user will be able to get files for offline use when user login and view the simulation. Switch to this new system on 2007/02/14. (previous system2001-2007, 1996-2001) ,Check out Chinese forum to find more simulations and resources in Chinese.
 
   Home   Help Search Login Register  
Know the universe as yourself and you can live anywhere in comfort. ...Lao Tzu (570-490 BC)
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: How can i transform a 3D cylinder using 2 transformation with dynamic variables  (Read 694 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Hero Member
*****
Offline Offline

Posts: 829

http://sgeducation.co.nr


WWW
« on: November 09, 2009, 09:54:12 AM » posted from:Singapore,,Singapore

Hi Prof,

How can i transform a 3D cylinder using
Code:
"z:"+cta
and
Code:
y:90d

each works on its own but i can't figure out how to add both.
for example i tried but it doesn't work
Code:
"y:90d & "z:"+cta"


my reference:
http://www.um.es/fem/EjsWiki/Main/ElementsAboutTransforms

i want a rotating cylinder with both transformation to achieve the look of a cylinder

attached in my source xml for


* ACdiscproblem.PNG (13.55 KB, 411x345 - viewed 3 times.)
* ACgenerator.xml (77.05 KB - downloaded 1 times.)

* Acdisc.PNG (1.49 KB, 113x88 - viewed 16 times.)
« Last Edit: November 09, 2009, 10:12:05 AM by lookang » Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 1966


WWW
« Reply #1 on: November 09, 2009, 05:04:54 PM » posted from:Taipei,T\'ai-pei,Taiwan

If you want to do "z:"+cta then "y:90d",
 you should set the property to "z:"+cta+" & x:90d"
If you want to do "y:90d" then "z:"+cta
 you should set the property to "x:90d & z:"+cta

Because cta is a variable so it need to be outside the string and added to property string with "+" operator.
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 829

http://sgeducation.co.nr


WWW
« Reply #2 on: November 09, 2009, 08:01:49 PM »

Fantastic tips. Thx a million!
Will try later

finally understood the logic is additive.

using
Code:
"y:90d & x:"+cta

to achieve the same effect! thx!
« Last Edit: November 09, 2009, 09:40:50 PM by lookang » Logged
Pages: [1]   Go Up
  Print  
Know the universe as yourself and you can live anywhere in comfort. ...Lao Tzu (570-490 BC)
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
how technology can be used to transform education in 21st century learning
Questions related to EJS
lookang 3 5214 Last post May 22, 2009, 10:50:30 AM
by Shiny768
Thermal dynamic processes: isobaric, isochoric, isothermal, adiabatic processes
Thermodynamics
Fu-Kwun Hwang 14 15826 Last post September 30, 2009, 08:32:41 PM
by Fu-Kwun Hwang
cylinder touching wall
Question related to Physics or physics related simulation
pradeep123 1 2851 Last post December 31, 2008, 09:48:12 PM
by Fu-Kwun Hwang
Complex numbers and Laplace transform
Question related to Physics or physics related simulation
j142 1 1520 Last post June 24, 2009, 06:37:56 PM
by Fu-Kwun Hwang
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 10.076 seconds with 23 queries.