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

Function findProjectionOnPoints

source/MRCuda/MRCudaPointsProject.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19constexpr size_t cMinCudaBufferSize = 1 << 24; // 16 MiB
20
21Expected<std::vector<MR::PointsProjectionResult>> findProjectionOnPoints( const PointCloud& pointCloud,
22 const std::vector<Vector3f>& points, const FindProjectionOnPointsSettings& settings )
23{
24 std::vector<MR::PointsProjectionResult> results;
25 PointsProjector projector;
26 return projector.setPointCloud( pointCloud )
27 .and_then( [&] { return projector.findProjections( results, points, settings ); } )
28 .transform( [&] { return results; } );
29}
30
31Expected<void> PointsProjector::setPointCloud( const PointCloud& pointCloud )
32{

Callers

nothing calls this directly

Calls 3

transformMethod · 0.45
setPointCloudMethod · 0.45
findProjectionsMethod · 0.45

Tested by

no test coverage detected