def test_colouredtrimesh_copy(): points = np.ones([10, 3]) colours = np.ones([10, 3]) trilist = np.ones([10, 3]) landmarks = PointCloud(np.ones([3, 3]), copy=False) ctmesh = ColouredTriMesh(points, trilist=trilist, colours=colours, copy=False) ctmesh.landmarks['test'] = landmarks ctmesh_copy = ctmesh.copy() assert (not is_same_array(ctmesh_copy.points, ctmesh.points)) assert (not is_same_array(ctmesh_copy.trilist, ctmesh.trilist)) assert (not is_same_array(ctmesh_copy.colours, ctmesh.colours)) assert (not is_same_array(ctmesh_copy.landmarks['test'].lms.points, ctmesh.landmarks['test'].lms.points))