|
Blender
V2.93
|
#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 612 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 589 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 681 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 658 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 635 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 728 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 705 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 774 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 797 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 751 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 820 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 617 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 594 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 663 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 640 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 686 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 577 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 507 of file editcurve_add.c.
References BLI_addtail(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CU_3D, CU_DEFORM_FILL, 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(), mul_mat3_m4_fl(), Main::name, NC_OBJECT, ND_DRAW, NULL, OB_CURVE, 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 115 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 65 of file editcurve_add.c.
References BLT_I18NCONTEXT_ID_CURVE, 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 95 of file editcurve_add.c.
References BLT_I18NCONTEXT_ID_CURVE, CTX_DATA_, CU_PRIM_CIRCLE, CU_PRIM_CURVE, CU_PRIM_DONUT, CU_PRIM_PATCH, CU_PRIM_SPHERE, CU_PRIMITIVE, and type.
Referenced by curvesurf_prim_add().
|
static |
Definition at line 582 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 733 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 710 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 779 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 802 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 756 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 825 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 52 of file editcurve_add.c.