JavaView Logo  
Home Demos Applications Tutorial Download Help Feedback

Up ] First Applet ] First Project ] First Graph ] First Application ] Models ] Loader ] Keyframe ] Linear Alg ] Torus Knot ] [ Picking ] Camera Events ] Slider ] Ruler ] Color Selector ] Vector Field ] Polygon Sets ] Scalar Field ] Ode ] Root Finder ] Parm Surface ] L-System ] Texture ] Refinement ] Julia Set ] 4D Transform ]

Mechanism for Picking Points on Polyhedral Surfaces

Demo applet for working with pick events on polyhedral surfaces. In this example, the pick events are used to generate a curve on a polyhedral surface. The vertices may be picked anywhere on the surface. The program automatically generates additional vertices when the curve between two pick points crosses a vertex.

Additionally, points may be picked outside the surface in the background of the viewer which leads to curve segments lying in the viewing plane centered at the origin. By rotating the camera, space curves may be generated independently of the currently displayed surface.

Keep pressing 'i' and pick or drag along surface to generate curve. Releasing 'i' switches back to default mode.

View source code:
PaPickEvent.java of applet,
PjPickEvent.java of project,
PjPickEvent_IP.java of project panel.

© 1999-2005 Last modified: 03.10.2005 --- http://www.javaview.de --- The JavaView Project