@ServiceProvider(value=MeshDecoder.class) public class MG1Decoder extends RawDecoder
| Modifier and Type | Field and Description |
|---|---|
static int |
MG1_TAG |
FORMAT_VERSION, RAW_TAG| Constructor and Description |
|---|
MG1Decoder() |
| Modifier and Type | Method and Description |
|---|---|
Mesh |
decode(MeshInfo minfo,
CtmInputStream in) |
boolean |
isFormatSupported(int tag,
int version) |
protected float[] |
readFloatArray(CtmInputStream in,
int count,
int size) |
protected int[] |
readIntArray(CtmInputStream in,
int count,
int size,
boolean signed) |
void |
restoreIndices(int triangleCount,
int[] indices) |
checkTagpublic Mesh decode(MeshInfo minfo, CtmInputStream in) throws IOException, BadFormatException, InvalidDataException
decode in interface MeshDecoderdecode in class RawDecoderIOExceptionBadFormatExceptionInvalidDataExceptionpublic boolean isFormatSupported(int tag,
int version)
isFormatSupported in interface MeshDecoderisFormatSupported in class RawDecoderprotected float[] readFloatArray(CtmInputStream in, int count, int size) throws IOException
readFloatArray in class RawDecoderIOExceptionprotected int[] readIntArray(CtmInputStream in, int count, int size, boolean signed) throws IOException
readIntArray in class RawDecoderIOExceptionpublic void restoreIndices(int triangleCount,
int[] indices)
Copyright © 2017. All rights reserved.