Børre Stenseth
JOGL>Pipe

Pipe

What
Ceci n'est pas une image d'un pipe

The pipe is inspired by the famous painting of René Magritte [1] : "Ceci n'est pas une pipe".

Geometry

pipescreenshot

The pipe is described by three cubic Bezier functions, and the drawing is made using Frenet Frames [2] .

The main pipeshape is described with an axis in YZ-plane, and the ovals describing the thickness along the main outline is described with two Beziers, one for X and one for Y.

_init

v3d is a simple utility class for handling vectors, crossproduct, matrixmultiplication etc.

The bezierfunctions are handled with a simple class:

_bezier.java

The points and the normals on the pipebody is calculated as Frenet Frames. The method that generates the pipeshape is:

_construct

We use the buffered data to draw the shape

_draw
References
  1. Rene MagritteWikipediaen.wikipedia.org/wiki/Ren%C3%A9_Magritte24-05-2011
  1. Calculation of Reference Frames along a Space CurveJules Bloomenthalwebhome.cs.uvic.ca/~blob/courses/305/notes/pdf/ref-frames.pdf24-05-2011
  • The project: https://svn.hiof.no/svn/psource/JOGL/pipe
Maintainance
December 2011, B Stenseth
(Welcome) JOGL>Pipe (Index)