Blender V5.3
BLI_scanfill.hh File Reference
#include "DNA_listBase.h"
#include <stdbool.h>

Go to the source code of this file.

Classes

struct  blender::ScanFillContext
struct  blender::ScanFillVert
struct  blender::ScanFillEdge
struct  blender::ScanFillFace

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define BLI_SCANFILL_ARENA_SIZE   MEM_SIZE_OPTIMAL(1 << 14)
#define SF_POLY_UNSET   ((unsigned short)-1)

Enumerations

enum  { blender::BLI_SCANFILL_CALC_REMOVE_DOUBLES = (1 << 1) , blender::BLI_SCANFILL_CALC_POLYS = (1 << 2) , blender::BLI_SCANFILL_CALC_HOLES = (1 << 3) , blender::BLI_SCANFILL_CALC_LOOSE = (1 << 4) }

Functions

struct ScanFillVert * blender::BLI_scanfill_vert_add (ScanFillContext *sf_ctx, const float vec[3])
struct ScanFillEdge * blender::BLI_scanfill_edge_add (ScanFillContext *sf_ctx, struct ScanFillVert *v1, struct ScanFillVert *v2)
void blender::BLI_scanfill_begin (ScanFillContext *sf_ctx)
unsigned int blender::BLI_scanfill_calc (ScanFillContext *sf_ctx, int flag)
unsigned int blender::BLI_scanfill_calc_ex (ScanFillContext *sf_ctx, int flag, const float nor_proj[3])
void blender::BLI_scanfill_end (ScanFillContext *sf_ctx)
void blender::BLI_scanfill_begin_arena (ScanFillContext *sf_ctx, struct MemArena *arena)
void blender::BLI_scanfill_end_arena (ScanFillContext *sf_ctx, struct MemArena *arena)
bool blender::BLI_scanfill_calc_self_isect (ScanFillContext *sf_ctx, ListBaseT< ScanFillVert > *remvertbase, ListBaseT< ScanFillEdge > *remedgebase)

Macro Definition Documentation

◆ BLI_SCANFILL_ARENA_SIZE

#define BLI_SCANFILL_ARENA_SIZE   MEM_SIZE_OPTIMAL(1 << 14)

◆ SF_POLY_UNSET

#define SF_POLY_UNSET   ((unsigned short)-1)
Note
this is USHRT_MAX so incrementing will set to zero which happens if callers choose to increment #ScanFillContext.poly_nr before adding each curve. Nowhere else in scan-fill do we make use of intentional overflow like this.

Definition at line 41 of file BLI_scanfill.hh.

Referenced by blender::BLI_scanfill_begin(), blender::BLI_scanfill_begin_arena(), blender::BLI_scanfill_calc_ex(), and blender::BLI_scanfill_calc_self_isect().