Blender V4.3
split.cpp File Reference
#include "scene/camera.h"
#include "scene/mesh.h"
#include "subd/dice.h"
#include "subd/patch.h"
#include "subd/split.h"
#include "util/algorithm.h"
#include "util/foreach.h"
#include "util/hash.h"
#include "util/math.h"
#include "util/types.h"

Go to the source code of this file.

Macros

#define DSPLIT_NON_UNIFORM   -1
 
#define STITCH_NGON_CENTER_VERT_INDEX_OFFSET   0x60000000
 
#define STITCH_NGON_SPLIT_EDGE_CENTER_VERT_TAG   (0x60000000 - 1)
 

Functions

static void order_float2 (float2 &a, float2 &b)
 
static Edgecreate_edge_from_corner (DiagSplit *split, const Mesh *mesh, const Mesh::SubdFace &face, int corner, bool &reversed, int v0, int v1)
 
static Edgecreate_split_edge_from_corner (DiagSplit *split, const Mesh *mesh, const Mesh::SubdFace &face, int corner, int side, bool &reversed, int v0, int v1, int vc)
 

Macro Definition Documentation

◆ DSPLIT_NON_UNIFORM

#define DSPLIT_NON_UNIFORM   -1

Definition at line 22 of file subd/split.cpp.

Referenced by DiagSplit::split_quad().

◆ STITCH_NGON_CENTER_VERT_INDEX_OFFSET

#define STITCH_NGON_CENTER_VERT_INDEX_OFFSET   0x60000000

Definition at line 23 of file subd/split.cpp.

Referenced by DiagSplit::split_ngon().

◆ STITCH_NGON_SPLIT_EDGE_CENTER_VERT_TAG

#define STITCH_NGON_SPLIT_EDGE_CENTER_VERT_TAG   (0x60000000 - 1)

Definition at line 24 of file subd/split.cpp.

Referenced by DiagSplit::post_split(), and DiagSplit::split_ngon().

Function Documentation

◆ create_edge_from_corner()

static Edge * create_edge_from_corner ( DiagSplit * split,
const Mesh * mesh,
const Mesh::SubdFace & face,
int corner,
bool & reversed,
int v0,
int v1 )
static

Definition at line 354 of file subd/split.cpp.

References b, Edge::is_stitch_edge, mod(), and swap.

Referenced by DiagSplit::split_quad().

◆ create_split_edge_from_corner()

static Edge * create_split_edge_from_corner ( DiagSplit * split,
const Mesh * mesh,
const Mesh::SubdFace & face,
int corner,
int side,
bool & reversed,
int v0,
int v1,
int vc )
static

Definition at line 421 of file subd/split.cpp.

References b, mod(), and swap.

Referenced by DiagSplit::split_ngon().

◆ order_float2()

static void order_float2 ( float2 & a,
float2 & b )
static

Definition at line 40 of file subd/split.cpp.

References b, and swap.