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

add from_tri_mask method to TriMesh instances #639

Merged
merged 2 commits into from Mar 8, 2016

Conversation

jabooth
Copy link
Member

@jabooth jabooth commented Oct 12, 2015

our from_mask machinery on PointCloud instances always masks based on .points. On TriMesh instances, it can be useful to mask based on triangles instead. This adds a new TriMesh.from_tri_mask() method that prepares a point mask from a triangle mask and then delgates to the from_mask() method.

@patricksnape
Copy link
Contributor

+1 looks good - although it is missing a test...

@patricksnape
Copy link
Contributor

Happy for this to go in whenever it gets a test.

patricksnape pushed a commit that referenced this pull request Mar 8, 2016
add from_tri_mask method to TriMesh instances
@patricksnape patricksnape merged commit 042b3b1 into menpo:master Mar 8, 2016
@patricksnape patricksnape deleted the tri_mask branch March 8, 2016 11:24
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.

None yet

2 participants