whd
whd

Reputation: 1861

Swing (AWT) recognizing drawn shape

Hello I'm not an expert neither in Java nor Swing but I was thinking (I don't want solution, maybe tutorial or idea) is it possible (and if it is) how to recognize shape drawn in window and make it 3d by rotating it about axis?

Upvotes: 2

Views: 232

Answers (1)

trashgod
trashgod

Reputation: 205795

Recognizing shapes is not a trivial exercise, but Java2D easily accommodates rotating defined instances of classes implementing the Shape interface in two dimensions. This example illustrates a few transformations. Java3D and Java OpenGL are three dimensional alternatives.

Upvotes: 3

Related Questions