if (verts == NULL || num_verts <3) return;
- const int vertex_num = m_verts->size();
-
// make a polyscone from these vertex indices.
const BSP_FaceInd fi = m_faces->size();
){
// This creates a new polygon on the end of the face list.
- const BSP_FaceInd fi = m_faces->size();
m_faces->push_back(BSP_MFace());
BSP_MFace & face = m_faces->back();
// choose a plane for the node. The first index in this
// mesh fragment will do for now.
- vector<BSP_MVertex> & verts = m_mesh->VertexSet();
// choose a random splitting plane
// fragment onto the output
vector<BSP_FaceInd>::const_iterator in_frag_it = in_frag->FaceSet().begin();
vector<BSP_FaceInd>::const_iterator in_frag_end = in_frag->FaceSet().end();
- vector<BSP_MFace>::iterator faces = in_frag->Mesh()->FaceSet().begin();
if (keep == current || current == e_classified_on) {
for (;in_frag_it != in_frag_end; ++ in_frag_it) {
{
float M_oldmat[4][4];
float M_identity[4][4];
- float enforce = 1.0;
if (!constraint || !ob)
return;
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "zlib.h"
int fromBufferSize,
BlendReadError *error_r)
{
- static char *functionality_check= "\0FUNCTIONALITY_CHECK += BLO_readblenfilememory\n";
int magiclen = strlen(headerMagic);
BlendFileData *bfd = NULL;
int fd,
BlendReadError *error_r)
{
- static char *functionality_check= "\0FUNCTIONALITY_CHECK += BLO_readblenfilehandle\n";
int magiclen = strlen(headerMagic);
BlendFileData *bfd = NULL;
char tempbuffer[256];
char *fileName,
BlendReadError *error_r)
{
- static char *functionality_check= "\0FUNCTIONALITY_CHECK += BLO_readblenfilename\n";
BlendFileData *bfd = NULL;
int fd;
char *path,
BlendReadError *error_r)
{
- static char *functionality_check= "\0FUNCTIONALITY_CHECK += BLO_read_runtime\n";
BlendFileData *bfd= NULL;
int fd, datastart;
char buf[8];
{
int i;
char str[64];
- char keyname[32];
- float x, y, ybase;
+ float x, y;
uiBlock *block;
- uiBut *but;
- short ofsx, ofsy = 0;
#define RVKBGCOL .6, .65, .7
#define XIC 20
#define YIC 20
TransVert *tv;
Base *base;
Object *ob;
- float gridf, *curs, imat[3][3], bmat[3][3], vec[3];
+ float *curs, imat[3][3], bmat[3][3], vec[3];
int a;
curs= give_cursor();
TransVert *tv;
Base *base;
float *curs, bmat[3][3], vec[3], min[3], max[3], centroid[3];
- int count, a;
+ int count;
curs= give_cursor();
TransVert *tv;
Base *base;
Object *ob;
- float gridf, snaploc[3], imat[3][3], bmat[3][3], vec[3], min[3], max[3], centroid[3];
+ float snaploc[3], imat[3][3], bmat[3][3], vec[3], min[3], max[3], centroid[3];
int count, a;
static void select_poseelement_by_name (char *name, int select);
static void hilight_channel (bAction *act, bActionChannel *chan, short hilight);
static void set_action_key_time (bAction *act, bPoseChannel *chan, int adrcode, short makecurve, float time);
-static void clever_numbuts_meshaction(Key *key, short* mval);
-
/* Implementation */
short showsliders = 0;
{
unsigned short event= evt->event;
short val= evt->val;
- char ascii= evt->ascii;
SpaceAction *saction;
bAction *act;
int doredraw= 0;
static void clever_keyblock_names(Key *key, short* mval){
int but=0, i, keynum;
char str[64];
- float x, min, max;
+ float x;
KeyBlock *kb;
/* get the keynum cooresponding to the y value
* of the mouse pointer, return if this is
{
unsigned short event= evt->event;
short val= evt->val;
- char ascii= evt->ascii;
SpaceImaSel *simasel;
short mval[2];
{
unsigned short event= evt->event;
short val= evt->val;
- char ascii= evt->ascii;
SpaceNla *snla = curarea->spacedata.first;
int doredraw= 0;
short mval[2];
void flip_subdivison(Object *ob, int level)
{
- Base *base;
- Mesh *me, *tme;
- short i, j;
+ Mesh *me;
me = ob->data;
{
Oops *oops;
Object *ob;
- ID *id = idt;
char str1[10];
static char naam[256];
static char naam2[256];
{
unsigned short event= evt->event;
short val= evt->val;
- char ascii= evt->ascii;
float dx, dy;
int doredraw= 0, cfra, first = 0;
short mval[2];
static int get_hilited_entry(SpaceFile *sfile)
{
- int a, count=0;
+ int a;
for(a=0; a<sfile->totfile; a++) {
if(sfile->filelist[a].flags & HILITE) {
{
unsigned short event= evt->event;
short val= evt->val;
- char ascii= evt->ascii;
static int acto=0;
SpaceFile *sfile;
int act, do_draw= 0, i, test, ret = 0;
void group_menu(void)
{
Base *base;
- short nr, len;
- char *str, tstr[40];
+ short nr;
+ char *str;
/* make menu string */
void BIF_read_file(char *name)
{
extern short winqueue_break; /* editscreen.c */
- extern char datatoc_splash_jpg[];
- extern int datatoc_splash_jpg_size;
//here?
//sound_end_all_sounds();
char tstr[FILE_MAXDIR+FILE_MAXFILE], scestr[FILE_MAXDIR];
char *home= BLI_gethome();
int success;
+#ifdef _WIN32 // FULLSCREEN
static int screenmode = -1;
-#ifdef _WIN32 // FULLSCREEN
screenmode = U.uiflag & FLIPFULLSCREEN;
#endif
void exit_usiblender(void)
{
- extern char *fsmenu; /* filesel.c */
-
freeAllRad();
BKE_freecubetable();
unsigned int dataIn,
struct streamGlueHeaderStruct *streamGlueHeader)
{
- static char *functionality_check= "\0FUNCTIONALITY_CHECK += BLO_writeblenfile\n";
struct BLO_writeblenfileStruct *writeblenfileStruct = 0;
int fileDes;
extern int mywfile;
if (objectdrawmode & RAS_IPolyMaterial::SHADOW)
{
// shadow must be cast to the ground, physics system needed here!
- KX_GameObject* gameobj = (KX_GameObject*) this->m_clientobject;
+ // KX_GameObject* gameobj = (KX_GameObject*) this->m_clientobject;
MT_Point3 frompoint(oglmatrix[12],oglmatrix[13],oglmatrix[14]);
MT_Vector3 direction = MT_Vector3(0,0,-1);
direction.normalize();
direction *= 100000;
- MT_Point3 topoint = frompoint + direction;
+ // MT_Point3 topoint = frompoint + direction;
MT_Point3 resultpoint;
MT_Vector3 resultnormal;