MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / computeEnter01Cross

Function computeEnter01Cross

source/MRMesh/MRSurfacePath.cpp:56–61  ·  view source on GitHub ↗

given triangle with scalar field increasing in the direction \param unitDir; returns true if the field increases inside the triangle from the edge 01 computes the position on this edge crossed by the line passing via point \param p and directed along \param unitDir

Source from the content-addressed store, hash-verified

54/// returns true if the field increases inside the triangle from the edge 01
55/// computes the position on this edge crossed by the line passing via point \param p and directed along \param unitDir
56static bool computeEnter01Cross( const Triangle3f & t, const Vector3f & unitDir, const Vector3f & p, float & a )
57{
58 if ( !dirEnters01( t, unitDir ) )
59 return false;
60 return computeLineLineCross( t[0] - p, t[1] - p, unitDir, a );
61}
62
63MeshEdgePoint findSteepestDescentPoint( const MeshPart & mp, const VertScalars & field, VertId v )
64{

Callers 1

findSteepestDescentPointFunction · 0.85

Calls 2

dirEnters01Function · 0.85
computeLineLineCrossFunction · 0.85

Tested by

no test coverage detected