In [1]:
import $cp.bin.`superficial-6e8d6f844e.jar`
import superficial._
Out[1]:
import $cp.$                               

import superficial._
In [2]:
case object V extends Vertex
Out[2]:
defined object V
In [3]:
val a = new EdgePair(V, V)
Out[3]:
a: EdgePair = superficial.EdgePair@60e043ba
In [4]:
val b = new EdgePair(V, V)
Out[4]:
b: EdgePair = superficial.EdgePair@5b92fcce
In [5]:
a != b
Out[5]:
res4: Boolean = true
In [6]:
case object TorusFaces extends Polygon{
  val boundary: Vector[superficial.Edge] = 
    Vector(a.Positive, b.Positive, a.Negative, b.Negative)
  val sides: Int = 4
  val vertices: Set[superficial.Vertex] = Set(V)
}
Out[6]:
defined object TorusFaces
In [ ]: