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

Method ContourToDistanceMapParams

source/MRMesh/MRDistanceMapParams.cpp:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80ContourToDistanceMapParams::ContourToDistanceMapParams( const Vector2i& dmapSize_,
81 const Vector2f& oriPoint_, const Vector2f& areaSize, bool withSign_ /*= false */ ) :
82 pixelSize{ areaSize.x / dmapSize_.x, areaSize.y / dmapSize_.y },
83 resolution{ dmapSize_ },
84 orgPoint{ oriPoint_ },
85 withSign{ withSign_ }
86{
87 assert( resolution.x > 0 && resolution.y > 0 );
88}
89
90ContourToDistanceMapParams::ContourToDistanceMapParams( const Vector2i& dmapSize_,
91 const Box2f& box, bool withSign_ /*= false */ ) :

Callers 2

test_dm_from_contourFunction · 0.45
test_dm_from_contourFunction · 0.45

Calls 3

diagonalFunction · 0.85
validMethod · 0.45
includeMethod · 0.45

Tested by 2

test_dm_from_contourFunction · 0.36
test_dm_from_contourFunction · 0.36