Sample-based shaping from 2D triangle mesh #1393
Labels
Quest
Issues related to Axom's 'quest' component
Reviewed
User Request
Issues related to user requests
A user has requested that we extend our sample-based shaping capability to include shaping from a 2D STL triangle mesh, i.e. a triangle mesh where all the triangles lie in the XY plane.
One strategy might be to use a spatial index like a BVH tree to find the candidate triangles for a given point and then check
Triangle::checkInTriangle(Point)
. We can use a similar strategy for In/Out queries on a Tetrahedral mesh in 3D.A different strategy might be to extrude the 2D triangle mesh in the z-direction and use our existing In/Out capability for watertight 3D STL meshes.
axom/src/axom/primal/geometry/Triangle.hpp
Lines 340 to 356 in b5fa221
Example meshes might look like:
The text was updated successfully, but these errors were encountered: