public static void writeTriangle ( ByteWriter writer , Triangle triangle ) throws IOException { writer . writeInt ( triangle . numRings ( ) ) ; for ( LineString ring : triangle . getRings ( ) ) { writeLineString ( writer , ring ) ; } }
Write a Triangle