de.jreality.geometry
Class QuadMeshUtility
java.lang.Object
de.jreality.geometry.QuadMeshUtility
public class QuadMeshUtility
- extends java.lang.Object
Static methods applicable to quad meshes. In
jReality, quad meshes are indentified as instances of IndexedFaceSet
which have a non-null Attribute
with
key GeometryUtility.QUAD_MESH_SHAPE
.
These methods support extracting given u or v parameter curves.
- Author:
- Charles Gunn
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
extractUParameterCurve
public static double[][] extractUParameterCurve(double[][] curve,
IndexedFaceSet ifs,
int which)
extractVParameterCurve
public static double[][] extractVParameterCurve(double[][] curve,
IndexedFaceSet ifs,
int which)
extractParameterCurve
public static double[][] extractParameterCurve(double[][] curve,
IndexedFaceSet ifs,
int which,
int type)
- Extracts the specified parameter curve from the quad mesh represented by ifs.
- Parameters:
curve
- where to store the output curve; null OKifs
- the quad meshwhich
- the index of the curve to extracttype
- 0: extract curve for fixed u-value; 1: fixed v-value
- Returns:
- the extracted curve
generateAndSetEdgesFromQuadMesh
public static void generateAndSetEdgesFromQuadMesh(IndexedFaceSet qm)