From 430533b9a259eb3dac44755306dfb0fddb34951d Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Tue, 8 Nov 2016 15:05:30 +0100 Subject: Improve mesh handling in Fill and Stroke dialog. Create new meshes with alternating color/white pattern (makes it more obvious a mesh has been created). (bzr r15229) --- src/sp-mesh-array.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sp-mesh-array.h') diff --git a/src/sp-mesh-array.h b/src/sp-mesh-array.h index 2ba1bfd5d..ee9243753 100644 --- a/src/sp-mesh-array.h +++ b/src/sp-mesh-array.h @@ -202,6 +202,9 @@ public: // Transform array void transform(Geom::Affine const &m); + // Transform mesh to fill box. Return true if not identity transform. + bool fill_box(Geom::OptRect &box); + // Find bounding box // Geom::OptRect findBoundingBox(); -- cgit v1.2.3 From 09d3ef953448a73c20dc1a70c2f96e0ac5019f45 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Wed, 16 Nov 2016 16:22:39 +0100 Subject: Split selected rows/columns in half using Insert key. (bzr r15251) --- src/sp-mesh-array.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sp-mesh-array.h') diff --git a/src/sp-mesh-array.h b/src/sp-mesh-array.h index ee9243753..df43638db 100644 --- a/src/sp-mesh-array.h +++ b/src/sp-mesh-array.h @@ -76,7 +76,8 @@ enum MeshCornerOperation { MG_CORNER_SIDE_ARC, MG_CORNER_TENSOR_TOGGLE, MG_CORNER_COLOR_SMOOTH, - MG_CORNER_COLOR_PICK + MG_CORNER_COLOR_PICK, + MG_CORNER_INSERT }; enum MeshNodeOperation { @@ -192,6 +193,7 @@ public: unsigned int tensor_toggle( std::vector< unsigned int > ); unsigned int color_smooth( std::vector< unsigned int > ); unsigned int color_pick( std::vector< unsigned int >, SPItem* ); + unsigned int insert( std::vector< unsigned int > ); // Update other nodes in response to a node move. void update_handles( unsigned int corner, std::vector< unsigned int > selected_corners, Geom::Point old_p, MeshNodeOperation op ); -- cgit v1.2.3