Package com.io7m.smfj.serializer.api

## Interface SMFSerializerDataTrianglesType

- All Superinterfaces:
    `java.lang.AutoCloseable`, `java.io.Closeable`
  All Known Implementing Classes:
    `Triangles`, `Triangles8`, `WriterBETriangles16`, `WriterBETriangles32`, `WriterBETriangles64`, `WriterLETriangles16`, `WriterLETriangles32`, `WriterLETriangles64`

      public interface SMFSerializerDataTrianglesType
      extends java.io.Closeable

  Functions for serializing triangles.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `serializeTriangle​(long v0, long v1, long v2)` | Serialize a triangle.

    - ### Methods inherited from interface java.io.Closeable

      `close`

- - ### Method Detail

    - #### serializeTriangle

          void serializeTriangle​(long v0,
                                 long v1,
                                 long v2)
                          throws java.io.IOException,
                                 java.lang.IllegalStateException

      Serialize a triangle.
      Parameters:
        `v0` - The first vertex index
        `v1` - The second vertex index
        `v2` - The third vertex index
      Throws:
        `java.lang.IllegalStateException` - If the header has not yet been serialized
        `java.lang.IllegalStateException` - If the attribute has not yet been serialized
        `java.lang.IllegalStateException` - If the required number of triangles have already been serialized
        `java.lang.IllegalStateException` - If the serializer has previously failed
        `java.io.IOException` - On I/O errors