public class ObjectFileCompressor
extends org.jogamp.java3d.loaders.objectfile.ObjectFile
Constructor and Description |
---|
ObjectFileCompressor() |
ObjectFileCompressor(int flags) |
ObjectFileCompressor(int flags,
float radians) |
Modifier and Type | Method and Description |
---|---|
org.jogamp.java3d.utils.geometry.compression.CompressedGeometryData |
compress(Reader reader)
Compress the specified .obj file into a CompressedGeometryData node
component.
|
void |
compress(Reader reader,
org.jogamp.java3d.utils.geometry.compression.CompressedGeometryFile file)
Compress the specified .obj file and add it to the end of an open
compressed geometry file.
|
org.jogamp.java3d.utils.geometry.compression.CompressedGeometryData |
compress(String objFileName)
Compress the specified .obj file into a CompressedGeometryData node
component.
|
void |
compress(String objFileName,
org.jogamp.java3d.utils.geometry.compression.CompressedGeometryFile file)
Compress the specified .obj file and add it to the end of an open
compressed geometry file.
|
org.jogamp.java3d.utils.geometry.compression.CompressedGeometryData |
compress(URL url)
Compress the specified .obj file into a CompressedGeometryData node
component.
|
void |
compress(URL url,
org.jogamp.java3d.utils.geometry.compression.CompressedGeometryFile file)
Compress the specified .obj file and add it to the end of an open
compressed geometry file.
|
void |
setFlags(int flags) |
void |
setQuantization(int positionQuant,
int colorQuant,
int normalQuant)
Set the position, normal, and color quantization values for compression.
|
public ObjectFileCompressor()
public ObjectFileCompressor(int flags)
public ObjectFileCompressor(int flags, float radians)
public void setFlags(int flags)
setFlags
in interface org.jogamp.java3d.loaders.Loader
setFlags
in class org.jogamp.java3d.loaders.objectfile.ObjectFile
public void setQuantization(int positionQuant, int colorQuant, int normalQuant)
positionQuant
- number of bits to quantize each position's X, Y,
and Z components, ranging from 1 to 16 with a default of 10colorQuant
- number of bits to quantize each color's R, G, B, and
alpha components, ranging from 2 to 16 with a default of 8normalQuant
- number of bits for quantizing each normal's U and V
components, ranging from 0 to 6 with a default of 3public org.jogamp.java3d.utils.geometry.compression.CompressedGeometryData compress(String objFileName)
objFileName
- String object representing the path to a .obj filepublic void compress(String objFileName, org.jogamp.java3d.utils.geometry.compression.CompressedGeometryFile file) throws IOException
objFileName
- String object representing the path to a .obj filefile
- a currently open CompressedGeometryFile objectIOException
- - if write failspublic org.jogamp.java3d.utils.geometry.compression.CompressedGeometryData compress(Reader reader)
reader
- an open .obj filepublic void compress(Reader reader, org.jogamp.java3d.utils.geometry.compression.CompressedGeometryFile file) throws IOException
reader
- an open .obj filefile
- an open CompressedGeometryFile objectIOException
- - if write failspublic org.jogamp.java3d.utils.geometry.compression.CompressedGeometryData compress(URL url)
url
- Uniform Resource Locator for the .obj filepublic void compress(URL url, org.jogamp.java3d.utils.geometry.compression.CompressedGeometryFile file) throws IOException
url
- Uniform Resource Locator for the .obj filefile
- a currently open CompressedGeometryFile objectIOException
- - if write failsCopyright © 2023. All rights reserved.