       #icosa.rebuild()
 
 
-    # Is there a (high-level) way of getting the faces ?
-    # Is it the model's job ?
-
     it "should be 20", ->
       #fixme
 


getIcosahedronVerticesAsVectors = (icosahedron) ->

  vertices = []
  i = 0
  v = [];

  for f in icosahedron.data.vertexWrapper.buffer

    v.push f
    i++

    if i > 2
      vertices.push( vec3.create v )
      i = 0
      v = []

  vertices


unique = (objAry) -> # fixme
  results = []

  valMatch = (seen, obj) ->
    for other in seen
      match = true
      for key, val of obj
        match = false unless other[key] == val
      return true if match
    false

  objAry.forEach (item) ->
    unless valMatch(results, item)
      results.push(item)

  results



  describe "its vertices", ->

    vertices = uniqueVertices = null;

    beforeEach ->
      vertices = getMeshVerticesAsVectors icosa
      uniqueVertices = unique vertices

    it "should be 60 overall (20 faces, 3 vertices each)", ->
      expect(vertices.length).toBe(60)

    it "should regroup in 12 unique vertices", ->
      expect(uniqueVertices.length).toBe(12)

    it "should all have the size of the icosahedron as length", ->
      for v in vertices
