106 if( maxRadius > 0 && maxRadius != m_maxRadius )
111 m_maxRadius = maxRadius;
113 m_nPoints_R = (
int *)
SG_Calloc(m_maxRadius + 1,
sizeof(
int));
115 for(y=-m_maxRadius; y<=m_maxRadius; y++)
117 for(x=-m_maxRadius; x<=m_maxRadius; x++)
122 m_nPoints_R[(int)d]++;
130 m_Points = (TSG_Grid_Radius *)
SG_Calloc(m_nPoints ,
sizeof(TSG_Grid_Radius ));
131 m_Points_R = (TSG_Grid_Radius **)
SG_Calloc(m_maxRadius + 1,
sizeof(TSG_Grid_Radius *));
133 for(i=0, n=0; i<=m_maxRadius; i++)
135 m_Points_R [i] = m_Points + n;
141 for(y=-m_maxRadius; y<=m_maxRadius; y++)
143 for(x=-m_maxRadius; x<=m_maxRadius; x++)
148 n = m_nPoints_R[i]++;
150 m_Points_R[i][n].x = x;
151 m_Points_R[i][n].y = y;
152 m_Points_R[i][n].d = d;