Example #1
0
    def n_check_data(self):
        n_nitrishape = self.n_data.roots[0].children[0]
        n_gen_geometry.n_check_trishape(n_nitrishape)

        nose.tools.assert_equal(n_nitrishape.num_properties, 1)
        n_mat_prop = n_nitrishape.properties[0]
        n_gen_material.n_check_material_block(n_mat_prop)
        n_gen_material.n_check_material_property(n_mat_prop)
Example #2
0
    def n_check_data(self):
        n_nitrishape = self.n_data.roots[0].children[0]
        n_gen_geometry.n_check_trishape(n_nitrishape)

        # check we have property and correct type
        nose.tools.assert_equal(n_nitrishape.num_properties, 1)
        n_mat_prop = n_nitrishape.properties[0]        
        n_gen_material.n_check_material_block(n_mat_prop)
        
        # check its values
        n_gen_material.n_check_material_gloss_property(n_mat_prop)
 def n_check_data(self):
     n_ninode = self.n_data.roots[0]
     
     #bsx flag
     # nose.tools.assert_equal(n_ninode.num_extra_data_list, 2) #UPB TODO
     n_bsxflag = n_ninode.extra_data_list[0]
     n_gen_collision.n_check_bsx_flag(n_bsxflag)
     
     #check common collision
     n_bhkcollisionobject = n_gen_collision.n_check_bhkcollisionobject_data(n_ninode)
     n_bhkrigidbody =  n_gen_collision.n_check_bhkrigidbody_data(n_bhkcollisionobject)
     
     #check bhkboxshape specific data
     n_gen_bhkboxshape.n_check_bhkrigidbody_data(n_bhkrigidbody)
     n_bhktransform = n_gen_bhkboxshape.n_check_bhkconvextransform_data(n_bhkrigidbody)
     n_gen_bhkboxshape.n_check_bhkboxshape_data(n_bhktransform)
     
     #geometry
     n_trishape = n_ninode.children[0]
     n_gen_geometry.n_check_trishape(n_trishape)
     
     
Example #4
0
 def n_check_data(self):
     n_trishape = self.n_data.roots[0].children[0]
     n_gen_geometry.n_check_trishape(n_trishape)