de.jreality.geometry
Class TubeUtility

java.lang.Object
  extended by de.jreality.geometry.TubeUtility

public class TubeUtility
extends Object

Static methods related to tubing. Also defines a class TubeUtility.FrameInfo which is fundamental for the mathematical implementation presented here.

Author:
Charles Gunn
See Also:
TubeFactory, PolygonalTubeFactory

Nested Class Summary
static class TubeUtility.FrameInfo
          This class provides information about a frame field at a given point of a curve in 3-space (not necessarily euclidean!).
 
Field Summary
static double[][] canonicalTranslation
           
static double[][] diamondCrossSection
           
static double[][] octagonalCrossSection
           
static IndexedFaceSet[] urTube
           
 
Method Summary
static void calculateAndSetNormalVectorsForCurve(IndexedLineSet ils)
           
static SceneGraphComponent tubeOneEdge(double[] ip1, double[] ip2, double rad, double[][] crossSection, int signature)
           
static SceneGraphComponent tubeOneEdge(SceneGraphComponent sgc, double[] ip1, double[] ip2, double rad, double[][] crossSection, int signature)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

diamondCrossSection

public static double[][] diamondCrossSection

octagonalCrossSection

public static double[][] octagonalCrossSection

urTube

public static IndexedFaceSet[] urTube

canonicalTranslation

public static double[][] canonicalTranslation
Method Detail

tubeOneEdge

public static SceneGraphComponent tubeOneEdge(double[] ip1,
                                              double[] ip2,
                                              double rad,
                                              double[][] crossSection,
                                              int signature)
Parameters:
ip1 -
ip2 -
rad -
crossSection -
signature -
Returns:

tubeOneEdge

public static SceneGraphComponent tubeOneEdge(SceneGraphComponent sgc,
                                              double[] ip1,
                                              double[] ip2,
                                              double rad,
                                              double[][] crossSection,
                                              int signature)

calculateAndSetNormalVectorsForCurve

public static void calculateAndSetNormalVectorsForCurve(IndexedLineSet ils)