Blender V2.61 - r43446
Functions

mesh_navmesh.c File Reference

#include <math.h>
#include "MEM_guardedalloc.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_modifier_types.h"
#include "DNA_ID.h"
#include "BKE_library.h"
#include "BKE_depsgraph.h"
#include "BKE_context.h"
#include "BKE_main.h"
#include "BKE_mesh.h"
#include "BKE_modifier.h"
#include "BKE_scene.h"
#include "BKE_DerivedMesh.h"
#include "BKE_cdderivedmesh.h"
#include "BKE_report.h"
#include "BLI_editVert.h"
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "BLI_math_vector.h"
#include "BLI_linklist.h"
#include "ED_object.h"
#include "ED_mesh.h"
#include "ED_screen.h"
#include "RNA_access.h"
#include "WM_api.h"
#include "WM_types.h"
#include "mesh_intern.h"
#include "recast-capi.h"

Go to the source code of this file.

Functions

static void createVertsTrisData (bContext *C, LinkNode *obs, int *nverts_r, float **verts_r, int *ntris_r, int **tris_r)
static int buildNavMesh (const RecastData *recastParams, int nverts, float *verts, int ntris, int *tris, struct recast_polyMesh **pmesh, struct recast_polyMeshDetail **dmesh)
static ObjectcreateRepresentation (bContext *C, struct recast_polyMesh *pmesh, struct recast_polyMeshDetail *dmesh, Base *base)
static int create_navmesh_exec (bContext *C, wmOperator *op)
void MESH_OT_navmesh_make (wmOperatorType *ot)
static int navmesh_face_copy_exec (bContext *C, wmOperator *op)
void MESH_OT_navmesh_face_copy (struct wmOperatorType *ot)
static int compare (const void *a, const void *b)
static int findFreeNavPolyIndex (EditMesh *em)
static int navmesh_face_add_exec (bContext *C, wmOperator *UNUSED(op))
void MESH_OT_navmesh_face_add (struct wmOperatorType *ot)
static int navmesh_obmode_data_poll (bContext *C)
static int navmesh_obmode_poll (bContext *C)
static int navmesh_reset_exec (bContext *C, wmOperator *UNUSED(op))
void MESH_OT_navmesh_reset (struct wmOperatorType *ot)
static int navmesh_clear_exec (bContext *C, wmOperator *UNUSED(op))
void MESH_OT_navmesh_clear (struct wmOperatorType *ot)

Function Documentation

static int buildNavMesh ( const RecastData recastParams,
int  nverts,
float *  verts,
int  ntris,
int *  tris,
struct recast_polyMesh **  pmesh,
struct recast_polyMeshDetail **  dmesh 
) [static]
static int compare ( const void *  a,
const void *  b 
) [static]
static int create_navmesh_exec ( bContext C,
wmOperator op 
) [static]
static Object* createRepresentation ( bContext C,
struct recast_polyMesh *  pmesh,
struct recast_polyMeshDetail *  dmesh,
Base base 
) [static]
static void createVertsTrisData ( bContext C,
LinkNode obs,
int *  nverts_r,
float **  verts_r,
int *  ntris_r,
int **  tris_r 
) [static]
static int findFreeNavPolyIndex ( EditMesh em) [static]
void MESH_OT_navmesh_clear ( struct wmOperatorType ot)
void MESH_OT_navmesh_face_add ( struct wmOperatorType ot)
void MESH_OT_navmesh_face_copy ( struct wmOperatorType ot)
void MESH_OT_navmesh_make ( wmOperatorType ot)
void MESH_OT_navmesh_reset ( struct wmOperatorType ot)
static int navmesh_clear_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int navmesh_face_add_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int navmesh_face_copy_exec ( bContext C,
wmOperator op 
) [static]
static int navmesh_obmode_data_poll ( bContext C) [static]
static int navmesh_obmode_poll ( bContext C) [static]
static int navmesh_reset_exec ( bContext C,
wmOperator UNUSEDop 
) [static]