Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions | Variables

editmesh_loop.c File Reference

#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "MEM_guardedalloc.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BLI_editVert.h"
#include "BLI_ghash.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h"
#include "BKE_mesh.h"
#include "BKE_array_mallocn.h"
#include "PIL_time.h"
#include "BIF_gl.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_mesh.h"
#include "ED_view3d.h"
#include "mesh_intern.h"

Go to the source code of this file.

Classes

struct  CutCurve

Defines

#define TRAIL_POLYLINE   1
#define TRAIL_FREEHAND   2
#define TRAIL_MIXED   3
#define TRAIL_AUTO   4
#define TRAIL_MIDPOINTS   8
#define KNIFE_EXACT   1
#define KNIFE_MIDPOINT   2
#define KNIFE_MULTICUT   3
#define MAXSLOPE   100000
#define MAX_CUTS   256
#define MAX_CUT_EDGES   1024

Typedefs

typedef struct CutCurve CutCurve

Functions

static void error (const char *UNUSED(arg))
static float seg_intersect (EditEdge *e, CutCurve *c, int len, char mode, struct GHash *gh)
static int knife_cut_exec (bContext *C, wmOperator *op)
void MESH_OT_knife_cut (wmOperatorType *ot)

Variables

static EnumPropertyItem knife_items []

Detailed Description

Definition in file editmesh_loop.c.


Define Documentation

#define KNIFE_EXACT   1

Definition at line 443 of file editmesh_loop.c.

Referenced by MESH_OT_knife_cut().

#define KNIFE_MIDPOINT   2

Definition at line 444 of file editmesh_loop.c.

Referenced by knife_cut_exec().

#define KNIFE_MULTICUT   3

Definition at line 445 of file editmesh_loop.c.

Referenced by knife_cut_exec(), and seg_intersect().

#define MAX_CUT_EDGES   1024

Definition at line 613 of file editmesh_loop.c.

Referenced by knife_cut_exec().

#define MAX_CUTS   256

Definition at line 610 of file editmesh_loop.c.

Referenced by MESH_OT_knife_cut().

#define MAXSLOPE   100000

Referenced by seg_intersect().

#define TRAIL_AUTO   4

Definition at line 415 of file editmesh_loop.c.

#define TRAIL_FREEHAND   2

Definition at line 413 of file editmesh_loop.c.

#define TRAIL_MIDPOINTS   8

Definition at line 416 of file editmesh_loop.c.

#define TRAIL_MIXED   3

Definition at line 414 of file editmesh_loop.c.

#define TRAIL_POLYLINE   1

Definition at line 412 of file editmesh_loop.c.


Typedef Documentation

typedef struct CutCurve CutCurve

Function Documentation

static void error ( const char *  UNUSEDarg) [static]

Definition at line 77 of file editmesh_loop.c.

Referenced by knife_cut_exec().

static int knife_cut_exec ( bContext C,
wmOperator op 
) [static]
void MESH_OT_knife_cut ( wmOperatorType ot)
static float seg_intersect ( EditEdge e,
CutCurve c,
int  len,
char  mode,
struct GHash gh 
) [static]

Variable Documentation

Initial value:
 {
    {KNIFE_EXACT, "EXACT", 0, "Exact", ""},
    {KNIFE_MIDPOINT, "MIDPOINTS", 0, "Midpoints", ""},
    {KNIFE_MULTICUT, "MULTICUT", 0, "Multicut", ""},
    {0, NULL, 0, NULL, NULL}
}

Definition at line 447 of file editmesh_loop.c.