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

Mesh can be scaled #121

Merged
merged 5 commits into from
Oct 26, 2023
Merged

Mesh can be scaled #121

merged 5 commits into from
Oct 26, 2023

Conversation

ManevilleF
Copy link
Owner

Closes #120

Work done

  • Added PlaneMeshBuilder::with_scale option to scale generated mesh
  • Added ColumnMeshBuilder::with_scale option to scale generated mesh

The scale factor is applied before the rotation and offset, and I don't know if the API is clear enough or if it's the right way to do it.
Maybe it should be called local_scale ?

@ManevilleF ManevilleF marked this pull request as draft October 25, 2023 09:17
@ManevilleF ManevilleF marked this pull request as ready for review October 25, 2023 09:29
@ManevilleF
Copy link
Owner Author

I think I should respect the SRT transform order, what do you think @alice-i-cecile ? I don't know how bevy does it though, I'd rather use the same order

@alice-i-cecile
Copy link
Collaborator

alice-i-cecile commented Oct 25, 2023

Yep, we should match Bevy. IIRC that's SRT. See bevyengine/bevy#1755

@ManevilleF ManevilleF added enhancement New feature or request breaking-change A breaking change that requires a new major version labels Oct 25, 2023
@ManevilleF
Copy link
Owner Author

Done ! Looks good imo

src/mesh/column_builder.rs Outdated Show resolved Hide resolved
src/mesh/column_builder.rs Outdated Show resolved Hide resolved
src/mesh/plane_builder.rs Outdated Show resolved Hide resolved
@ManevilleF ManevilleF merged commit 2c0312a into main Oct 26, 2023
9 checks passed
@ManevilleF ManevilleF deleted the feat/mesh_scaling branch October 26, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change A breaking change that requires a new major version enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add mesh scale option
2 participants