Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polygon rotation #3173

Closed
lucasvw opened this issue Nov 6, 2015 · 1 comment
Closed

Polygon rotation #3173

lucasvw opened this issue Nov 6, 2015 · 1 comment

Comments

@lucasvw
Copy link

lucasvw commented Nov 6, 2015

In continuation of: #3172

I implemented the same principle with PolgyonGeometry. In this case Iam no longer using the rotation property but I compute the coordinates of the corners myself under each rotation.

See for the result: http://youtu.be/SEywSgEa1P8

This following is noticed:

(1) The geometry is now correctly rotated, the geometry is no longer warped, skewed at nonzero rotation as was the case for RectangleRotation.
(2) At some rotations the material is displayed correctly, at others not. Sometimes its black, sometimes the half of the geometry is shown correctly, the other half not (over the diagonal).
When switching to 2D mode:
(3) At 0 Degrees the geometry is not a square, aspectRatio != 1.
(4) With nonzero rotation: the geometry gets skewed and warped.

So appaerently: if I use RectangleGeometry then 3D rotation gets warped and skewed. But 2D view rotation works, although the coordinates of the rectangle does not get translated well into 2D mode, leading to a non-square geometry.
if I use PolygonGeometry, then 3D rotation works but 2D rotation gets warped and skewed..

@hpinkos
Copy link
Contributor

hpinkos commented Dec 7, 2016

This is working as designed. The edges of polygons follow geodesic arcs and Rectangles follow rhumb lines

We plan on adding a rhumb line option for polygons. See #4000

@hpinkos hpinkos closed this as completed Dec 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants