Here we explore, test, and correct code written earlier for enumerating pants decompositions. A component to illustrate these has been added
import $cp.bin.`superficial-bc0a778606.jar`
import superficial._
import superficial._
We enumerate all the pants decompositions with 2 pairs of pants, i.e., for surfaces of genus 2, up to isomorphism. There are two such decompositions.
val genus2 = PantsSurface.allClosed(2).toVector
genus2.size
val Vector(surf1, surf2) = genus2
We now make pictures for these. First we generate these as svg
using scala.xml
val pics = genus2.map(SvgPlot.plotPantsSurface)
Now we can view them.
import almond.interpreter.api._
val picData = pics.map(p => DisplayData.svg(p.toString))
display(picData(0))
display(picData(1))