Package | Description |
---|---|
de.jreality.geometry |
This package contains geometry related utilities.
|
de.jreality.scene |
This package contains the essential classes of the jReality scene graph.
|
de.jreality.scene.pick |
Support for picking, which is required for the package
de.jreality.scene.tool . |
de.jreality.tools |
Implementations of standard Tools.
|
de.jreality.tutorial.geom | |
de.jreality.util |
Miscellaneous jReality utilities used in the core packages.
|
de.jreality.writer |
Classes for writing various standard 3D file formats.
|
de.jreality.writer.u3d |
Modifier and Type | Field and Description |
---|---|
static IndexedFaceSet |
Primitives.sharedIcosahedron |
static IndexedFaceSet[] |
TubeUtility.urTube |
Modifier and Type | Method and Description |
---|---|
static IndexedFaceSet |
IndexedFaceSetUtility.binaryRefine(IndexedFaceSet ifs)
Only applicable for ifs all of whose faces are triangles; then
each triangle is broken into
four smaller triangles by bisecting the edges.
|
static IndexedFaceSet |
Primitives.box(double width,
double height,
double depth,
boolean colored)
Same as
#box(double, double, double, boolean, Pn.EUCLIDEAN) |
static IndexedFaceSet |
Primitives.box(double width,
double height,
double depth,
boolean colored,
int metric)
A box centered at the origin.
|
static IndexedFaceSet |
Primitives.coloredCube() |
static IndexedFaceSet |
Primitives.coloredCube(double width,
double height,
double depth)
Deprecated.
Use
#box(double, double, double, true) |
static IndexedFaceSet |
Primitives.coloredTetrahedron() |
static IndexedFaceSet |
Primitives.cone(int n)
a simple cone with tip at (0,0,1)
radius 1 on the XY axis
|
static IndexedFaceSet |
Primitives.cone(int n,
double h) |
static IndexedFaceSet |
IndexedFaceSetUtility.constructPolygon(double[][] points)
A simple constructor for an IndexedFaceSet with a single face.
|
static IndexedFaceSet |
IndexedFaceSetUtility.constructPolygon(IndexedFaceSetFactory ifsf,
double[][] points)
A simple constructor for an IndexedFaceSet with a single face.
|
static IndexedFaceSet |
IndexedFaceSetUtility.constructPolygon(IndexedFaceSetFactory ifsf,
double[][] points,
int sig) |
static IndexedFaceSet |
Primitives.cube() |
static IndexedFaceSet |
Primitives.cube(boolean colored)
A cube.
|
static IndexedFaceSet |
Primitives.cube(double width,
double height,
double depth)
Deprecated.
Use
#box(double, double, double, false) |
static IndexedFaceSet |
Primitives.cube(double width,
double height,
double depth,
boolean colored)
Deprecated.
|
static IndexedFaceSet |
Primitives.cube4(boolean colored)
A cube.
|
static IndexedFaceSet |
Primitives.cylinder(int n)
A unit euclidean cylinder approximated by a prism with nsides.
|
static IndexedFaceSet |
Primitives.cylinder(int n,
double r,
double zmin,
double zmax,
double thetamax)
A renderMan-style cylinder specification (implicitly euclidean)
|
static IndexedFaceSet |
Primitives.cylinder(int n,
double r,
double R,
double zmin,
double zmax,
double thetamax) |
static IndexedFaceSet |
Primitives.cylinder(int n,
double r,
double R,
double zmin,
double zmax,
double thetamax,
int res) |
static IndexedFaceSet |
IndexedFaceSetUtility.extractFace(IndexedFaceSet ifs,
int which) |
IndexedFaceSet |
FatIndexedFaceSetFactory.getBottomIFS()
The returned reference is final.
|
IndexedFaceSet |
AbstractIndexedFaceSetFactory.getIndexedFaceSet() |
IndexedFaceSet |
FatIndexedFaceSetFactory.getInputIFS() |
IndexedFaceSet |
QuadMeshFactory.getQuadMesh() |
IndexedFaceSet |
ThickenedSurfaceFactory.getSurface() |
IndexedFaceSet |
ThickenedSurfaceFactory.getThickenedSurface()
This returns the thickened surface.
|
IndexedFaceSet |
FatIndexedFaceSetFactory.getTopIFS()
The returned reference is final.
|
IndexedFaceSet |
PolygonalTubeFactory.getTube()
This returns the current state of the tube geometry, as of the last call to
PolygonalTubeFactory.update() . |
static IndexedFaceSet |
Primitives.icosahedron() |
static IndexedFaceSet |
IndexedFaceSetUtility.implode(IndexedFaceSet ifs,
double factor)
For each face of ifs, replace it with a face gotten by:
if factor > 0: a shrunken version of the face (factor == 1 gives original face), or
if factor < 0: a hole is cut out of the face, corresponding to the shrunken version with the
same absolute value.
|
IndexedFaceSet |
GeometryMergeFactory.mergeGeometrySets(SceneGraphComponent cmp)
merges all IndexedFaceSets, IndexeedLineSets and PointSets
of the given SceneGraph to one IndexedFaceSet
Attention: several values can be set bevorhand
|
IndexedFaceSet |
GeometryMergeFactory.mergeIndexedFaceSets(PointSet[] geo)
merges all IndexedFaceSets to one IndexedFaceSet
Attention: several values can be set bevorhand
|
IndexedFaceSet |
GeometryMergeFactory.mergeIndexedFaceSets(SceneGraphComponent cmp)
merges all IndexedFaceSets, IndexeedLineSets and PointSets
of the given SceneGraph to one IndexedFaceSet
EdgeAttributes will be ignored.
|
static IndexedFaceSet |
Primitives.openCube() |
static IndexedFaceSet |
Primitives.pyramid(double[][] base,
double[] tip)
A pyramid: a cone with vertex tip over the polygon base.
|
static IndexedFaceSet |
Primitives.regularAnnulus(int order,
double offset,
double r) |
static IndexedFaceSet |
Primitives.regularPolygon(int order)
Construct a regular polygon lying in the (x,y) plane, lying on the unit-circle there,
and having order edges.
|
static IndexedFaceSet |
Primitives.regularPolygon(int order,
double offset)
Construct a regular polygon lying in the (x,y) plane, lying on the unit-circle there,
and having order edges.
|
static IndexedFaceSet |
IndexedFaceSetUtility.removeTextureCoordinateJumps(IndexedFaceSet src,
double jumpSize)
A special purpose code for the Buddy-Baer project which might be useful for other situations
where texture coordinates wrap around.
|
static IndexedFaceSet |
IndexedFaceSetUtility.removeTextureCoordinateJumps(IndexedFaceSet src,
double ujumpSize,
double vjumpSize) |
static IndexedFaceSet |
IndexedFaceSetUtility.representAsSceneGraph(IndexedFaceSet exists,
Rectangle3D box)
Update the vertices of an existing IFS to match the state of box.
|
static IndexedFaceSet |
IndexedFaceSetUtility.representAsSceneGraph(Rectangle3D box)
Represent an instance of
Rectangle3D as an instance of IndexedFaceSet . |
static IndexedFaceSet |
BezierPatchMesh.representBezierPatchMeshAsQuadMesh(BezierPatchMesh bpm) |
static IndexedFaceSet |
Primitives.sphere(int detail)
Create a unit sphere centered at the origin
using latitude/longitude parametrization.
|
static IndexedFaceSet |
SphereUtility.sphericalPatch(double cU,
double cV,
double uSize,
double vSize,
int xDetail,
int yDetail,
double radius) |
static IndexedFaceSet[] |
IndexedFaceSetUtility.splitIfsToPrimitiveFaces(IndexedFaceSet ifs) |
static IndexedFaceSet |
SphereUtility.tessellatedIcosahedronSphere(int i) |
static IndexedFaceSet |
SphereUtility.tessellatedIcosahedronSphere(int i,
boolean sharedInstance)
Return a tessellated icosahedron of order i.
|
static IndexedFaceSet |
Primitives.tetrahedron() |
static IndexedFaceSet |
Primitives.tetrahedron(boolean colored)
A tetrahedron.
|
static IndexedFaceSet |
Primitives.texturedBox(double width,
double height,
double depth)
Generate a box with texture coordinates obtained from the vertex coordinates.
|
static IndexedFaceSet |
Primitives.texturedQuadrilateral() |
static IndexedFaceSet |
Primitives.texturedQuadrilateral(double[] points) |
static IndexedFaceSet |
Primitives.torus(double bR,
double sR,
int bDetail,
int sDetail)
Create a torus with the given parameters.
|
static IndexedFaceSet |
IndexedFaceSetUtility.triangulate(IndexedFaceSet fs)
Deprecated.
This mehtod may lead to an infinite loop. Use with care, or use the simpler method
IndexedFaceSetUtility.simpleTriangulate(IndexedFaceSet) . |
static IndexedFaceSet |
IndexedFaceSetUtility.triangulateRectangularPatch(double[][][] levels)
Generates a triangulated sphere from a given set of equally spaced longitude (theta) circles.
|
static IndexedFaceSet |
IndexedFaceSetUtility.truncate(IndexedFaceSet ifs)
Truncate the corners of each face of ifs.
|
Modifier and Type | Method and Description |
---|---|
List<IndexedFaceSet> |
FatIndexedFaceSetFactory.getBoundaryIFSs()
The returned reference is final.
|
Modifier and Type | Method and Description |
---|---|
static void |
IndexedFaceSetUtility.assignSmoothVertexNormals(IndexedFaceSet ifs,
double maxAngle,
int digits)
Averages the vertex normals for duplicate coordinates.
|
static void |
IndexedFaceSetUtility.assignSmoothVertexNormals(IndexedFaceSet ifs,
int digits)
Averages the vertex normals for duplicate coordinates.
|
static void |
IndexedFaceSetUtility.assignVertexTangents(IndexedFaceSet ifs) |
static IndexedFaceSet |
IndexedFaceSetUtility.binaryRefine(IndexedFaceSet ifs)
Only applicable for ifs all of whose faces are triangles; then
each triangle is broken into
four smaller triangles by bisecting the edges.
|
static void |
IndexedFaceSetUtility.calculateAndSetEdgesFromFaces(IndexedFaceSet ifs) |
static void |
GeometryUtility.calculateAndSetFaceNormals(IndexedFaceSet ifs)
Deprecated.
|
static void |
IndexedFaceSetUtility.calculateAndSetFaceNormals(IndexedFaceSet ifs) |
static void |
IndexedFaceSetUtility.calculateAndSetFaceNormals(IndexedFaceSet ifs,
int metric) |
static void |
GeometryUtility.calculateAndSetNormals(IndexedFaceSet ifs)
Deprecated.
|
static void |
IndexedFaceSetUtility.calculateAndSetNormals(IndexedFaceSet ifs) |
static void |
GeometryUtility.calculateAndSetVertexNormals(IndexedFaceSet ifs)
Deprecated.
|
static void |
IndexedFaceSetUtility.calculateAndSetVertexNormals(IndexedFaceSet ifs) |
static double[][] |
GeometryUtility.calculateFaceNormals(IndexedFaceSet ifs)
Deprecated.
|
static double[][] |
IndexedFaceSetUtility.calculateFaceNormals(IndexedFaceSet ifs) |
static double[][] |
GeometryUtility.calculateFaceNormals(IndexedFaceSet ifs,
int metric)
Deprecated.
|
static double[][] |
IndexedFaceSetUtility.calculateFaceNormals(IndexedFaceSet ifs,
int metric) |
static double[][] |
GeometryUtility.calculateVertexNormals(IndexedFaceSet ifs)
Deprecated.
|
static double[][] |
IndexedFaceSetUtility.calculateVertexNormals(IndexedFaceSet ifs) |
static double[][] |
GeometryUtility.calculateVertexNormals(IndexedFaceSet ifs,
int metric)
Deprecated.
|
static double[][] |
IndexedFaceSetUtility.calculateVertexNormals(IndexedFaceSet ifs,
int metric) |
static SceneGraphComponent |
IndexedFaceSetUtility.displayFaceNormals(IndexedFaceSet ifs,
double scale,
int metric)
Generates an instance of
IndexedLineSet which contains one line segment for each face normal of the
input ifs. |
static double[][] |
IndexedFaceSetUtility.extractEdge(double[][] curve,
IndexedFaceSet ifs,
int which)
Deprecated.
|
static IndexedFaceSet |
IndexedFaceSetUtility.extractFace(IndexedFaceSet ifs,
int which) |
static double[][] |
QuadMeshUtility.extractParameterCurve(double[][] curve,
IndexedFaceSet ifs,
int which,
int type)
Extracts the specified parameter curve from the quad mesh represented by ifs.
|
static double[][] |
QuadMeshUtility.extractUParameterCurve(double[][] curve,
IndexedFaceSet ifs,
int which) |
static double[][] |
IndexedFaceSetUtility.extractVerticesForFace(IndexedFaceSet ifs,
int which) |
static double[][] |
QuadMeshUtility.extractVParameterCurve(double[][] curve,
IndexedFaceSet ifs,
int which) |
static void |
QuadMeshUtility.generateAndSetEdgesFromQuadMesh(IndexedFaceSet qm) |
static IndexedFaceSet |
IndexedFaceSetUtility.implode(IndexedFaceSet ifs,
double factor)
For each face of ifs, replace it with a face gotten by:
if factor > 0: a shrunken version of the face (factor == 1 gives original face), or
if factor < 0: a hole is cut out of the face, corresponding to the shrunken version with the
same absolute value.
|
static boolean |
IndexedFaceSetUtility.makeConsistentOrientation(IndexedFaceSet ifs)
makes a consistent orientated version of the "face Indices" if possible.
|
static IndexedFaceSet |
IndexedFaceSetUtility.removeTextureCoordinateJumps(IndexedFaceSet src,
double jumpSize)
A special purpose code for the Buddy-Baer project which might be useful for other situations
where texture coordinates wrap around.
|
static IndexedFaceSet |
IndexedFaceSetUtility.removeTextureCoordinateJumps(IndexedFaceSet src,
double ujumpSize,
double vjumpSize) |
static IndexedFaceSet |
IndexedFaceSetUtility.representAsSceneGraph(IndexedFaceSet exists,
Rectangle3D box)
Update the vertices of an existing IFS to match the state of box.
|
void |
FatIndexedFaceSetFactory.setInputIFS(IndexedFaceSet inputIFS)
The
IndexedFaceSet to be fattened. |
void |
ThickenedSurfaceFactory.setSurface(IndexedFaceSet theSurface) |
static void |
IndexedFaceSetUtility.simpleTriangulate(IndexedFaceSet ifs)
Do a simple (dumb) triangulation of the indexed face set
Edit the input IFS; if you want a copy, make it before calling this method.
|
static IndexedFaceSet[] |
IndexedFaceSetUtility.splitIfsToPrimitiveFaces(IndexedFaceSet ifs) |
static IndexedFaceSet |
IndexedFaceSetUtility.triangulate(IndexedFaceSet fs)
Deprecated.
This mehtod may lead to an infinite loop. Use with care, or use the simpler method
IndexedFaceSetUtility.simpleTriangulate(IndexedFaceSet) . |
static void |
IndexedFaceSetUtility.triangulateBarycentric(IndexedFaceSet ifs) |
static IndexedFaceSet |
IndexedFaceSetUtility.truncate(IndexedFaceSet ifs)
Truncate the corners of each face of ifs.
|
Constructor and Description |
---|
ThickenedSurfaceFactory(IndexedFaceSet ifs) |
Modifier and Type | Method and Description |
---|---|
void |
SceneGraphVisitor.visit(IndexedFaceSet i) |
Modifier and Type | Method and Description |
---|---|
static AABBTree |
AABBTree.construct(IndexedFaceSet faceSet) |
static AABBTree |
AABBTree.construct(IndexedFaceSet faceSet,
int maxPolysPerLeaf) |
static void |
BruteForcePicking.intersectPolygons(IndexedFaceSet ifs,
int metric,
SceneGraphPath path,
Matrix m,
Matrix mInv,
double[] from,
double[] to,
ArrayList<Hit> hits) |
Modifier and Type | Method and Description |
---|---|
IndexedFaceSet |
FaceDragEvent.getIndexedFaceSet() |
Constructor and Description |
---|
FaceDragEvent(IndexedFaceSet faceSet,
int index,
double[] translation,
double[] position) |
Modifier and Type | Method and Description |
---|---|
static IndexedFaceSet |
QuadMeshExample.createSurface(int N) |
IndexedFaceSet |
TubeFactory02.tubedTorusKnot(double R,
double r,
double tubeRadius) |
Modifier and Type | Method and Description |
---|---|
static void |
LabelsOnCube.label(IndexedFaceSet ps) |
static void |
LabelsOnTorus.label(IndexedFaceSet ps) |
Modifier and Type | Method and Description |
---|---|
static void |
PickUtility.assignFaceAABBTree(IndexedFaceSet ifs) |
static void |
PickUtility.assignFaceAABBTree(IndexedFaceSet ifs,
int maxTrianglesPerBox) |
void |
CopyVisitor.copyAttr(IndexedFaceSet src,
IndexedFaceSet dst) |
void |
CopyVisitor.visit(IndexedFaceSet i) |
Modifier and Type | Method and Description |
---|---|
static int |
WriterOBJ.write(IndexedFaceSet ifs,
OutputStream out) |
static void |
WriterSTL.write(IndexedFaceSet ifs,
OutputStream out) |
static int |
WriterOBJ.write(IndexedFaceSet ifs,
OutputStream out,
int startVertex) |
static int |
WriterOBJ.write(IndexedFaceSet ifs,
OutputStream out,
int startVertex,
boolean writeEdgesOfFaceSet) |
static void |
WriterSTL.write(IndexedFaceSet ifs,
PrintWriter out) |
static int |
WriterOBJ.write(IndexedFaceSet ifs,
String groupName,
int startVertex,
OutputStream out) |
static void |
WriterSTL.writeSolid(IndexedFaceSet ifs,
OutputStream out) |
Modifier and Type | Class and Description |
---|---|
class |
U3DClosedCylinder |
Modifier and Type | Method and Description |
---|---|
static IndexedFaceSet |
U3DSceneUtility.prepareFaceSet(IndexedFaceSet ifs) |
Modifier and Type | Method and Description |
---|---|
static IndexedFaceSet |
U3DSceneUtility.prepareFaceSet(IndexedFaceSet ifs) |