Blender  V2.59
Functions | Variables
TEX_distance.c File Reference
#include <math.h>
#include "BLI_math.h"
#include "../TEX_util.h"
#include "TEX_node.h"

Go to the source code of this file.

Functions

static void valuefn (float *out, TexParams *p, bNode *UNUSED(node), bNodeStack **in, short thread)
static void exec (void *data, bNode *node, bNodeStack **in, bNodeStack **out)
void register_node_type_tex_distance (ListBase *lb)

Variables

static bNodeSocketType inputs []
static bNodeSocketType outputs []

Detailed Description

Definition in file TEX_distance.c.


Function Documentation

static void exec ( void *  data,
bNode node,
bNodeStack **  in,
bNodeStack **  out 
) [static]

Definition at line 60 of file TEX_distance.c.

References tex_output(), and valuefn().

Referenced by register_node_type_tex_distance().

void register_node_type_tex_distance ( ListBase lb)
static void valuefn ( float *  out,
TexParams p,
bNode UNUSEDnode,
bNodeStack **  in,
short  thread 
) [static]

Definition at line 50 of file TEX_distance.c.

References len_v3v3(), and tex_input_vec().

Referenced by exec().


Variable Documentation

bNodeSocketType inputs[] [static]
Initial value:
 {
        { SOCK_VECTOR, 1, "Coordinate 1", 0.0f, 0.0f, 0.0f, 0.0f, -1.0f, 1.0f },
        { SOCK_VECTOR, 1, "Coordinate 2", 0.0f, 0.0f, 0.0f, 0.0f, -1.0f, 1.0f },
        { -1, 0, "" } 
}

Definition at line 39 of file TEX_distance.c.

Initial value:
 {
        { SOCK_VALUE, 0, "Value", 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f },
        { -1, 0, "" }
}

Definition at line 45 of file TEX_distance.c.