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

Method MeshToDistanceMapParams

source/MRMesh/MRDistanceMapParams.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5{
6
7MeshToDistanceMapParams::MeshToDistanceMapParams( const Vector3f& direction, const Vector2i& res, const MeshPart& mp, bool usePreciseBoundingBox )
8{
9 auto pair = direction.perpendicular();
10 Matrix3f rot{ pair.first,pair.second,direction };
11 auto orgSize = orgSizeFromMeshPart_( rot, mp, usePreciseBoundingBox );
12 initFromSize_( { rot,orgSize.first }, res, orgSize.second );
13}
14
15MeshToDistanceMapParams::MeshToDistanceMapParams( const Vector3f& direction, const Vector2f& pixelSize, const MeshPart& mp, bool usePreciseBoundingBox )
16{

Callers 3

test_distance_mapFunction · 0.45
test_cuda_mesh_to_dmFunction · 0.45

Calls 1

detMethod · 0.45

Tested by 3

test_distance_mapFunction · 0.36
test_cuda_mesh_to_dmFunction · 0.36