MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

DynamicModule to set locations of 3D points from 2D LocatorPane?


I don't see why the following doesn't update the 3D points. They just 
stay stuck at the initialized x and y coordinates.


DynamicModule[
 {pt = 1/2 {{1, 1}, {-1, 1}, {1, -1}},
  P},

 {
  LocatorPane[
   Dynamic[pt],
   P = Append[#, 0] & /@  pt;
   Framed @ Graphics[{}, Axes -> True]
   ],

  Graphics3D[
   {
    Sphere[P, 0.05],
    {Opacity[0.5], Tube[Line[P], 0.03]},
    Tube[BezierCurve[P], .03]
    },
   Axes -> True,
   PlotRange -> 1
   ],

  Dynamic[pt],
  Dynamic[P]
  }
 ]




  • Prev by Date: Specifying Locator appearance in Manipulate
  • Next by Date: MatrixFormWrapper vs. MatrixForm
  • Previous by thread: Specifying Locator appearance in Manipulate
  • Next by thread: Re: DynamicModule to set locations of 3D points from 2D LocatorPane?