Sha256: 86ae9ae3bf447b7846e5154d95be330af19881d016b54dfabf03cf13169ed184

Contents?: true

Size: 442 Bytes

Versions: 2

Compression:

Stored size: 442 Bytes

Contents

describe 'Jax.Mesh.Cone', ->
  mesh = null
  
  describe "with 4 sides", ->
    beforeEach -> mesh = new Jax.Mesh.Cone sides: 4
    
    it "should produce 7 vertices", ->
      # 1 for the point, 1 for the first vertex, 1 for each
      # side, and 1 for the final vertex
      expect(mesh.data.length).toEqual 6
    
    it "should produce proper tangents", ->
      for i in mesh.data.tangentBuffer
        expect(i).not.toBeNaN()
        

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jax-3.0.0.rc2 spec/javascripts/jax/builtin/meshes/cone_spec.js.coffee
jax-3.0.0.rc1 spec/javascripts/jax/builtin/meshes/cone_spec.js.coffee