54 int nbits = nvertices*nvertices;
55 size_t ndata = (size_t) (hit_bitmapShapeIndex(nbits) + (hit_bitmapShapeOffset(nbits)==0 ? 0 : 1));
79 size_t ndata = (size_t) (hit_bitmapShapeIndex(nbits) + (hit_bitmapShapeOffset(nbits)==0 ? 0 : 1));
139 if(vertices == NULL){
204 #define VLOCAL 1 // (....0001)
205 #define VEXPAND 2 // (....0010)
215 vertices[local_orig_vertex] =
VLOCAL;
219 int new_vertices = 0;
221 for(a=0; a<amount; a++){
223 int vertex_i, vertex_j;
226 for(vertex_i=0; vertex_i<orig_nvertices; vertex_i++){
228 for(vertex_j=0; vertex_j<orig_nvertices; vertex_j++){
233 if((vertices[vertex_i] &
VLOCAL) && (! vertices[vertex_j] & VLOCAL)){
248 for(vertex=0; vertex<orig_nvertices; vertex++){
267 for(vertex=0; vertex<orig_nvertices; vertex++){
269 if(vertices[vertex] >
VLOCAL){
301 if( local_x != -1 )
return;
332 for(i=0; i<(nelems_x-1); i++){
333 for(j=0; j<(nelems_y); j++){
383 for(i=0; i<(nelems_x); i++){
384 for(j=0; j<(nelems_y-1); j++){
#define hit_bShapeSet(bitshape, i, j)
#define hit_bShapeColumnIterator(var, shape, row)
HitShape hit_bShapeSelectRows(HitShape shape, int nNames, int *names)
void hit_nameListClone(HitNameList *dst, HitNameList *src)
HitShape hit_bShapeSelect(HitShape shape, int nvertices, int *vertices)
void hit_bShapeAddEmptyRow_or_Vertex(HitShape *shape, int x, int mode)
int hit_bShapeNColsRow(HitShape shape, int row)
#define hit_bShapeGet(bitshape, i, j)
void hit_nameListAdd(HitNameList *list, int x)
#define hit_bShapeCard(shape, dim)
HitShape hit_bShapeExpand(HitShape shape, HitShape original, int amount)
int hit_nameListName2Index(HitNameList list, int name)
#define hit_bShapeNameList(shape, dim)
#define hit_bShapeGetGlobal(bitshape, i, j)
#define hit_calloc(ptr, type, nmemb)
HitShape hit_bitmapShape(int nvertices)
void hit_nameListFree(HitNameList list)
#define hit_bShapeData(shape)
#define hit_bShapeCoordToLocal(s, dim, elem)
void hit_nameListCreate(HitNameList *list, int nelems)
void hit_bShapeFree(HitShape shape)
#define hit_bShapeVertexIterator(var, shape)
#define hit_bShapeNedges(shape)
void hit_bShapeCopyElementsInternal(HitShape dst, HitShape src)
void hit_bShapeAddColumn(HitShape *shape, int y)
#define hit_bShapeVertexToLocal(s, vertex)
Hitmap functions to allocate memory.
#define hit_bShapeVertexToGlobal(s, vertex)
#define hit_malloc(ptr, type, nmemb)
#define hit_bShapeSetGlobal(bitshape, i, j)
HitShape hit_bitmapShapeMatrix(int n, int m)
#define hit_bShapeNvertices(shape)
void hit_bShapeAddElem_or_Edge(HitShape *shape, int x, int y, int mode)
HitShape HIT_BITMAP_SHAPE_NULL