PreprocessPts |
Syntax |
PreprocessPts(Pts: MAT, Toler: MAT): RECORD PreprocessPtsGrid(Pts: MAT, Toler: MAT): RECORD PreprocessPtsAggr(Pts: MAT, Toler: MAT): RECORD PreprocessPtsSubDiv(Pts: MAT, Toler: MAT): RECORD |
Description |
Example |
/**/ Pts := matrix([[-1,0],[0,0],[1,0],[99,1],[99,0],[99,-1]]); /**/ Toler := RowMat([3,3]); /**/ PreprocessPts(Pts, Toler); record[NewPoints := matrix(QQ, [[99, 0], [0, 0]]), weights := [3, 3]] /**/ PreprocessPts(Pts, RowMat([0.8,0.8])); record[NewPoints := matrix(QQ, [[-1/2, 0], [1, 0], [99, 1/2], [99, -1]]), weights := [2, 1, 2, 1]] /**/ PreprocessPtsAggr(Pts, RowMat([0.9,0.9])); -- exhibits tolerance flex record[NewPoints := matrix(QQ, [[0, 0], [99, 0]], weights := [3, 3]] |