-
Notifications
You must be signed in to change notification settings - Fork 39
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
Replace GTS with CDT #617
Replace GTS with CDT #617
Conversation
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some small whitespace nits
and I've prepared a change for homebrew-simulation for after this lands: osrf/homebrew-simulation#2704
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The MeshCSG code was used in Gazebo-classic to implement the Building Editor. Since there is no plan to port this to modern Gazebo (we can potentially use rmf_site for this in the future), I'd say let's go ahead and remove it from gz-common.
graphics/src/CDT/CDT.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put CDT
in a vendor
subdirectory with the a README to indicate its source and version info?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
gts dep removal in the gz-common6-release repo when this lands: gazebo-release/gz-common6-release#4 |
I added a printout to the DelaunayTriangulation test to show the vertices for the triangles: patch
output with GTS
output with CDT
|
Thanks, I created a fix for this in #623. It also addresses other feedback in this PR. |
* Fix triangle dir, lint, style * update migration guide * Test that Delaunay triangles wind clockwise (#624) --------- Signed-off-by: Ian Chen <[email protected]> Signed-off-by: Steve Peters <[email protected]> Co-authored-by: Steve Peters <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #617 +/- ##
==========================================
- Coverage 80.54% 79.32% -1.22%
==========================================
Files 80 87 +7
Lines 13588 14877 +1289
==========================================
+ Hits 10944 11801 +857
- Misses 2644 3076 +432 ☔ View full report in Codecov by Sentry. |
EXPECT_TRUE(result); | ||
|
||
// same as number of vertices in the path | ||
EXPECT_EQ(subMesh.VertexCount(), 8u); | ||
|
||
// there should be 8 triangles. | ||
EXPECT_EQ(subMesh.IndexCount() / 3u, 8u); | ||
|
||
// verify that triangles have clockwise winding | ||
for (int t = 0; t < subMesh.IndexCount() / 3u; ++t) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for (int t = 0; t < subMesh.IndexCount() / 3u; ++t) | |
for (unsigned int t = 0; t < subMesh.IndexCount() / 3u; ++t) |
apologies I missed the compiler warning in #624
I think we could ignore |
Signed-off-by: Ian Chen <[email protected]>
I updated the ignore files in 7ddc32a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot one thing: we can remove the following line
https://github.com/gazebosim/gz-common/blob/mjcarroll/cdt/.github/ci/packages.apt#L8
Signed-off-by: Steve Peters <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
removed gts dep from package.xml in a159b79 |
This removes the dependency on GTS.