예제 #1
0
 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
예제 #2
0
 def test_basis(self):
     """ Test init of a PointCloud. """
     cloud = PointCloud()
     self.assertEqual(cloud.size(), 0)