[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31710] trunk/blender: Renaming of Cylindric objects after a good proposal by Conz:
Dalai Felinto
dfelinto at gmail.com
Thu Sep 2 18:23:28 CEST 2010
Nevermind, I don't think any one needs a tube. And this is something
that can be done as an add-on, so no needs to be in code.
--
Dalai
2010/9/2 Thomas Dinges <dingto at gmx.de>:
> If we will have such a parameter this could work.
> The User can add a cylinder and then tweak it's inner radius, so he gets
> a tube.
>
> Am 02.09.2010 00:42, schrieb Dalai Felinto:
>> Can't Tube and Cylinder be the same object? But with the inner radius
>> as a parameter (when = 0 you have the cylinder on Conz's proposal)
>> Quoting wikipedia:
>> Tube: a hollow cylinder (geometry) - http://en.wikipedia.org/wiki/Tube
>>
>> 2010/9/1 Thomas Dinges<dingto at gmx.de>:
>>> Revision: 31710
>>> http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31710
>>> Author: dingto
>>> Date: 2010-09-01 23:11:33 +0200 (Wed, 01 Sep 2010)
>>>
>>> Log Message:
>>> -----------
>>> Renaming of Cylindric objects after a good proposal by Conz:
>>> http://www.vrchannel.de/blender/cylinder_rename.png
>>>
>>> Mesh Tube> Mesh Cylinder
>>> NURBS Tube> NURBS Cylinder
>>> Metaball Cylinder> Metaball Capsule
>>>
>>> I know that naming is something not everyone agrees on, but these terms look geometrically correct.
>>>
>>> Modified Paths:
>>> --------------
>>> trunk/blender/release/scripts/ui/space_info.py
>>> trunk/blender/source/blender/editors/curve/curve_intern.h
>>> trunk/blender/source/blender/editors/curve/curve_ops.c
>>> trunk/blender/source/blender/editors/curve/editcurve.c
>>> trunk/blender/source/blender/editors/include/UI_icons.h
>>> trunk/blender/source/blender/editors/mesh/editmesh_add.c
>>> trunk/blender/source/blender/editors/mesh/mesh_intern.h
>>> trunk/blender/source/blender/editors/mesh/mesh_ops.c
>>> trunk/blender/source/blender/editors/object/object_add.c
>>> trunk/blender/source/blender/makesrna/intern/rna_meta.c
>>>
>>> Modified: trunk/blender/release/scripts/ui/space_info.py
>>> ===================================================================
>>> --- trunk/blender/release/scripts/ui/space_info.py 2010-09-01 21:06:25 UTC (rev 31709)
>>> +++ trunk/blender/release/scripts/ui/space_info.py 2010-09-01 21:11:33 UTC (rev 31710)
>>> @@ -169,7 +169,7 @@
>>> layout.operator("mesh.primitive_circle_add", icon='MESH_CIRCLE', text="Circle")
>>> layout.operator("mesh.primitive_uv_sphere_add", icon='MESH_UVSPHERE', text="UV Sphere")
>>> layout.operator("mesh.primitive_ico_sphere_add", icon='MESH_ICOSPHERE', text="Icosphere")
>>> - layout.operator("mesh.primitive_tube_add", icon='MESH_TUBE', text="Tube")
>>> + layout.operator("mesh.primitive_cylinder_add", icon='MESH_CYLINDER', text="Cylinder")
>>> layout.operator("mesh.primitive_cone_add", icon='MESH_CONE', text="Cone")
>>> layout.separator()
>>> layout.operator("mesh.primitive_grid_add", icon='MESH_GRID', text="Grid")
>>> @@ -200,7 +200,7 @@
>>> layout.operator("surface.primitive_nurbs_surface_curve_add", icon='SURFACE_NCURVE', text="NURBS Curve")
>>> layout.operator("surface.primitive_nurbs_surface_circle_add", icon='SURFACE_NCIRCLE', text="NURBS Circle")
>>> layout.operator("surface.primitive_nurbs_surface_surface_add", icon='SURFACE_NSURFACE', text="NURBS Surface")
>>> - layout.operator("surface.primitive_nurbs_surface_tube_add", icon='SURFACE_NTUBE', text="NURBS Tube")
>>> + layout.operator("surface.primitive_nurbs_surface_cylinder_add", icon='SURFACE_NCYLINDER', text="NURBS Cylinder")
>>> layout.operator("surface.primitive_nurbs_surface_sphere_add", icon='SURFACE_NSPHERE', text="NURBS Sphere")
>>> layout.operator("surface.primitive_nurbs_surface_torus_add", icon='SURFACE_NTORUS', text="NURBS Torus")
>>>
>>>
>>> Modified: trunk/blender/source/blender/editors/curve/curve_intern.h
>>> ===================================================================
>>> --- trunk/blender/source/blender/editors/curve/curve_intern.h 2010-09-01 21:06:25 UTC (rev 31709)
>>> +++ trunk/blender/source/blender/editors/curve/curve_intern.h 2010-09-01 21:11:33 UTC (rev 31710)
>>> @@ -97,7 +97,7 @@
>>> void SURFACE_OT_primitive_nurbs_surface_curve_add(struct wmOperatorType *ot);
>>> void SURFACE_OT_primitive_nurbs_surface_circle_add(struct wmOperatorType *ot);
>>> void SURFACE_OT_primitive_nurbs_surface_surface_add(struct wmOperatorType *ot);
>>> -void SURFACE_OT_primitive_nurbs_surface_tube_add(struct wmOperatorType *ot);
>>> +void SURFACE_OT_primitive_nurbs_surface_cylinder_add(struct wmOperatorType *ot);
>>> void SURFACE_OT_primitive_nurbs_surface_sphere_add(struct wmOperatorType *ot);
>>> void SURFACE_OT_primitive_nurbs_surface_torus_add(struct wmOperatorType *ot);
>>>
>>>
>>> Modified: trunk/blender/source/blender/editors/curve/curve_ops.c
>>> ===================================================================
>>> --- trunk/blender/source/blender/editors/curve/curve_ops.c 2010-09-01 21:06:25 UTC (rev 31709)
>>> +++ trunk/blender/source/blender/editors/curve/curve_ops.c 2010-09-01 21:11:33 UTC (rev 31710)
>>> @@ -105,7 +105,7 @@
>>> WM_operatortype_append(SURFACE_OT_primitive_nurbs_surface_curve_add);
>>> WM_operatortype_append(SURFACE_OT_primitive_nurbs_surface_circle_add);
>>> WM_operatortype_append(SURFACE_OT_primitive_nurbs_surface_surface_add);
>>> - WM_operatortype_append(SURFACE_OT_primitive_nurbs_surface_tube_add);
>>> + WM_operatortype_append(SURFACE_OT_primitive_nurbs_surface_cylinder_add);
>>> WM_operatortype_append(SURFACE_OT_primitive_nurbs_surface_sphere_add);
>>> WM_operatortype_append(SURFACE_OT_primitive_nurbs_surface_torus_add);
>>>
>>>
>>> Modified: trunk/blender/source/blender/editors/curve/editcurve.c
>>> ===================================================================
>>> --- trunk/blender/source/blender/editors/curve/editcurve.c 2010-09-01 21:06:25 UTC (rev 31709)
>>> +++ trunk/blender/source/blender/editors/curve/editcurve.c 2010-09-01 21:11:33 UTC (rev 31710)
>>> @@ -5867,13 +5867,13 @@
>>> makeknots(nu, 2);
>>> }
>>> break;
>>> - case CU_PRIM_TUBE: /* tube */
>>> + case CU_PRIM_TUBE: /* Cylinder */
>>> if( cutype==CU_NURBS ) {
>>> Curve *cu= (Curve*)obedit->data;
>>>
>>> if(newname) {
>>> - rename_id((ID *)obedit, "SurfTube");
>>> - rename_id((ID *)obedit->data, "SurfTube");
>>> + rename_id((ID *)obedit, "SurfCylinder");
>>> + rename_id((ID *)obedit->data, "SurfCylinder");
>>> }
>>>
>>> nu= add_nurbs_primitive(C, mat, CU_NURBS|CU_PRIM_CIRCLE, 0); /* circle */
>>> @@ -6235,21 +6235,21 @@
>>> ED_object_add_generic_props(ot, TRUE);
>>> }
>>>
>>> -static int add_primitive_nurbs_surface_tube_exec(bContext *C, wmOperator *op)
>>> +static int add_primitive_nurbs_surface_cylinder_exec(bContext *C, wmOperator *op)
>>> {
>>> return surf_prim_add(C, op, CU_PRIM_TUBE|CU_NURBS);
>>> }
>>>
>>> -void SURFACE_OT_primitive_nurbs_surface_tube_add(wmOperatorType *ot)
>>> +void SURFACE_OT_primitive_nurbs_surface_cylinder_add(wmOperatorType *ot)
>>> {
>>> /* identifiers */
>>> - ot->name= "Add Surface Tube";
>>> - ot->description= "Construct a Nurbs surface Tube";
>>> - ot->idname= "SURFACE_OT_primitive_nurbs_surface_tube_add";
>>> + ot->name= "Add Surface Cylinder";
>>> + ot->description= "Construct a Nurbs surface Cylinder";
>>> + ot->idname= "SURFACE_OT_primitive_nurbs_surface_cylinder_add";
>>>
>>> /* api callbacks */
>>> ot->invoke= ED_object_add_generic_invoke;
>>> - ot->exec= add_primitive_nurbs_surface_tube_exec;
>>> + ot->exec= add_primitive_nurbs_surface_cylinder_exec;
>>> ot->poll= ED_operator_scene_editable;
>>>
>>> /* flags */
>>>
>>> Modified: trunk/blender/source/blender/editors/include/UI_icons.h
>>> ===================================================================
>>> --- trunk/blender/source/blender/editors/include/UI_icons.h 2010-09-01 21:06:25 UTC (rev 31709)
>>> +++ trunk/blender/source/blender/editors/include/UI_icons.h 2010-09-01 21:11:33 UTC (rev 31710)
>>> @@ -345,7 +345,7 @@
>>> DEF_ICON(ICON_MESH_ICOSPHERE)
>>> DEF_ICON(ICON_MESH_GRID)
>>> DEF_ICON(ICON_MESH_MONKEY)
>>> -DEF_ICON(ICON_MESH_TUBE)
>>> +DEF_ICON(ICON_MESH_CYLINDER)
>>> DEF_ICON(ICON_MESH_TORUS)
>>> DEF_ICON(ICON_MESH_CONE)
>>> DEF_ICON(ICON_BLANK610)
>>> @@ -362,14 +362,14 @@
>>> DEF_ICON(ICON_META_CUBE)
>>> DEF_ICON(ICON_META_BALL)
>>> DEF_ICON(ICON_META_ELLIPSOID)
>>> -DEF_ICON(ICON_META_TUBE)
>>> +DEF_ICON(ICON_META_CAPSULE)
>>> DEF_ICON(ICON_BLANK625)
>>>
>>> /* PRIMITIVES */
>>> DEF_ICON(ICON_SURFACE_NCURVE)
>>> DEF_ICON(ICON_SURFACE_NCIRCLE)
>>> DEF_ICON(ICON_SURFACE_NSURFACE)
>>> -DEF_ICON(ICON_SURFACE_NTUBE)
>>> +DEF_ICON(ICON_SURFACE_NCYLINDER)
>>> DEF_ICON(ICON_SURFACE_NSPHERE)
>>> DEF_ICON(ICON_SURFACE_NTORUS)
>>> DEF_ICON(ICON_BLANK636)
>>>
>>> Modified: trunk/blender/source/blender/editors/mesh/editmesh_add.c
>>> ===================================================================
>>> --- trunk/blender/source/blender/editors/mesh/editmesh_add.c 2010-09-01 21:06:25 UTC (rev 31709)
>>> +++ trunk/blender/source/blender/editors/mesh/editmesh_add.c 2010-09-01 21:11:33 UTC (rev 31710)
>>> @@ -1265,7 +1265,7 @@
>>> case PRIM_PLANE: return "Plane";
>>> case PRIM_CUBE: return "Cube";
>>> case PRIM_CIRCLE: return "Circle";
>>> - case PRIM_CYLINDER: return "Tube";
>>> + case PRIM_CYLINDER: return "Cylinder";
>>> case PRIM_CONE: return "Cone";
>>> case PRIM_GRID: return "Grid";
>>> case PRIM_UVSPHERE: return "Sphere";
>>> @@ -1421,7 +1421,7 @@
>>> ED_object_add_generic_props(ot, TRUE);
>>> }
>>>
>>> -static int add_primitive_tube_exec(bContext *C, wmOperator *op)
>>> +static int add_primitive_cylinder_exec(bContext *C, wmOperator *op)
>>> {
>>> int enter_editmode;
>>> unsigned int layer;
>>> @@ -1439,16 +1439,16 @@
>>> return OPERATOR_FINISHED;
>>> }
>>>
>>> -void MESH_OT_primitive_tube_add(wmOperatorType *ot)
>>> +void MESH_OT_primitive_cylinder_add(wmOperatorType *ot)
>>> {
>>> /* identifiers */
>>> - ot->name= "Add Tube";
>>> - ot->description= "Construct a tube mesh";
>>> - ot->idname= "MESH_OT_primitive_tube_add";
>>> + ot->name= "Add Cylinder";
>>> + ot->description= "Construct a cylinder mesh";
>>> + ot->idname= "MESH_OT_primitive_cylinder_add";
>>>
>>> /* api callbacks */
>>> ot->invoke= ED_object_add_generic_invoke;
>>> - ot->exec= add_primitive_tube_exec;
>>> + ot->exec= add_primitive_cylinder_exec;
>>> ot->poll= ED_operator_scene_editable;
>>>
>>> /* flags */
>>>
>>> Modified: trunk/blender/source/blender/editors/mesh/mesh_intern.h
>>> ===================================================================
>>> --- trunk/blender/source/blender/editors/mesh/mesh_intern.h 2010-09-01 21:06:25 UTC (rev 31709)
>>> +++ trunk/blender/source/blender/editors/mesh/mesh_intern.h 2010-09-01 21:11:33 UTC (rev 31710)
>>> @@ -71,7 +71,7 @@
>>> void MESH_OT_primitive_plane_add(struct wmOperatorType *ot);
>>> void MESH_OT_primitive_cube_add(struct wmOperatorType *ot);
>>> void MESH_OT_primitive_circle_add(struct wmOperatorType *ot);
>>> -void MESH_OT_primitive_tube_add(struct wmOperatorType *ot);
>>> +void MESH_OT_primitive_cylinder_add(struct wmOperatorType *ot);
>>> void MESH_OT_primitive_cone_add(struct wmOperatorType *ot);
>>> void MESH_OT_primitive_grid_add(struct wmOperatorType *ot);
>>> void MESH_OT_primitive_monkey_add(struct wmOperatorType *ot);
>>>
>>> Modified: trunk/blender/source/blender/editors/mesh/mesh_ops.c
>>> ===================================================================
>>> --- trunk/blender/source/blender/editors/mesh/mesh_ops.c 2010-09-01 21:06:25 UTC (rev 31709)
>>> +++ trunk/blender/source/blender/editors/mesh/mesh_ops.c 2010-09-01 21:11:33 UTC (rev 31710)
>>> @@ -75,7 +75,7 @@
>>> WM_operatortype_append(MESH_OT_primitive_plane_add);
>>> WM_operatortype_append(MESH_OT_primitive_cube_add);
>>> WM_operatortype_append(MESH_OT_primitive_circle_add);
>>> - WM_operatortype_append(MESH_OT_primitive_tube_add);
>>> + WM_operatortype_append(MESH_OT_primitive_cylinder_add);
>>> WM_operatortype_append(MESH_OT_primitive_cone_add);
>>> WM_operatortype_append(MESH_OT_primitive_grid_add);
>>> WM_operatortype_append(MESH_OT_primitive_monkey_add);
>>>
>>> Modified: trunk/blender/source/blender/editors/object/object_add.c
>>> ===================================================================
>>> --- trunk/blender/source/blender/editors/object/object_add.c 2010-09-01 21:06:25 UTC (rev 31709)
>>> +++ trunk/blender/source/blender/editors/object/object_add.c 2010-09-01 21:11:33 UTC (rev 31710)
>>> @@ -495,7 +495,7 @@
>>>
>>> static EnumPropertyItem prop_metaball_types[]= {
>>> {MB_BALL, "MBALL_BALL", ICON_META_BALL, "Meta Ball", ""},
>>> - {MB_TUBE, "MBALL_TUBE", ICON_META_TUBE, "Meta Tube", ""},
>>> + {MB_TUBE, "MBALL_CAPSULE", ICON_META_CAPSULE, "Meta Capsule", ""},
>>> {MB_PLANE, "MBALL_PLANE", ICON_META_PLANE, "Meta Plane", ""},
>>> {MB_CUBE, "MBALL_CUBE", ICON_META_CUBE, "Meta Cube", ""},
>>> {MB_ELIPSOID, "MBALL_ELLIPSOID", ICON_META_ELLIPSOID, "Meta Ellipsoid", ""},
>>>
>>> Modified: trunk/blender/source/blender/makesrna/intern/rna_meta.c
>>>
>>> @@ Diff output truncated at 10240 characters. @@
>>>
>>> _______________________________________________
>>> Bf-blender-cvs mailing list
>>> Bf-blender-cvs at blender.org
>>> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>>>
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>
More information about the Bf-committers
mailing list