de.jreality.geometry
Class IndexedLineSetUtility
java.lang.Object
de.jreality.geometry.IndexedLineSetUtility
public class IndexedLineSetUtility
- extends Object
Static methods for constructing, extracting, and modifying
instances of IndexedLineSet
.
- Author:
- Charles Gunn
IndexedLineSetUtility
for more ways to specify instances of IndexedLineSet
.
Method Summary |
static IndexedLineSet |
circle(int n)
|
static IndexedLineSet |
circle(int n,
double cx,
double cy,
double r)
|
static IndexedLineSetFactory |
circleFactory(int n,
double cx,
double cy,
double r)
|
static IndexedLineSetFactory |
createCurveFactoryFromPoints(double[][] points,
boolean closed)
|
static IndexedLineSet |
createCurveFromPoints(double[][] points,
boolean closed)
|
static IndexedLineSet |
createCurveFromPoints(double[] points,
int fiber,
boolean closed)
|
static IndexedLineSet |
createCurveFromPoints(IndexedLineSet g,
double[][] points,
boolean closed)
|
static IndexedLineSet |
createCurveFromPoints(IndexedLineSet g,
double[] points,
int fiber,
boolean closed)
|
static IndexedLineSet |
createCurveFromPoints(IndexedLineSet g,
double[] points,
int fiber,
int[][] indices)
|
static double[][] |
extractCurve(double[][] curve,
IndexedLineSet ils,
int i)
|
static double[][] |
extractCurveColors(double[][] curve,
IndexedLineSet ils,
int i)
|
static double[] |
extractRadii(double[] curve,
IndexedLineSet ils,
int i)
|
static IndexedLineSet |
refine(IndexedLineSet ils,
int n)
|
refine
public static IndexedLineSet refine(IndexedLineSet ils,
int n)
extractCurve
public static double[][] extractCurve(double[][] curve,
IndexedLineSet ils,
int i)
- Parameters:
curve
- ils
- i
-
- Returns:
extractCurveColors
public static double[][] extractCurveColors(double[][] curve,
IndexedLineSet ils,
int i)
extractRadii
public static double[] extractRadii(double[] curve,
IndexedLineSet ils,
int i)
createCurveFromPoints
public static IndexedLineSet createCurveFromPoints(double[][] points,
boolean closed)
createCurveFromPoints
public static IndexedLineSet createCurveFromPoints(IndexedLineSet g,
double[][] points,
boolean closed)
createCurveFactoryFromPoints
public static IndexedLineSetFactory createCurveFactoryFromPoints(double[][] points,
boolean closed)
- Parameters:
points
- closed
-
- Returns:
createCurveFromPoints
public static IndexedLineSet createCurveFromPoints(double[] points,
int fiber,
boolean closed)
createCurveFromPoints
public static IndexedLineSet createCurveFromPoints(IndexedLineSet g,
double[] points,
int fiber,
int[][] indices)
createCurveFromPoints
public static IndexedLineSet createCurveFromPoints(IndexedLineSet g,
double[] points,
int fiber,
boolean closed)
circle
public static IndexedLineSet circle(int n,
double cx,
double cy,
double r)
circleFactory
public static IndexedLineSetFactory circleFactory(int n,
double cx,
double cy,
double r)
circle
public static IndexedLineSet circle(int n)