| java.lang.Object com.sun.j3d.utils.geometry.compression.CompressionStreamElement com.sun.j3d.utils.geometry.compression.CompressionStreamNormal
CompressionStreamNormal | class CompressionStreamNormal extends CompressionStreamElement (Code) | | This class represents a normal in a compression stream. It maintains both
floating-point and quantized representations. This normal may be bundled
with a vertex or exist separately as a global normal.
|
octantsextant | int octantsextant(Code) | | |
specialNormal | boolean specialNormal(Code) | | |
uAbsolutevAbsolute | int uAbsolutevAbsolute(Code) | | |
CompressionStreamNormal | CompressionStreamNormal(CompressionStream stream, Vector3f normal)(Code) | | Create a CompressionStreamNormal.
Parameters: stream - CompressionStream associated with this element Parameters: normal - floating-point representation to be encoded |
outputCommand | void outputCommand(HuffmanTable table, CommandStream output)(Code) | | Output a setNormal command.
Parameters: table - HuffmanTable mapping quantized representations tocompressed encodings Parameters: output - CommandStream for collecting compressed output |
outputSubcommand | void outputSubcommand(HuffmanTable table, CommandStream output)(Code) | | Output a normal subcommand.
Parameters: table - HuffmanTable mapping quantized representations tocompressed encodings Parameters: output - CommandStream for collecting compressed output |
quantize | void quantize(CompressionStream stream, HuffmanTable huffmanTable)(Code) | | Quantize the floating point normal to a 6-bit octant/sextant plus u,v
components of [0..6] bits. Full resolution is 18 bits and the minimum
is 6 bits.
Parameters: stream - CompressionStream associated with this element Parameters: table - HuffmanTable for collecting data about the quantizedrepresentation of this element |
|
|