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

Function rayMeshIntersect

source/MRMesh/MRMeshIntersect.cpp:136–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136MeshIntersectionResult rayMeshIntersect( const MeshPart& meshPart, const Line3f& line,
137 float rayStart, float rayEnd, const IntersectionPrecomputes<float>* prec, bool closestIntersect, const FacePredicate & validFaces )
138{
139 if( prec )
140 {
141 return meshRayIntersect_<float>( meshPart, line, rayStart, rayEnd, *prec, closestIntersect, validFaces );
142 }
143 else
144 {
145 const IntersectionPrecomputes<float> precNew( line.d );
146 return meshRayIntersect_<float>( meshPart, line, rayStart, rayEnd, precNew, closestIntersect, validFaces );
147 }
148}
149
150MeshIntersectionResult rayMeshIntersect( const MeshPart& meshPart, const Line3d& line,
151 double rayStart, double rayEnd, const IntersectionPrecomputes<double>* prec, bool closestIntersect, const FacePredicate & validFaces )

Callers 14

TESTFunction · 0.85
TESTFunction · 0.85
makeZThickAtLeastFunction · 0.85
findInternalFunction · 0.85
rayInsideIntersectFunction · 0.85
computeDistanceMap_Function · 0.85
computeSkyViewFactorFunction · 0.85
findSkyRaysFunction · 0.85
multiRayMeshIntersectFunction · 0.85
cutMeshByProjectionFunction · 0.85
worldRayIntersectionMethod · 0.85
alignContoursToMeshFunction · 0.85

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68