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

Lathe geometry in the editor #7971

Merged
merged 1 commit into from
Jan 15, 2016

Conversation

rfm1201
Copy link
Contributor

@rfm1201 rfm1201 commented Jan 15, 2016

Added a minimal support of lathe geometry in the editor.

Added a minimal support of lathe geometry in the editor.
mrdoob added a commit that referenced this pull request Jan 15, 2016
@mrdoob mrdoob merged commit 39f17d4 into mrdoob:dev Jan 15, 2016
@mrdoob
Copy link
Owner

mrdoob commented Jan 15, 2016

Super nice! Thanks!

@rfm1201 rfm1201 deleted the lathe-geometry-in-editor-(dev) branch January 15, 2016 15:21
@mrdoob
Copy link
Owner

mrdoob commented Jan 16, 2016

Do you think LatheGeometry should revolve on the Y axis instead of on the Z axis?

@rfm1201
Copy link
Contributor Author

rfm1201 commented Jan 16, 2016

The first time I use the function, I thought it will revolve on the Y axis.
Why?
Because the points you pass to the function must have the Y at 0.

If the function is refactored, maybe the points should be Vector2 and a parameter should be added to choose the axe. By axe, I mean X, Y or Z.
The problem is that’s a breaking change.

In my own version of the editor, I rotate the mesh because I think it’s more natural.

@mrdoob
Copy link
Owner

mrdoob commented Jan 16, 2016

It is a breaking change but it's easy to warn the user though (checking for Vector2).

@rfm1201 rfm1201 mentioned this pull request Jan 18, 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

Successfully merging this pull request may close these issues.

2 participants