CompressionStream
.public class CompressionStream extends Object
GeometryCompressor
Constructor and Description |
---|
CompressionStream(GeometryInfo[] geometry)
Deprecated.
Creates a CompressionStream from an array of GeometryInfo objects.
|
CompressionStream(int positionQuant,
int colorQuant,
int normalQuant,
GeometryInfo[] geometry)
Deprecated.
Creates a CompressionStream from an array of GeometryInfo objects.
|
CompressionStream(int positionQuant,
int colorQuant,
int normalQuant,
Shape3D[] shapes)
Deprecated.
Creates a CompressionStream from an array of Shape3D scene graph
objects.
|
CompressionStream(Shape3D[] shapes)
Deprecated.
Creates a CompressionStream from an array of Shape3D scene graph
objects.
|
Modifier and Type | Method and Description |
---|---|
Point3d[] |
getModelBounds()
Deprecated.
Get the original bounds of the coordinate data, in modeling coordinates.
|
Point3d[] |
getNormalizedBounds()
Deprecated.
Get the bounds of the compressed object in normalized coordinates.
|
public CompressionStream(int positionQuant, int colorQuant, int normalQuant, Shape3D[] shapes)
Each Shape3D in the array must be of the same dimensionality (point, line, or surface) and have the same vertex format as the others. Texture coordinates are ignored.
If a color is specified in the material attributes for a Shape3D then that color is added to the CompressionStream as the current global color. Subsequent colors as well as any colors bundled with vertices will override it. Only the material diffuse colors are used; all other appearance attributes are ignored.
positionQuant
- number of bits to quantize each position's X, Y,
and Z components, ranging from 1 to 16colorQuant
- number of bits to quantize each color's R, G, B, and
alpha components, ranging from 2 to 16normalQuant
- number of bits for quantizing each normal's U and V components, ranging
from 0 to 6shapes
- an array of Shape3D scene graph objects containing
GeometryArray objects, all with the same vertex format and
dimensionalityIllegalArgumentException
- if any Shape3D has an inconsistent
dimensionality or vertex format, or if any Shape3D contains a geometry
component that is not a GeometryArrayShape3D
,
GeometryArray
,
GeometryCompressor
public CompressionStream(Shape3D[] shapes)
Each Shape3D in the array must be of the same dimensionality (point, line, or surface) and have the same vertex format as the others. Texture coordinates are ignored.
If a color is specified in the material attributes for a Shape3D then that color is added to the CompressionStream as the current global color. Subsequent colors as well as any colors bundled with vertices will override it. Only the material diffuse colors are used; all other appearance attributes are ignored.
Defaults of 16, 9, and 6 bits are used as the quantization values for positions, colors, and normals respectively. These are the maximum resolution values defined for positions and normals; the default of 9 for color is the equivalent of the 8 bits of RGBA component resolution commonly available in graphics frame buffers.
shapes
- an array of Shape3D scene graph objects containing
GeometryArray objects, all with the same vertex format and
dimensionality.IllegalArgumentException
- if any Shape3D has an inconsistent
dimensionality or vertex format, or if any Shape3D contains a geometry
component that is not a GeometryArrayShape3D
,
GeometryArray
,
GeometryCompressor
public CompressionStream(int positionQuant, int colorQuant, int normalQuant, GeometryInfo[] geometry)
Each GeometryInfo in the array must be of the same dimensionality (point, line, or surface) and have the same vertex format as the others. Texture coordinates are ignored.
positionQuant
- number of bits to quantize each position's X, Y,
and Z components, ranging from 1 to 16colorQuant
- number of bits to quantize each color's R, G, B, and
alpha components, ranging from 2 to 16normalQuant
- number of bits for quantizing each normal's U and V components, ranging
from 0 to 6geometry
- an array of GeometryInfo objects, all with the same
vertex format and dimensionalityIllegalArgumentException
- if any GeometryInfo object has an
inconsistent dimensionality or vertex formatGeometryInfo
,
GeometryCompressor
public CompressionStream(GeometryInfo[] geometry)
Each GeometryInfo in the array must be of the same dimensionality (point, line, or surface) and have the same vertex format as the others. Texture coordinates are ignored.
Defaults of 16, 9, and 6 bits are used as the quantization values for positions, colors, and normals respectively. These are the maximum resolution values defined for positions and normals; the default of 9 for color is the equivalent of the 8 bits of RGBA component resolution commonly available in graphics frame buffers.
geometry
- an array of GeometryInfo objects, all with the same
vertex format and dimensionalityIllegalArgumentException
- if any GeometryInfo object has an
inconsistent dimensionality or vertex formatGeometryInfo
,
GeometryCompressor
public Point3d[] getModelBounds()
public Point3d[] getNormalizedBounds()
Copyright © 2016–2022 SciJava. All rights reserved.