Überprüfen, ob gp_Ax1 gp_Pnt in OpenCASCADE enthält
English
Deutsch
OCCUtils stellt Bequemerfunktionen zur Berechnung der orthogonalen Richtung zu zwei Richtungen bereit:
occutils_example.cpp
#include <occutils/Axis.hxx>
using namespace OCCUtils;
gp_Ax1 axis = /* ... */;
gp_Png point = /* ... */;
bool pointIsOnAxis = Axis::Contains(axis, point);Falls du OCCUtils nicht verwenden kannst, hier ist der Code, um es manuell zu tun:
manual_check.cpp
gp_Lin(axis).Contains(pnt, Precision::Confusion());Check out similar posts by category:
C/C++, OpenCASCADE
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow