Computer Graphics
Børre Stenseth
JOGL>Pipe

Pipe

What

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
  • The project: https://svnit.hiof.no/svn/psource/JOGL/pipe
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
Maintainance
December 2011, B Stenseth
JOGL>Pipe
til toppen