de.jreality.geometry
Class TubeUtility
java.lang.Object
de.jreality.geometry.TubeUtility
public class TubeUtility
- extends java.lang.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!). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
diamondCrossSection
public static double[][] diamondCrossSection
octagonalCrossSection
public static double[][] octagonalCrossSection
urTube
public static IndexedFaceSet[] urTube
canonicalTranslation
public static double[][] canonicalTranslation
tubeOneEdge
public static SceneGraphComponent tubeOneEdge(double[] ip1,
double[] ip2,
double rad,
double[][] crossSection,
int metric)
- Parameters:
ip1
- ip2
- rad
- crossSection
- metric
-
- Returns:
tubeOneEdge
public static SceneGraphComponent tubeOneEdge(SceneGraphComponent sgc,
double[] ip1,
double[] ip2,
double rad,
double[][] crossSection,
int metric)
calculateAndSetNormalVectorsForCurve
public static void calculateAndSetNormalVectorsForCurve(IndexedLineSet ils)