diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-17 13:27:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-17 13:27:23 +0400 |
commit | 14f9f167b2686a92883b754d111adbb5efec2515 (patch) | |
tree | 27132ff7ff9d8c65ecbcc26fab38bd3885870dea /release | |
parent | bb1b2529a0b0dce1b9c34e616436599ab5fd8021 (diff) |
display options to help with 3d printing.
editmesh debug info,
- overhang (with axis angle options)
- wall thickness (with min/max distance)
- self-intersections.
access below 'Mesh Display' panel.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 1c05bc7e556..40309067549 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -2607,6 +2607,44 @@ class VIEW3D_PT_view3d_meshdisplay(Panel): layout.prop(mesh, "show_extra_indices") +class VIEW3D_PT_view3d_meshstatvis(Panel): + bl_space_type = 'VIEW_3D' + bl_region_type = 'UI' + bl_label = "Mesh Debug" + + @classmethod + def poll(cls, context): + # The active object check is needed because of local-mode + return (context.active_object and (context.mode == 'EDIT_MESH')) + + def draw_header(self, context): + mesh = context.active_object.data + + self.layout.prop(mesh, "show_statvis", text="") + + def draw(self, context): + layout = self.layout + + mesh = context.active_object.data + statvis = context.tool_settings.statvis + layout.active = mesh.show_statvis + + layout.prop(statvis, "type") + statvis_type = statvis.type + if statvis_type == 'OVERHANG': + row = layout.row(align=True) + row.prop(statvis, "overhang_min", text="") + row.prop(statvis, "overhang_max", text="") + layout.prop(statvis, "overhang_axis", expand=True) + elif statvis_type == 'THICKNESS': + row = layout.row(align=True) + row.prop(statvis, "thickness_min", text="") + row.prop(statvis, "thickness_max", text="") + layout.prop(statvis, "thickness_samples") + elif statvis_type == 'INTERSECT': + pass + + class VIEW3D_PT_view3d_curvedisplay(Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' |