Class GeometryHeader
java.lang.Object
org.web3d.vrml.export.compressors.GeometryHeader
-
Constructor Summary
ConstructorsConstructorDescriptionGeometryHeader
(float scale, float[] bounds, boolean hasCoordinates, boolean hasNormals, boolean hasColors, boolean hasTexCoords) -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(int[] buffer, int start) Decode this header from a buffer.void
encode
(int[] buffer, int start) Encode this header into a buffer.float[]
float
getScale()
static int
getSize()
Get the size of the header in ints.boolean
Does this model contain normals.toString()
-
Constructor Details
-
GeometryHeader
public GeometryHeader() -
GeometryHeader
public GeometryHeader(float scale, float[] bounds, boolean hasCoordinates, boolean hasNormals, boolean hasColors, boolean hasTexCoords)
-
-
Method Details
-
getSize
public static int getSize()Get the size of the header in ints. Right now this must be int aligned.- Returns:
- The size in bytes
-
encode
public void encode(int[] buffer, int start) Encode this header into a buffer.- Parameters:
buffer
- The buffer to encode tostart
- The starting index to encode to
-
decode
public void decode(int[] buffer, int start) Decode this header from a buffer.- Parameters:
buffer
- The buffer to decode fromstart
- The starting index to decode from
-
hasNormals
public boolean hasNormals()Does this model contain normals.- Returns:
- Does it contain normals
-
getBounds
public float[] getBounds() -
getScale
public float getScale() -
toString
-