Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Moving a parametric object in mathematica

  1. Dec 7, 2009 #1
    Hi

    I have define a 3D object with ParametricPlot3D, something similar to a sphere called "obj." I then want to use a matrix, I define as "move," to translate the object around, I have been trying:

    obj = ParametricPlot3D....
    move = AffineTransform[{{1, 1, 2}, {0,1 , 1}, {0, 0, 1}}]

    Graphics3D[GeometricTransformation[obj[], move], Axes -> True]

    But this just returns an error message
    "GeometricTransformation is not a Graphics3D primitive or directive." Is it possible to move an object that has been defined parametrically like this? Is there any other command that will allow me to move this object around?

    Thanks
     
  2. jcsd
  3. Dec 7, 2009 #2

    Dale

    Staff: Mentor

    The result of ParametricPlot3D is a Graphics3D object, not a Graphics3D primitive. However, it should have a length of 2 and the first element should be a list of the corresponding Graphics3D primitive and the second element should be a list of the options. So you can use something like:

    Graphics3D[GeometricTransformation[obj[[1]], move]]
    or even
    Graphics3D[GeometricTransformation[obj[[1]], move], obj[[2]]]
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Moving a parametric object in mathematica
Loading...