|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jreality.geometry.GeometryUtility
public class GeometryUtility
Static methods for various geometric operations.
There are a few basic categories:
IndexedFaceSet instances,PointSet instances,
| Field Summary | |
|---|---|
static String |
BOUNDING_BOX
For setting the bounding box of the geometry; Value: Rectangle3D. |
static String |
FACTORY
|
static String |
HEIGHT_FIELD_SHAPE
For identifying this IndexedFaceSet as a QuadMesh with a single value at each point (z-value on a regular x-y 2D domain); Value: Rectangle2D identifies the 2D domain. |
static String |
METRIC
For setting the metric ( Pn) of the geometry;
Value: Integer |
static String |
QUAD_MESH_SHAPE
For identifying this IndexedFaceSet as a QuadMesh; Value: Dimension. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String BOUNDING_BOX
Rectangle3D.
Geometry#setGeometryAttributes(Attribute, Object).public static String QUAD_MESH_SHAPE
Dimension.
Geometry#setGeometryAttributes(Attribute, Object).,
QuadMeshFactorypublic static String HEIGHT_FIELD_SHAPE
Rectangle2D identifies the 2D domain.
Geometry#setGeometryAttributes(Attribute, Object).,
HeightFieldFactorypublic static String METRIC
Pn) of the geometry;
Value: Integer
Geometry#setGeometryAttributes(Attribute, Object).public static String FACTORY
| Method Detail |
|---|
public static int getMetric(Geometry g)
public static AbstractGeometryFactory getFactory(Geometry g)
public static void setFactory(Geometry g,
AbstractGeometryFactory fac)
FACTORY to the given factory,
which may be null.
g - fac -
public static void setMetric(Geometry g,
int s)
Pn) associated to this geometry.
g - s - public static int getVectorLength(DataList ps)
DataList.
ps -
public static int getVectorLength(PointSet ps)
PointSet.
ps -
public static Rectangle3D calculateBoundingBox(double[] initialMatrix,
SceneGraphComponent sgc)
BoundingBoxUtility.calculateBoundingBox(double[],SceneGraphComponent) instead
public static Rectangle3D calculateBoundingBox(double[][] verts)
BoundingBoxUtility.calculateBoundingBox(double[][]) instead
public static Rectangle3D calculateBoundingBox(PointSet ps)
BoundingBoxUtility.calculateBoundingBox(PointSet) instead
public static Rectangle3D calculateBoundingBox(SceneGraphComponent sgc)
BoundingBoxUtility.calculateBoundingBox(SceneGraphComponent) instead
public static Rectangle3D calculateBoundingBox(Sphere sph)
BoundingBoxUtility.calculateBoundingBox(Sphere) instead
public static Rectangle3D calculateChildrenBoundingBox(SceneGraphComponent sgc)
BoundingBoxUtility.calculateChildrenBoundingBox(SceneGraphComponent) instead
public static void calculateAndSetFaceNormals(IndexedFaceSet ifs)
IndexedFaceSetUtility.calculateAndSetFaceNormals(IndexedFaceSet) instead
public static void calculateAndSetNormals(IndexedFaceSet ifs)
IndexedFaceSetUtility.calculateAndSetNormals(IndexedFaceSet) instead
public static void calculateAndSetVertexNormals(IndexedFaceSet ifs)
IndexedFaceSetUtility.calculateAndSetVertexNormals(IndexedFaceSet) instead
public static double[][] calculateFaceNormals(IndexedFaceSet ifs)
IndexedFaceSetUtility.calculateFaceNormals(IndexedFaceSet) instead
public static double[][] calculateFaceNormals(IndexedFaceSet ifs,
int metric)
IndexedFaceSetUtility.calculateFaceNormals(IndexedFaceSet,int) instead
public static double[][] calculateFaceNormals(int[][] indices,
double[][] verts,
int metric)
IndexedFaceSetUtility.calculateFaceNormals(int[][],double[][],int) instead
public static void calculateFaceNormals(SceneGraphComponent c)
IndexedFaceSetUtility.calculateFaceNormals(SceneGraphComponent) instead
public static double[][] calculateVertexNormals(IndexedFaceSet ifs)
IndexedFaceSetUtility.calculateVertexNormals(IndexedFaceSet) instead
public static double[][] calculateVertexNormals(IndexedFaceSet ifs,
int metric)
IndexedFaceSetUtility.calculateVertexNormals(IndexedFaceSet,int) instead
public static double[][] calculateVertexNormals(int[][] indices,
double[][] vertsAs2D,
double[][] fn,
int metric)
IndexedFaceSetUtility.calculateVertexNormals(int[][],double[][],double[][],int) instead
public static void calculateVertexNormals(SceneGraphComponent c)
IndexedFaceSetUtility.calculateVertexNormals(SceneGraphComponent) instead
public static SceneGraphComponent flatten(SceneGraphComponent sgc)
SceneGraphUtility.flatten(SceneGraphComponent) instead
public static SceneGraphComponent flatten(SceneGraphComponent sgc,
boolean rejectInvis)
SceneGraphUtility.flatten(SceneGraphComponent,boolean) instead
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||