public class GeometryUtility extends Object
There are a few basic categories:
IndexedFaceSet
instances,PointSet
instances, Modifier and Type | Field and Description |
---|---|
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
|
static String |
QUAD_MESH_SHAPE
For identifying this IndexedFaceSet as a QuadMesh;
Value:
Dimension . |
Modifier and Type | Method and Description |
---|---|
static void |
calculateAndSetFaceNormals(IndexedFaceSet ifs)
Deprecated.
|
static void |
calculateAndSetNormals(IndexedFaceSet ifs)
Deprecated.
|
static void |
calculateAndSetVertexNormals(IndexedFaceSet ifs)
Deprecated.
|
static Rectangle3D |
calculateBoundingBox(double[][] verts)
Deprecated.
|
static Rectangle3D |
calculateBoundingBox(double[] initialMatrix,
SceneGraphComponent sgc)
Deprecated.
|
static Rectangle3D |
calculateBoundingBox(PointSet ps)
Deprecated.
|
static Rectangle3D |
calculateBoundingBox(SceneGraphComponent sgc)
Deprecated.
|
static Rectangle3D |
calculateBoundingBox(Sphere sph)
Deprecated.
Use
BoundingBoxUtility.calculateBoundingBox(Sphere) instead |
static Rectangle3D |
calculateChildrenBoundingBox(SceneGraphComponent sgc)
Deprecated.
|
static double[][] |
calculateFaceNormals(IndexedFaceSet ifs)
Deprecated.
|
static double[][] |
calculateFaceNormals(IndexedFaceSet ifs,
int metric)
Deprecated.
|
static double[][] |
calculateFaceNormals(int[][] indices,
double[][] verts,
int metric)
Deprecated.
|
static void |
calculateFaceNormals(SceneGraphComponent c)
Deprecated.
|
static double[][] |
calculateVertexNormals(IndexedFaceSet ifs)
Deprecated.
|
static double[][] |
calculateVertexNormals(IndexedFaceSet ifs,
int metric)
Deprecated.
|
static double[][] |
calculateVertexNormals(int[][] indices,
double[][] vertsAs2D,
double[][] fn,
int metric)
Deprecated.
|
static void |
calculateVertexNormals(SceneGraphComponent c)
Deprecated.
|
static SceneGraphComponent |
flatten(SceneGraphComponent sgc)
Deprecated.
Use
SceneGraphUtility.flatten(SceneGraphComponent) instead |
static SceneGraphComponent |
flatten(SceneGraphComponent sgc,
boolean rejectInvis)
Deprecated.
|
static AbstractGeometryFactory |
getFactory(Geometry g) |
static int |
getMetric(Geometry g) |
static int |
getVectorLength(DataList ps)
Find out the length of the first element of this
DataList . |
static int |
getVectorLength(PointSet ps)
Find out the length of the coordinates for a single vertex of this
PointSet . |
static void |
setFactory(Geometry g,
AbstractGeometryFactory fac)
Set the geometry attribute
FACTORY to the given factory,
which may be null. |
static void |
setMetric(Geometry g,
int s)
Set the metric (
Pn ) associated to this geometry. |
public static String BOUNDING_BOX
Rectangle3D
.Geometry#setGeometryAttributes(Attribute, Object).
public static String QUAD_MESH_SHAPE
Dimension
.Geometry#setGeometryAttributes(Attribute, Object).
,
QuadMeshFactory
public static String HEIGHT_FIELD_SHAPE
Rectangle2D
identifies the 2D domain.Geometry#setGeometryAttributes(Attribute, Object).
,
HeightFieldFactory
public static String METRIC
Geometry#setGeometryAttributes(Attribute, Object).
public static String FACTORY
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)
insteadpublic static Rectangle3D calculateBoundingBox(double[][] verts)
BoundingBoxUtility.calculateBoundingBox(double[][])
insteadpublic static Rectangle3D calculateBoundingBox(PointSet ps)
BoundingBoxUtility.calculateBoundingBox(PointSet)
insteadpublic static Rectangle3D calculateBoundingBox(SceneGraphComponent sgc)
BoundingBoxUtility.calculateBoundingBox(SceneGraphComponent)
insteadpublic static Rectangle3D calculateBoundingBox(Sphere sph)
BoundingBoxUtility.calculateBoundingBox(Sphere)
insteadpublic static Rectangle3D calculateChildrenBoundingBox(SceneGraphComponent sgc)
BoundingBoxUtility.calculateChildrenBoundingBox(SceneGraphComponent)
insteadpublic static void calculateAndSetFaceNormals(IndexedFaceSet ifs)
IndexedFaceSetUtility.calculateAndSetFaceNormals(IndexedFaceSet)
insteadpublic static void calculateAndSetNormals(IndexedFaceSet ifs)
IndexedFaceSetUtility.calculateAndSetNormals(IndexedFaceSet)
insteadpublic static void calculateAndSetVertexNormals(IndexedFaceSet ifs)
IndexedFaceSetUtility.calculateAndSetVertexNormals(IndexedFaceSet)
insteadpublic static double[][] calculateFaceNormals(IndexedFaceSet ifs)
IndexedFaceSetUtility.calculateFaceNormals(IndexedFaceSet)
insteadpublic static double[][] calculateFaceNormals(IndexedFaceSet ifs, int metric)
IndexedFaceSetUtility.calculateFaceNormals(IndexedFaceSet,int)
insteadpublic static double[][] calculateFaceNormals(int[][] indices, double[][] verts, int metric)
IndexedFaceSetUtility.calculateFaceNormals(int[][],double[][],int)
insteadpublic static void calculateFaceNormals(SceneGraphComponent c)
IndexedFaceSetUtility.calculateFaceNormals(SceneGraphComponent)
insteadpublic static double[][] calculateVertexNormals(IndexedFaceSet ifs)
IndexedFaceSetUtility.calculateVertexNormals(IndexedFaceSet)
insteadpublic static double[][] calculateVertexNormals(IndexedFaceSet ifs, int metric)
IndexedFaceSetUtility.calculateVertexNormals(IndexedFaceSet,int)
insteadpublic static double[][] calculateVertexNormals(int[][] indices, double[][] vertsAs2D, double[][] fn, int metric)
IndexedFaceSetUtility.calculateVertexNormals(int[][],double[][],double[][],int)
insteadpublic static void calculateVertexNormals(SceneGraphComponent c)
IndexedFaceSetUtility.calculateVertexNormals(SceneGraphComponent)
insteadpublic static SceneGraphComponent flatten(SceneGraphComponent sgc)
SceneGraphUtility.flatten(SceneGraphComponent)
insteadpublic static SceneGraphComponent flatten(SceneGraphComponent sgc, boolean rejectInvis)
SceneGraphUtility.flatten(SceneGraphComponent,boolean)
instead