Loading icosahedron/icosahedron_test.go +12 −14 Original line number Diff line number Diff line Loading @@ -21,18 +21,16 @@ func TestIcosahedron(t *testing.T) { } func TestIcosahedronSubdivide(t *testing.T) { ico0, _ := Create() ico1, _ := Subdivide(ico0) lsv1 := len(ico1.vs) lsf1 := len(ico1.fs) t.Logf("Subdivided Ico %d: %d vertices, %d faces", ico1.level, lsv1, lsf1) ico2, _ := Subdivide(ico1) lsv2 := len(ico2.vs) lsf2 := len(ico2.fs) t.Logf("Subdivided Ico %d: %d vertices, %d faces", ico2.level, lsv2, lsf2) const maxIter = 6 var ico *Icosahedron for i := 0; i < maxIter; i++ { if i == 0 { ico, _ = Create() } else { ico, _ = Subdivide(ico) } cv := len(ico.vs) cf := len(ico.fs) t.Logf("Icosahedron: subdivision %d, %d vertices, %d faces", ico.level, cv, cf) } } Loading
icosahedron/icosahedron_test.go +12 −14 Original line number Diff line number Diff line Loading @@ -21,18 +21,16 @@ func TestIcosahedron(t *testing.T) { } func TestIcosahedronSubdivide(t *testing.T) { ico0, _ := Create() ico1, _ := Subdivide(ico0) lsv1 := len(ico1.vs) lsf1 := len(ico1.fs) t.Logf("Subdivided Ico %d: %d vertices, %d faces", ico1.level, lsv1, lsf1) ico2, _ := Subdivide(ico1) lsv2 := len(ico2.vs) lsf2 := len(ico2.fs) t.Logf("Subdivided Ico %d: %d vertices, %d faces", ico2.level, lsv2, lsf2) const maxIter = 6 var ico *Icosahedron for i := 0; i < maxIter; i++ { if i == 0 { ico, _ = Create() } else { ico, _ = Subdivide(ico) } cv := len(ico.vs) cf := len(ico.fs) t.Logf("Icosahedron: subdivision %d, %d vertices, %d faces", ico.level, cv, cf) } }