Exemplo n.º 1
0
void BLI_scanfill_end_arena(ScanFillContext *sf_ctx, MemArena *arena)
{
	BLI_memarena_clear(arena);
	BLI_assert(sf_ctx->arena == arena);

	BLI_listbase_clear(&sf_ctx->fillvertbase);
	BLI_listbase_clear(&sf_ctx->filledgebase);
	BLI_listbase_clear(&sf_ctx->fillfacebase);
}
Exemplo n.º 2
0
void BKE_mesh_loop_islands_clear(MeshIslandStore *island_store)
{
	island_store->item_type = MISLAND_TYPE_NONE;
	island_store->items_to_islands_num = 0;
	island_store->items_to_islands = NULL;

	island_store->island_type = MISLAND_TYPE_NONE;
	island_store->islands_num = 0;
	island_store->islands = NULL;

	island_store->innercut_type = MISLAND_TYPE_NONE;
	island_store->innercuts = NULL;

	if (island_store->mem) {
		BLI_memarena_clear(island_store->mem);
	}

	island_store->islands_num_alloc = 0;
}