user1837727
user1837727

Reputation: 21

Rubber banding with mouse on model not on screen position

I am trying to draw a triangle or rectangle using mouse with Rubberband approach. There are approaches available for Rubber band approach on screen position but i want it on the model position. Can anyone suggest some way to achieve that?

Upvotes: 0

Views: 133

Answers (1)

datenwolf
datenwolf

Reputation: 162307

You should always draw the rubber band in screen space. Once the selection has been performed, transform the rubber band limits into model space planes (the lines of the rubber band translate into a set of 4 planes, that define the selection volume).

Upvotes: 0

Related Questions