Skip to content

Conversation

@sciecode
Copy link
Contributor

Includes isFrontFacing method to math Triangle.
Can be a useful test for cutting number of iterations on faces related processes

direction.subVectors( target, camera.position );
// ...
if ( triangle.isFrontFacing( direction ) ) process();

live example

@WestLangley
Copy link
Collaborator

@mrdoob This seems to me to be a reasonable addition to the library.

@Mugen87
Copy link
Collaborator

Mugen87 commented May 28, 2019

It would be super-cool if you could also add a unit test here:

https://github.com/mrdoob/three.js/blob/dev/test/unit/src/math/Triangle.tests.js

@mrdoob mrdoob added this to the r105 milestone May 28, 2019
@sciecode
Copy link
Contributor Author

There's something weird going on after #16588 changes. It's saying there are conflicts when there's not. Just gonna close this PR and make a new one.

@sciecode sciecode closed this May 28, 2019
@sciecode sciecode deleted the dev4 branch May 28, 2019 21:47
@mrdoob mrdoob removed this from the r105 milestone May 28, 2019
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.

4 participants