Blender
V3.3
|
#include "DNA_anim_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLT_translation.h"
#include "BKE_context.h"
#include "BKE_curve.h"
#include "DEG_depsgraph.h"
#include "RNA_access.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_curve.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "ED_view3d.h"
#include "curve_intern.h"
Go to the source code of this file.
Variables | |
static const float | nurbcircle [8][2] |
|
static |
Definition at line 597 of file editcurve_add.c.
References C, CU_BEZIER, CU_PRIM_CIRCLE, and curve_prim_add().
Referenced by CURVE_OT_primitive_bezier_circle_add().
|
static |
Definition at line 574 of file editcurve_add.c.
References C, CU_BEZIER, CU_PRIM_CURVE, and curve_prim_add().
Referenced by CURVE_OT_primitive_bezier_curve_add().
|
static |
Definition at line 666 of file editcurve_add.c.
References C, CU_NURBS, CU_PRIM_PATH, and curve_prim_add().
Referenced by CURVE_OT_primitive_nurbs_path_add().
|
static |
Definition at line 643 of file editcurve_add.c.
References C, CU_NURBS, CU_PRIM_CIRCLE, and curve_prim_add().
Referenced by CURVE_OT_primitive_nurbs_circle_add().
|
static |
Definition at line 620 of file editcurve_add.c.
References C, CU_NURBS, CU_PRIM_CURVE, and curve_prim_add().
Referenced by CURVE_OT_primitive_nurbs_curve_add().
|
static |
Definition at line 713 of file editcurve_add.c.
References C, CU_NURBS, CU_PRIM_CIRCLE, and surf_prim_add().
Referenced by SURFACE_OT_primitive_nurbs_surface_circle_add().
|
static |
Definition at line 690 of file editcurve_add.c.
References C, CU_NURBS, CU_PRIM_CURVE, and surf_prim_add().
Referenced by SURFACE_OT_primitive_nurbs_surface_curve_add().
|
static |
Definition at line 759 of file editcurve_add.c.
References C, CU_NURBS, CU_PRIM_TUBE, and surf_prim_add().
Referenced by SURFACE_OT_primitive_nurbs_surface_cylinder_add().
|
static |
Definition at line 782 of file editcurve_add.c.
References C, CU_NURBS, CU_PRIM_SPHERE, and surf_prim_add().
Referenced by SURFACE_OT_primitive_nurbs_surface_sphere_add().
|
static |
Definition at line 736 of file editcurve_add.c.
References C, CU_NURBS, CU_PRIM_PATCH, and surf_prim_add().
Referenced by SURFACE_OT_primitive_nurbs_surface_surface_add().
|
static |
Definition at line 805 of file editcurve_add.c.
References C, CU_NURBS, CU_PRIM_DONUT, and surf_prim_add().
Referenced by SURFACE_OT_primitive_nurbs_surface_torus_add().
void CURVE_OT_primitive_bezier_circle_add | ( | wmOperatorType * | ot | ) |
Definition at line 602 of file editcurve_add.c.
References add_primitive_bezier_circle_exec(), wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
void CURVE_OT_primitive_bezier_curve_add | ( | wmOperatorType * | ot | ) |
Definition at line 579 of file editcurve_add.c.
References add_primitive_bezier_exec(), wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
void CURVE_OT_primitive_nurbs_circle_add | ( | wmOperatorType * | ot | ) |
Definition at line 648 of file editcurve_add.c.
References add_primitive_nurbs_circle_exec(), wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
void CURVE_OT_primitive_nurbs_curve_add | ( | wmOperatorType * | ot | ) |
Definition at line 625 of file editcurve_add.c.
References add_primitive_nurbs_curve_exec(), wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
void CURVE_OT_primitive_nurbs_path_add | ( | wmOperatorType * | ot | ) |
Definition at line 671 of file editcurve_add.c.
References add_primitive_curve_path_exec(), wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
|
static |
Definition at line 562 of file editcurve_add.c.
References C, curvesurf_prim_add(), and type.
Referenced by add_primitive_bezier_circle_exec(), add_primitive_bezier_exec(), add_primitive_curve_path_exec(), add_primitive_nurbs_circle_exec(), and add_primitive_nurbs_curve_exec().
|
static |
Definition at line 493 of file editcurve_add.c.
References BLI_addtail(), C, copy_v3_fl(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CU_3D, CU_PATH, CU_PRIM_PATH, Object::data, DEG_id_tag_update(), ED_curve_add_nurbs_primitive(), ED_object_add_generic_get_opts(), ED_object_add_type(), ED_object_editmode_exit_ex(), ED_object_new_primitive_matrix(), EM_FREEDATA, Curve::flag, get_curve_defname(), get_surf_defname(), Object::id, ID_RECALC_GEOMETRY, if(), NC_OBJECT, ND_DRAW, NULL, OB_CURVES_LEGACY, OB_SURF, OBEDIT_FROM_VIEW_LAYER, object_editcurve_get(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), rot, scene, type, Object::type, WM_event_add_notifier(), and WM_operator_view3d_unit_defaults().
Referenced by curve_prim_add(), and surf_prim_add().
Nurb* ED_curve_add_nurbs_primitive | ( | bContext * | C, |
Object * | obedit, | ||
float | mat[4][4], | ||
int | type, | ||
int | newob | ||
) |
Definition at line 101 of file editcurve_add.c.
References C, Object::data, ED_view3d_context_rv3d(), NULL, and object_editcurve_get().
Referenced by curvesurf_prim_add(), and effector_add_exec().
|
static |
Definition at line 49 of file editcurve_add.c.
References BLT_I18NCONTEXT_ID_CURVE_LEGACY, CTX_DATA_, CU_BEZIER, CU_PRIM_CIRCLE, CU_PRIM_CURVE, CU_PRIM_PATH, CU_PRIMITIVE, CU_TYPE, and type.
Referenced by curvesurf_prim_add().
|
static |
Definition at line 79 of file editcurve_add.c.
References BLT_I18NCONTEXT_ID_CURVE_LEGACY, CTX_DATA_, CU_PRIM_CIRCLE, CU_PRIM_CURVE, CU_PRIM_DONUT, CU_PRIM_PATCH, CU_PRIM_SPHERE, CU_PRIM_TUBE, CU_PRIMITIVE, and type.
Referenced by curvesurf_prim_add().
|
static |
Definition at line 567 of file editcurve_add.c.
References C, curvesurf_prim_add(), and type.
Referenced by add_primitive_nurbs_surface_circle_exec(), add_primitive_nurbs_surface_curve_exec(), add_primitive_nurbs_surface_cylinder_exec(), add_primitive_nurbs_surface_sphere_exec(), add_primitive_nurbs_surface_surface_exec(), and add_primitive_nurbs_surface_torus_exec().
void SURFACE_OT_primitive_nurbs_surface_circle_add | ( | wmOperatorType * | ot | ) |
Definition at line 718 of file editcurve_add.c.
References add_primitive_nurbs_surface_circle_exec(), wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
void SURFACE_OT_primitive_nurbs_surface_curve_add | ( | wmOperatorType * | ot | ) |
Definition at line 695 of file editcurve_add.c.
References add_primitive_nurbs_surface_curve_exec(), wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
void SURFACE_OT_primitive_nurbs_surface_cylinder_add | ( | wmOperatorType * | ot | ) |
Definition at line 764 of file editcurve_add.c.
References add_primitive_nurbs_surface_cylinder_exec(), wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
void SURFACE_OT_primitive_nurbs_surface_sphere_add | ( | wmOperatorType * | ot | ) |
Definition at line 787 of file editcurve_add.c.
References add_primitive_nurbs_surface_sphere_exec(), wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
void SURFACE_OT_primitive_nurbs_surface_surface_add | ( | wmOperatorType * | ot | ) |
Definition at line 741 of file editcurve_add.c.
References add_primitive_nurbs_surface_surface_exec(), wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
void SURFACE_OT_primitive_nurbs_surface_torus_add | ( | wmOperatorType * | ot | ) |
Definition at line 810 of file editcurve_add.c.
References add_primitive_nurbs_surface_torus_exec(), wmOperatorType::description, ED_object_add_generic_props(), ED_object_add_unit_props_radius(), ED_operator_scene_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
|
static |
Definition at line 36 of file editcurve_add.c.