[ Up ] [ First Applet ] [ First Application ] [ First Project ] [ Models ] [ Loader ] [ Keyframe ] [ Linear ] [ Torus Knot ] [ Pick Events ] [ Camera Events ] [ Color Selector ] [ Slider ] [ Ruler ] [ Vector Field ] [ Polygon Sets ] [ Scalar Field ] [ Ode ] [ Root Finder ] [ ParmSurface ] [ L-System ] [ Texture ] [ Refinement ] [ Images ] [ 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.