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 /source/blender/makesdna | |
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 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_mesh_types.h | 3 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 22 |
2 files changed, 25 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h index 6bd92ac9da8..499b8176e1d 100644 --- a/source/blender/makesdna/DNA_mesh_types.h +++ b/source/blender/makesdna/DNA_mesh_types.h @@ -206,6 +206,9 @@ typedef struct TFace { #define ME_DRAW_FREESTYLE_EDGE (1 << 15) #define ME_DRAW_FREESTYLE_FACE (1 << 16) +/* draw stats */ +#define ME_DRAW_STATVIS (1 << 17) + /* Subsurf Type */ #define ME_CC_SUBSURF 0 #define ME_SIMPLE_SUBSURF 1 diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index b306bc9a64f..2626c128b3a 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -934,6 +934,21 @@ typedef enum { UNIFIED_PAINT_BRUSH_ALPHA_PRESSURE = (1 << 4) } UnifiedPaintSettingsFlags; +typedef struct MeshStatVis { + char type; + char _pad1[2]; + + /* overhang */ + char overhang_axis; + float overhang_min, overhang_max; + + /* thickness */ + float thickness_min, thickness_max; + char thickness_samples; + char _pad2[3]; +} MeshStatVis; + + /* *************************************************************** */ /* Tool Settings */ @@ -1071,6 +1086,8 @@ typedef struct ToolSettings { /* Unified Paint Settings */ struct UnifiedPaintSettings unified_paint_settings; + + struct MeshStatVis statvis; } ToolSettings; /* *************************************************************** */ @@ -1445,6 +1462,11 @@ typedef struct Scene { #define SCE_SELECT_EDGE 2 #define SCE_SELECT_FACE 4 +/* toolsettings->statvis->type */ +#define SCE_STATVIS_OVERHANG 0 +#define SCE_STATVIS_THICKNESS 1 +#define SCE_STATVIS_INTERSECT 2 + /* toolsettings->particle.selectmode for particles */ #define SCE_SELECT_PATH 1 #define SCE_SELECT_POINT 2 |