I am trying to manipulate a 3D object with gestures. In order to accomplish my task I need to implement some custom GesturesRecognizer.
I am subclassing UIGestureRecognizer to detect the gestures.
What I need to do is to access the vertices of the 3D object, which is drawn on the screen. I have this data in my ViewController class. Say, I want to know the normal of the facet use r is touching.
Although, I can try to access ViewController from the View which will be connected to the Custom Gesture by some means, I dont think, this is a good way to access the object.
My question here is...
Is it ok to make an instance variable of some struct holding vertex/normal information of a 3D object in View controller.
If not what would be the best way to store such information to render objects.
Another thing I want to ask here is
Is it a good way to access View Controller from Custom Gesture through the view it is connected to?
Kindly suggest me the best way handle my problem.