Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8049 > unrolled thread

Locators disappearing in LocatorPane (although working)

Started byChris Young <cy56@comcast.net>
First post2012-01-21 10:14 +0000
Last post2012-01-21 10:14 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Locators disappearing in LocatorPane (although working) Chris Young <cy56@comcast.net> - 2012-01-21 10:14 +0000

#8049 — Locators disappearing in LocatorPane (although working)

FromChris Young <cy56@comcast.net>
Date2012-01-21 10:14 +0000
SubjectLocators disappearing in LocatorPane (although working)
Message-ID<jfe36j$9r1$1@smc.vnet.net>
The Locators are vanishing from sight before they reach the edge of the 
Locator pane, although they are still working.

DynamicModule[
 {P = 1/2 {{1, 1}, {-1, 1}, {1, -1}},
  \[ScriptCapitalP]},

 GraphicsRow [
  {
   Dynamic[
    LocatorPane[
     Dynamic[P],
     Framed @ Graphics[
       BezierCurve[Dynamic[P], SplineDegree -> Length[P]],
       Axes -> True,
       PlotRange -> {{-1, 1}, {-1, 1}}
       ],
     LocatorAutoCreate -> True
     ]
    ],

   Dynamic[
    \[ScriptCapitalP] = Append[#, 0] & /@  P;
    Graphics3D[
     {
      Sphere[\[ScriptCapitalP], 0.05],
      {Gray, Opacity[0.5], Tube[Line[\[ScriptCapitalP]], 0.015]},
      Tube[
       BezierCurve[\[ScriptCapitalP],
        SplineDegree -> Length[\[ScriptCapitalP]]], .03]
      },
     Axes -> True,
     PlotRange -> 1
     ]
    ]
   }
  ]
 ]

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web