Skip to content

Fix wavefront tests + new test for different pos + add them in ci#268

Merged
ThierryBerger merged 7 commits intodimforge:masterfrom
ThierryBerger:258-fix_mesh_intersection__test
Sep 20, 2024
Merged

Fix wavefront tests + new test for different pos + add them in ci#268
ThierryBerger merged 7 commits intodimforge:masterfrom
ThierryBerger:258-fix_mesh_intersection__test

Conversation

@ThierryBerger
Copy link
Copy Markdown
Contributor

&cuboid_mesh,
false,
&Isometry::translation(2.0, 0.0, 0.0),
&sphere_mesh, //.clone().scaled(&Vector3::new(1.001, 1.001, 1.001)),
Copy link
Copy Markdown
Contributor Author

@ThierryBerger ThierryBerger Sep 12, 2024

Choose a reason for hiding this comment

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

That comment will have to be removed, but I added that because setting both positions to 200;0;0 resulted in a lot of holes in the resulting intersection. I can imagine this is floating point imprecision but it was surprising.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Interesting. I think it’s worth opening an issue with the example that generates holes.

Copy link
Copy Markdown
Contributor Author

@ThierryBerger ThierryBerger Sep 13, 2024

Choose a reason for hiding this comment

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

I opened #270 ; it can even be reproduced in a position of 2;0;0

Copy link
Copy Markdown
Member

@sebcrozet sebcrozet left a comment

Choose a reason for hiding this comment

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

Thanks!

&cuboid_mesh,
false,
&Isometry::translation(2.0, 0.0, 0.0),
&sphere_mesh, //.clone().scaled(&Vector3::new(1.001, 1.001, 1.001)),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Interesting. I think it’s worth opening an issue with the example that generates holes.

Comment on lines +47 to 48
# Adds `TriMesh:to_obj_file` function.
wavefront = ["obj"]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Adding documentation on cargo.toml is idiomatic to rust ecosystem (see serde or bevy)


[package.metadata.docs.rs]
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
features = ["wavefront"]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This allows to see the function in rustdoc.rs

rand = { version = "0.8" }

[package.metadata.docs.rs]
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is already present in parry3d (we're in parry3d-f64 here)


#[cfg(feature = "wavefront")]
pub mod wavefront;
mod wavefront;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This module doesn´t have to be public, as it's implementing functions directly on TriMesh, which is public.

Making it public warns about undocumented module, as well as having nothing to show in it (the added function is within TriMesh)

Copy link
Copy Markdown
Member

@sebcrozet sebcrozet left a comment

Choose a reason for hiding this comment

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

Thanks!

@ThierryBerger ThierryBerger merged commit 22a4261 into dimforge:master Sep 20, 2024
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