-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add tests for Meshes.Quadrangle
#95
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #95 +/- ##
===========================================
+ Coverage 90.50% 100.00% +9.49%
===========================================
Files 16 17 +1
Lines 316 269 -47
===========================================
- Hits 286 269 -17
+ Misses 30 0 -30 ☔ View full report in Codecov by Sentry. |
Looking at the primitives and polytopes in https://github.com/JuliaGeometry/Meshes.jl/tree/168557a714149118a90c570432a873c4047b494a/src/geometries, I think we can also add |
We could also consider |
That's the beauty of the current general solution methods. Early on with this package I was defining methods for each individual geometry type with hand-derived methods for each individual {geometry, rule} combination. I suspect there's a little bit of a performance penalty for geometries with constant differential elements, e.g. |
On the note of polytopes, I think there’s a little bit of ambiguity over which to treat as surfaces or lines. It seems to me like they’re intended to be defined as essentially Ring’s with a set number of points. However, having simplexes where Triangle is a surface and Tetrahedron is a volume would allow us to integrate any arbitrary geometry by decomposing into those simplexes. That being said, it might currently be an abuse to treat Triangle as a surface like I am. |
Wait, I guess the fact that both |
I would be supportive of tracking support level for all possible geometries in the Support Matrix. I’ve been trying to annotate the ones not currently supported with a link to an Issue so that it communicates some context for why and what the path toward support requires. In general, if Meshes doesn’t provide a parameterization function, the first consideration would probably be to add one there, if it makes sense to do so. Otherwise, maybe it makes sense to do some sort of decomposition into simplexes or other more primitive geometries? My familiarity with Meshes geometries is somewhat limited beyond those currently in the Matrix. |
That's what I assume, e.g. |
Yes, that would be nice, but I don't have the time and the need right now to do that. So I think it's fine that we don't support these geometries for now. |
Seems like integrating
Quadrangle
s simply work. I added tests for that and added them to the support matrix in the docs.