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

MeshSurfaceSampler: Support vertex colors. #20702

Merged
merged 2 commits into from
Nov 18, 2020
Merged

MeshSurfaceSampler: Support vertex colors. #20702

merged 2 commits into from
Nov 18, 2020

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Nov 18, 2020

Related issue: -

Description

I have a use case where I want to sample a mesh in order to produce a point cloud. Using MeshSurfaceSampler is perfect for this however it does not honor vertex colors. This PR adds the respective support.

It also makes targetNormal to an optional parameter since similar to color this value is not always required.

Copy link
Collaborator

@donmccurdy donmccurdy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, the addition sounds good to me!

docs/examples/en/math/MeshSurfaceSampler.html Outdated Show resolved Hide resolved
docs/examples/zh/math/MeshSurfaceSampler.html Outdated Show resolved Hide resolved
@Mugen87
Copy link
Collaborator Author

Mugen87 commented Nov 18, 2020

BTW: I love this utility class 😊 .

@mrdoob mrdoob added this to the r123 milestone Nov 18, 2020
@mrdoob mrdoob merged commit daa6c50 into mrdoob:dev Nov 18, 2020
@mrdoob
Copy link
Owner

mrdoob commented Nov 18, 2020

Thanks!

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.

3 participants