Blender V5.3
bmo_primitive.cc File Reference
#include <algorithm>
#include <cmath>
#include "MEM_guardedalloc.h"
#include "BLI_array.hh"
#include "BLI_math_base_safe.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BKE_customdata.hh"
#include "bmesh.hh"
#include "intern/bmesh_operators_private.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define VERT_MARK   1
#define EDGE_ORIG   1
#define EDGE_MARK   2
#define FACE_MARK   1
#define FACE_NEW   2
#define XY(_x, _y)

Functions

void blender::bmo_create_grid_exec (BMesh *bm, BMOperator *op)
void blender::BM_mesh_calc_uvs_grid (BMesh *bm, uint x_segments, uint y_segments, short oflag, int cd_loop_uv_offset)
static float3 blender::quadsphere_co_from_cube_equi_angular (const float3 &co, const bool on_face[3], const float angle, const float angle_scale)
static float3 blender::quadsphere_co_from_cube (const float3 &co, const bool on_face[3], const QuadSphereMethod method)
void blender::bmo_create_quadsphere_exec (BMesh *bm, BMOperator *op)
void blender::bmo_create_uvsphere_exec (BMesh *bm, BMOperator *op)
void blender::bmo_create_icosphere_exec (BMesh *bm, BMOperator *op)
static void blender::bm_mesh_calc_uvs_sphere_face (BMFace *f, const int cd_loop_uv_offset)
void blender::BM_mesh_calc_uvs_sphere (BMesh *bm, short oflag, int cd_loop_uv_offset)
void blender::bmo_create_monkey_exec (BMesh *bm, BMOperator *op)
void blender::bmo_create_circle_exec (BMesh *bm, BMOperator *op)
void blender::BM_mesh_calc_uvs_circle (BMesh *bm, float mat[4][4], float radius, short oflag, int cd_loop_uv_offset)
void blender::bmo_create_cone_exec (BMesh *bm, BMOperator *op)
void blender::BM_mesh_calc_uvs_cone (BMesh *bm, float mat[4][4], float radius_top, float radius_bottom, int segments, bool cap_ends, short oflag, int cd_loop_uv_offset)
void blender::bmo_create_cube_exec (BMesh *bm, BMOperator *op)
void blender::BM_mesh_calc_uvs_cube (BMesh *bm, short oflag)

Variables

static const float blender::icovert [12][3]
static const short blender::icoface [20][3]
static const float blender::icouvs [60][2]
static const int blender::monkeyo = 4
static const int blender::monkeynv = 271
static const int blender::monkeynf = 250
static const signed char blender::monkeyv [271][3]
static signed char blender::monkeyf [250][4]
static const float blender::monkeyuvs []
static const char blender::cube_faces [6][4]
static const float blender::cube_faces_uv [6][2]

Detailed Description

Primitive shapes.

Definition in file bmo_primitive.cc.

Macro Definition Documentation

◆ EDGE_MARK

#define EDGE_MARK   2

Definition at line 716 of file bmo_primitive.cc.

◆ EDGE_ORIG

#define EDGE_ORIG   1

Definition at line 715 of file bmo_primitive.cc.

Referenced by blender::bmo_create_uvsphere_exec().

◆ FACE_MARK

#define FACE_MARK   1

Definition at line 718 of file bmo_primitive.cc.

◆ FACE_NEW

#define FACE_NEW   2

Definition at line 719 of file bmo_primitive.cc.

◆ VERT_MARK

#define VERT_MARK   1

Definition at line 713 of file bmo_primitive.cc.

◆ XY

#define XY ( _x,
_y )
Value:
((_x) + ((_y) * (xtot + 1)))