logo
Overview  First Applet  First Application   First Graph  First Project  Models  Loader  Keyframe  Linear Alg  Torus Knot  Picking  Camera Events  Color Selector  Slider  Ruler  Vector Field  Polygon Sets  Scalar Field   ODE  Root Finder  Parm Curve  Parm Surface  L-System  Texture  Refinement  4D Transform  Size Vertex  Size Polygon  Size Edge 

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.
© 1996-2013 Last modified: 07.05.2013 --- www.javaview.de --- The JavaView Project