Skip to content

Instantly share code, notes, and snippets.

@FedericoV
Created February 26, 2015 19:30
Show Gist options
  • Save FedericoV/6c6cf9dee3557e0fe9de to your computer and use it in GitHub Desktop.
Save FedericoV/6c6cf9dee3557e0fe9de to your computer and use it in GitHub Desktop.
self.rotation = rotation_matrix(np.array([0, 0, 1]),
self.model.stem_rotation)
self.axis = self.__get_axis()
self.rotation = np.dot(self.rotation,
rotation_matrix(self.axis,
self.model.tree_rotation))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment