def compute_pointcloud(self, sketchup_model, theta, phi): self.load_model(sketchup_model) print "Computing view for model {} : t={}, p={}".format( sketchup_model.google_id, theta, phi) cloud = PointCloud() cloud._cpp_pointcloud = self._cpp_computer.compute_view(theta, phi) return cloud
def test_basis(self): """ Test init of a PointCloud. """ cloud = PointCloud() self.assertEqual(cloud.size(), 0)