Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001141 [tweak] Any minor always 05-06-05 23:45 07-06-06 07:06
Reporter tedka View Status public  
Assigned To andreas
Priority normal Resolution open  
Status assigned  
Summary 0001141: Blue handle rotation of a CPolygonPlayer causes it to shrink
Description Grab the blue handle of any CPolygonPlayer. Each time you move it, the polygon gets smaller. Eventually it disappears. Perhaps a roundoff error in the transform?

I'm assigning it to Andreas.
Additional Information
Attached Files

- Relationships
duplicate of 0000921new  Rotating a CPolygonPlayer resizes it, freezing the image 

- Notes
(0005554 - 2081 - 2340 - 2340 - 2340 - 2340 - 2340)
wiz
07-06-06 07:06

Other observations.

for this one:
 
get a polygon
open a viewer on it.
drag and drop "Polygon rotate 5" to create a script.
start it going.

(The polygon will drift away. When I tried it , it drifted to the top-right but I did not control the initial conditions. YMMV.) It went off the screen before I could verify if it was shrinking or not.

This has all to do with the insability of the reference point and the interdependence of the blue handle to the ref point and the "ref point" to the bounds of the poly.
The bounds change with rotation.

Philosophically a reference point should be like the pin you tack a note onto a bullitin board. The pins ref coords are fixed relative to the board.

The note only owns the hole the pin poked thru it.
The knots/vertices of the polygon have some relationship to the hole.

One good way to handle the size and orientation of a polygon is to use handles similar to a star.

There is a center handle and an outer handle.
The center handle stays fixed at the center of the polygon.
Moving the outer handle mantains the aspect of the shape of the polygon but allows it to both grow and/or turn.
The average of all the vertices is a good reference position to pick.
If you do not round this average then you can shrink the polygon quite small and still be able to grow it with its shape intact. (at some point running thru the center point needs to be guarded against because of the zero factor.)
Also the outer handle should always be choosen to be on one of the farthest vertices from the center/ref point. This will prevent the user from growing the polygon too large for memory.




Another way is when the blue handle starts a turn set a global ref position.
thats the pin.
During the turn reference the blue handle to the pin to determine turning angle.
At the end of the turn remove the pin. (else you get other problems)


Morphic halos and polygons cause problems also. So this is one that has not be implemented completely correctly anywhere yet.

Yours in service, -- Jerome Peace
 

- Issue History
Date Modified Username Field Change
05-06-05 23:45 tedka New Issue
05-06-05 23:46 tedka Assigned To  => andreas
05-06-05 23:46 tedka Status new => assigned
06-20-05 12:13 bert Relationship added duplicate of 0000921
07-06-06 07:06 wiz Note Added: 0005554


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
41 total queries executed.
33 unique queries executed.
Powered by Mantis Bugtracker