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

implemented fast triangle-triangle intersection of devillers and guigue #7

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

aaronkreuz
Copy link
Contributor

No description provided.

@aaronkreuz aaronkreuz changed the title implented fast triangle-triangle intersection of devillers and guigue implemented fast triangle-triangle intersection of devillers and guigue Jan 30, 2023
ScalarT d01 = determinants[0] * determinants[1];
ScalarT d02 = determinants[0] * determinants[2];

if (d01 > 0.0f) // vertices 0 and 1 on one side
Copy link
Contributor

Choose a reason for hiding this comment

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

ScalarT(0)


// circular permutation to the vertices of triangle ta such that ta.pos0 is the only vertex that lies on positive halfspace induced by tb
template <class ScalarT>
void rotate_devillers_triangle(tg::triangle<3, ScalarT>& ta, tg::triangle<3, ScalarT>& tb, tg::comp3& determinants, tg::comp3& determinants_t2)
Copy link
Contributor

Choose a reason for hiding this comment

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

comp3 -> comp<3, ScalarT>


// circular permutation to the vertices of triangle ta such that ta.pos0 is the only vertex that lies on positive halfspace induced by tb
template <class ScalarT>
void rotate_devillers_triangle(tg::triangle<3, ScalarT>& ta, tg::triangle<3, ScalarT>& tb, tg::comp3& determinants, tg::comp3& determinants_t2)
Copy link
Contributor

Choose a reason for hiding this comment

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

remove tg:: in all places

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