Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8049 > unrolled thread
| Started by | Chris Young <cy56@comcast.net> |
|---|---|
| First post | 2012-01-21 10:14 +0000 |
| Last post | 2012-01-21 10:14 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Locators disappearing in LocatorPane (although working) Chris Young <cy56@comcast.net> - 2012-01-21 10:14 +0000
| From | Chris Young <cy56@comcast.net> |
|---|---|
| Date | 2012-01-21 10:14 +0000 |
| Subject | Locators 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
]
]
}
]
]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web