Example #1
0
File: mm3ddump.go Project: iand/go
func printVertices(model *mm3dmodel.Model) {
	fmt.Printf("Vertices (%d):\n", model.NVertices())
	for i := 0; i < model.NVertices(); i++ {
		vertex := model.Vertex(i)
		fmt.Printf("  %4d: Flags: 0x%04X  (%.3f, %.3f, %.3f)\n", i, vertex.Flags(), vertex.X(),
			vertex.Y(), vertex.Z())
	}

	if model.NVertices() == 0 {
		fmt.Printf("  None\n\n")
	} else {
		fmt.Printf("\n")
	}
}