|
Blender V4.3
|
#include "DNA_anim_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "MEM_guardedalloc.h"#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BLT_translation.hh"#include "BKE_context.hh"#include "BKE_curve.hh"#include "BKE_layer.hh"#include "DEG_depsgraph.hh"#include "RNA_access.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_curve.hh"#include "ED_object.hh"#include "ED_screen.hh"#include "ED_view3d.hh"#include "curve_intern.hh"Go to the source code of this file.
Variables | |
| static const float | nurbcircle [8][2] |
|
static |
Definition at line 599 of file editcurve_add.cc.
References CU_BEZIER, CU_PRIM_CIRCLE, and curve_prim_add().
Referenced by CURVE_OT_primitive_bezier_circle_add().
|
static |
Definition at line 576 of file editcurve_add.cc.
References CU_BEZIER, CU_PRIM_CURVE, and curve_prim_add().
Referenced by CURVE_OT_primitive_bezier_curve_add().
|
static |
Definition at line 668 of file editcurve_add.cc.
References CU_NURBS, CU_PRIM_PATH, and curve_prim_add().
Referenced by CURVE_OT_primitive_nurbs_path_add().
|
static |
Definition at line 645 of file editcurve_add.cc.
References CU_NURBS, CU_PRIM_CIRCLE, and curve_prim_add().
Referenced by CURVE_OT_primitive_nurbs_circle_add().
|
static |
Definition at line 622 of file editcurve_add.cc.
References CU_NURBS, CU_PRIM_CURVE, and curve_prim_add().
Referenced by CURVE_OT_primitive_nurbs_curve_add().
|
static |
Definition at line 715 of file editcurve_add.cc.
References CU_NURBS, CU_PRIM_CIRCLE, and surf_prim_add().
Referenced by SURFACE_OT_primitive_nurbs_surface_circle_add().
|
static |
Definition at line 692 of file editcurve_add.cc.
References CU_NURBS, CU_PRIM_CURVE, and surf_prim_add().
Referenced by SURFACE_OT_primitive_nurbs_surface_curve_add().
|
static |
Definition at line 761 of file editcurve_add.cc.
References CU_NURBS, CU_PRIM_TUBE, and surf_prim_add().
Referenced by SURFACE_OT_primitive_nurbs_surface_cylinder_add().
|
static |
Definition at line 784 of file editcurve_add.cc.
References CU_NURBS, CU_PRIM_SPHERE, and surf_prim_add().
Referenced by SURFACE_OT_primitive_nurbs_surface_sphere_add().
|
static |
Definition at line 738 of file editcurve_add.cc.
References CU_NURBS, CU_PRIM_PATCH, and surf_prim_add().
Referenced by SURFACE_OT_primitive_nurbs_surface_surface_add().
|
static |
Definition at line 807 of file editcurve_add.cc.
References 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 604 of file editcurve_add.cc.
References blender::ed::object::add_generic_props(), add_primitive_bezier_circle_exec(), blender::ed::object::add_unit_props_radius(), wmOperatorType::description, 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 581 of file editcurve_add.cc.
References blender::ed::object::add_generic_props(), add_primitive_bezier_exec(), blender::ed::object::add_unit_props_radius(), wmOperatorType::description, 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 650 of file editcurve_add.cc.
References blender::ed::object::add_generic_props(), add_primitive_nurbs_circle_exec(), blender::ed::object::add_unit_props_radius(), wmOperatorType::description, 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 627 of file editcurve_add.cc.
References blender::ed::object::add_generic_props(), add_primitive_nurbs_curve_exec(), blender::ed::object::add_unit_props_radius(), wmOperatorType::description, 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 673 of file editcurve_add.cc.
References blender::ed::object::add_generic_props(), add_primitive_curve_path_exec(), blender::ed::object::add_unit_props_radius(), wmOperatorType::description, 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 564 of file editcurve_add.cc.
References curvesurf_prim_add().
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 495 of file editcurve_add.cc.
References blender::ed::object::add_generic_get_opts(), blender::ed::object::add_type(), BKE_view_layer_edit_object_get(), BKE_view_layer_synced_ensure(), BLI_addtail(), 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(), blender::ed::object::editmode_exit_ex(), blender::ed::object::EM_FREEDATA, Curve::flag, get_curve_defname(), get_surf_defname(), Object::id, ID_RECALC_GEOMETRY, NC_OBJECT, ND_DRAW, blender::ed::object::new_primitive_matrix(), OB_CURVES_LEGACY, OB_SURF, object_editcurve_get(), OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), rot, 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 103 of file editcurve_add.cc.
References Curve::actnu, Curve::actvert, b, Nurb::bezt, BKE_nurb_handles_calc(), BKE_nurb_knot_calc_u(), BKE_nurb_knot_calc_v(), BKE_nurb_project_2d(), BKE_nurbList_flag_set(), BLI_addtail(), BLI_assert, BLI_assert_msg, BLI_listbase_count(), BLI_remlink(), Nurb::bp, copy_m4_m4(), copy_v3_v3(), CU_ACT_NONE, CU_BEZIER, CU_IS_2D, CU_NURB_BEZIER, CU_NURB_CYCLIC, CU_NURB_ENDPOINT, CU_NURBS, CU_PRIM_CIRCLE, CU_PRIM_CURVE, CU_PRIM_DONUT, CU_PRIM_PATCH, CU_PRIM_PATH, CU_PRIM_SPHERE, CU_PRIM_TUBE, CU_PRIMITIVE, CU_SMOOTH, CU_TYPE, Object::data, ED_curve_add_nurbs_primitive(), ed_editnurb_extrude_flag(), ed_editnurb_spin(), ed_editnurb_translate_flag(), ED_view3d_context_rv3d(), Curve::editnurb, ELEM, BezTriple::f1, BPoint::f1, BezTriple::f2, BezTriple::f3, Nurb::flag, Nurb::flagu, Nurb::flagv, float, BezTriple::h1, BezTriple::h2, HD_ALIGN, HD_AUTO, Nurb::knotsu, M_SQRT2, MEM_callocN, mul_m4_v3(), mul_mat3_m4_v3(), mul_v3_fl(), nurbcircle, object_editcurve_get(), Nurb::orderu, Nurb::orderv, Nurb::pntsu, Nurb::pntsv, BezTriple::radius, BPoint::radius, Curve::resolu, Nurb::resolu, Curve::resolv, Nurb::resolv, SELECT, Nurb::type, unit_m4(), USER_ADD_VIEWALIGNED, BezTriple::vec, BPoint::vec, RegionView3D::viewinv, RegionView3D::viewmat, BezTriple::weight, and BPoint::weight.
Referenced by curvesurf_prim_add(), ED_curve_add_nurbs_primitive(), and blender::ed::object::effector_add_exec().
|
static |
Definition at line 51 of file editcurve_add.cc.
References BLT_I18NCONTEXT_ID_CURVE_LEGACY, CTX_DATA_, CU_BEZIER, CU_PRIM_CIRCLE, CU_PRIM_CURVE, CU_PRIM_PATH, CU_PRIMITIVE, and CU_TYPE.
Referenced by curvesurf_prim_add().
|
static |
Definition at line 81 of file editcurve_add.cc.
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, and CU_PRIMITIVE.
Referenced by curvesurf_prim_add().
|
static |
Definition at line 569 of file editcurve_add.cc.
References curvesurf_prim_add().
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 720 of file editcurve_add.cc.
References blender::ed::object::add_generic_props(), add_primitive_nurbs_surface_circle_exec(), blender::ed::object::add_unit_props_radius(), wmOperatorType::description, 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 697 of file editcurve_add.cc.
References blender::ed::object::add_generic_props(), add_primitive_nurbs_surface_curve_exec(), blender::ed::object::add_unit_props_radius(), wmOperatorType::description, 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 766 of file editcurve_add.cc.
References blender::ed::object::add_generic_props(), add_primitive_nurbs_surface_cylinder_exec(), blender::ed::object::add_unit_props_radius(), wmOperatorType::description, 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 789 of file editcurve_add.cc.
References blender::ed::object::add_generic_props(), add_primitive_nurbs_surface_sphere_exec(), blender::ed::object::add_unit_props_radius(), wmOperatorType::description, 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 743 of file editcurve_add.cc.
References blender::ed::object::add_generic_props(), add_primitive_nurbs_surface_surface_exec(), blender::ed::object::add_unit_props_radius(), wmOperatorType::description, 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 812 of file editcurve_add.cc.
References blender::ed::object::add_generic_props(), add_primitive_nurbs_surface_torus_exec(), blender::ed::object::add_unit_props_radius(), wmOperatorType::description, 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 38 of file editcurve_add.cc.
Referenced by ED_curve_add_nurbs_primitive().