Skip to content

Fix triangle intersection with no edge-tri pairs#1410

Merged
oitel merged 7 commits intomasterfrom
fix/triangle_intersection_at_sides
Jul 12, 2023
Merged

Fix triangle intersection with no edge-tri pairs#1410
oitel merged 7 commits intomasterfrom
fix/triangle_intersection_at_sides

Conversation

@oitel
Copy link
Contributor

@oitel oitel commented Jul 11, 2023

No description provided.

@oitel oitel requested a review from Fedr July 11, 2023 10:52
return true; // DE segment penetrates triangle ABC since points B and C are at distinct sides of ADE

if ( abdf == 0 && acde == 0 )
return true; // ...
Copy link
Contributor

Choose a reason for hiding this comment

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

some comment would be highly appreciated. Let us draw a picture first, and when write it.

MR::Vector3f { +30.f, -52.f, 0.f },
MR::Vector3f { 0.f, 0.f, 0.f },
};
constexpr MR::Vector3f add( const MR::Vector3f& a, const MR::Vector3f& b )
Copy link
Contributor

Choose a reason for hiding this comment

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

let us remove this func, and use operator +

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@oitel oitel merged commit 0c6b710 into master Jul 12, 2023
@oitel oitel deleted the fix/triangle_intersection_at_sides branch July 12, 2023 08:04
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