Skip to content
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

levelset: interface intersection #462

Merged
merged 7 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion src/CG/CG.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,29 @@ bool intersectSegmentBox( array3D const &, array3D const &, array3D const &, arr
bool intersectSegmentBox( array3D const &, array3D const &, array3D const &, array3D const &, bool, bool,
std::vector<array3D> &, std::vector<int> &, int dim=3, const double distanceTolerance = DEFAULT_DISTANCE_TOLERANCE);

bool intersectPlanePixel(array3D const &Pp, array3D const &nP, array3D const *V, std::array<array3D, 2> &intersection,
std::array<int, 2> &edges_of_intersection, const double distanceTolerance = DEFAULT_COPLANARITY_TOLERANCE);
bool intersectPlanePixel(array3D const &Pp, array3D const &nP, array3D const *V,
std::array<array3D, 2> &intersection, const double distanceTolerance = DEFAULT_COPLANARITY_TOLERANCE);
bool intersectPlanePixel(array3D const &Pp, array3D const &nP, array3D const *V,
std::array<array3D, 2> &intersection, std::vector<array3D> &poly, const double distanceTolerance = DEFAULT_COPLANARITY_TOLERANCE);
bool intersectPlaneTriangle(array3D const &P0, array3D const &P1, array3D const &P2, array3D const &Pp, array3D const &nP, std::array<array3D, 2> &intersection,
std::array<int, 2> &edges_of_intersection, const double distanceTolerance = DEFAULT_COPLANARITY_TOLERANCE);
bool intersectPlaneTriangle(array3D const &P0, array3D const &P1, array3D const &P2, array3D const &Pp, array3D const &nP, std::array<array3D, 2> &intersection,
const double distanceTolerance = DEFAULT_COPLANARITY_TOLERANCE);
bool intersectPlaneTriangle(array3D const &P0, array3D const &P1, array3D const &P2, array3D const &Pp, array3D const &nP,
std::array<array3D, 2> &intersection, std::vector<array3D> &poly, const double distanceTolerance = DEFAULT_COPLANARITY_TOLERANCE);
bool intersectPlanePolygon(array3D const &P, array3D const &nP, std::size_t nV, array3D const *V, std::vector<std::array<array3D, 2>> &Qs,
std::vector<std::array<int, 2>> &edges_of_Qs, const double distanceTolerance = DEFAULT_COPLANARITY_TOLERANCE);
bool intersectPlanePolygon(array3D const &P, array3D const &nP, std::size_t nV, array3D const *V,
std::vector<std::array<array3D, 2>> &Qs, const double distanceTolerance = DEFAULT_COPLANARITY_TOLERANCE);
bool intersectPlanePolygon(array3D const &P, array3D const &nP, std::size_t nV, array3D const *V,
std::vector<std::array<array3D, 2>> &Qs, std::vector< std::vector<array3D> > &polys, const double distanceTolerance = DEFAULT_DISTANCE_TOLERANCE);
array3D computePolygonNormal(std::size_t nV, const array3D *V);
void reconstructPlaneIntersectedPolygons(std::size_t nV, array3D const *V, std::vector<std::array<array3D, 2>> const &Qs,
std::vector<std::array<int, 2>> const &edges_of_Qs,
std::vector< std::vector<array3D> > &polys, const double distanceTolerance = DEFAULT_DISTANCE_TOLERANCE);

bool intersectPlanePlane( array3D const &, array3D const &, array3D const &, array3D const &,
array3D &, array3D &, const double coplanarityTolerance = DEFAULT_COPLANARITY_TOLERANCE) ;
bool intersectPlaneBox( array3D const &, array3D const &, array3D const &, array3D const &, int dim=3,
Expand All @@ -213,7 +236,6 @@ bool intersectBoxBox( array3D const &, array3D const &, array3D const &, array3D
bool intersectBoxBox( array3D const &, array3D const &, array3D const &, array3D const &,
array3D &, array3D &, int dim = 3, const double distanceTolerance = DEFAULT_DISTANCE_TOLERANCE) ;


bool intersectBoxTriangle( array3D const &, array3D const &, array3D const &, array3D const &, array3D const &,
int dim=3, const double distanceTolerance = DEFAULT_DISTANCE_TOLERANCE) ;
bool intersectBoxTriangle( array3D const &, array3D const &, array3D const &, array3D const &, array3D const &,
Expand Down
Loading