public enum ELcdOGC3DTilesMeshCompressionType extends Enum<ELcdOGC3DTilesMeshCompressionType>
TLcdOGC3DTilesModelEncoder.setMeshCompression(com.luciad.format.tiled3d.ogc3dtiles.ELcdOGC3DTilesMeshCompressionType)
Enum Constant and Description |
---|
DRACO
Draco mesh compression.
|
NONE
No mesh compression
|
Modifier and Type | Method and Description |
---|---|
static ELcdOGC3DTilesMeshCompressionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ELcdOGC3DTilesMeshCompressionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ELcdOGC3DTilesMeshCompressionType NONE
public static final ELcdOGC3DTilesMeshCompressionType DRACO
The Google Draco library is an open-source royalty-free library offering compression for 3D graphics. The library was extended for GLTF 2.0 by Khronos.
Draco mesh compression can significantly reduce the size of 3D content: it compresses vertex positions, normals, texture coordinates, colors, and other generic properties. This reduces the size of the B3DM files inside the OGC 3D Tiles dataset, which leads to faster streaming. The client in which you want to visualize the data needs to support Draco compression. It will decompress the data at runtime.
Although the time to decode the tiles increases, the time to stream the tiles decreases more, resulting in an overall reduction of load times. The maximum error for the resulting mesh is less than 1mm.
public static ELcdOGC3DTilesMeshCompressionType[] values()
for (ELcdOGC3DTilesMeshCompressionType c : ELcdOGC3DTilesMeshCompressionType.values()) System.out.println(c);
public static ELcdOGC3DTilesMeshCompressionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null