Jump to content
How to Install Plugins ×

ShapeMaker - by the Dwarf Horde (Jan 30th, 2016)


TechnoRobbo

Recommended Posts

Anyone using this plugin really should upgrade. The enhancements make shapes much easier to craft.

  • Upvote 4
Link to comment
Share on other sites

It unscrews and the front panel falls off :lol:

Classic! :lol:

Is there any special reason why the rotation nob doesn't loop around at -180/179?

It's a knob. Designed (by TR) to act like a real one. You turn it one way or the other. If it jumped from one extreme to the other I'm sure the behavior would confuse users. It would me!

  • Upvote 1
Link to comment
Share on other sites

It's a knob. Designed (by TR) to act like a real one. You turn it one way or the other. If it jumped from one extreme to the other I'm sure the behavior would confuse users. It would me!

 

The Angle Chooser in IndirectUI loops around, and I personally don't find that behavior confusing.

 

but this one goes to 11

 

11 what? What goes to 11?

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
Share on other sites

 

 

The Angle Chooser in IndirectUI loops around, and I personally don't find that behavior confusing.

It's a dual function knob - rotation and magnification, and magnification would be very confusing.

 

 

 

 

but this one goes to 11

 

11 what? What goes to 11?

 

  • Upvote 3

Go out there and be amazing. Have Fun, TR
TRsSig.png?raw=1
Some Pretty Pictures Some Cool Plugins

Link to comment
Share on other sites

Hello The Dwarf Team (Horde),

Thanks for the additions to Shape Maker. I am still trying to get a grasp on how to use it. I have one question: Are there any plans to make the canvas larger as in Dodge and Burn? I ask this because when I get close to the edges and try to use, for example, the quadratic tool, one of the handlers is outside the canvas and impossible to grab it. I also think that it feels better to work on a large canvas than on a small one. Sometimes I feel that it is like trying to type a text on a mobile phone. I prefer using a PC keyboard.  :)

Link to comment
Share on other sites

You can grab the entire shape and pan it about the canvas: Shift + Left click & drag any nub in the shape.

Link to comment
Share on other sites

 

 Are there any plans to make the canvas larger as in Dodge and Burn? I ask this because when I get close to the edges and try to use, for example, the quadratic tool, one of the handlers is outside the canvas and impossible to grab it. I also think that it feels better to work on a large canvas than on a small one. Sometimes I feel that it is like trying to type a text on a mobile phone. I prefer using a PC keyboard.   :)

The image size is stored as relative coordinates.The coordinates aren't fixed until you apply the shape with the shape tool, so using EER's suggestion you should be able to edit your shape.  Handles will fall outside the edges canvas no matter what size we make the canvas. That's exactly why the magnification feature was added.

 

 I am also running out of space at the top and at the bottom:

 

Just shrink the shape and continue. It's not actually shrinking the final outcome. (Internal coordinates are relative, you can't run out of room.)  

 

For the math geeks out there, here's a quick explanation. The Coordinates are normalized between 0 and 1 therefore the size of the canvas , in theory, is infinitesimal (but there is a physical limit to how small the distances can be and Shapemaker imposes a physical limit to how much you can enlarge to avoid an overflow error).

 

As for your results misalignment - Please post the text of the image so I can see the coordinates. I noticed this effect when non-contiguous shapes were scaled to a different height/width ratio than the original . If the coordinates of the corners are identical then it's a WPF thing, since Shapemaker only provides coordinates.

Go out there and be amazing. Have Fun, TR
TRsSig.png?raw=1
Some Pretty Pictures Some Cool Plugins

Link to comment
Share on other sites

TR, I decided to try something different and again it drew different from what ShapeMaker shows in the canvas :

 

shapemaker-lines-02-4ce9776.png

 

 

-------------------------------------------------------------------------------------------------------------------------------------------------------------
This is the Export Path Geometry :
-------------------------------------------------------------------------------------------------------------------------------------------------------------
 
 
<ps:SimpleGeometryShape xmlns="clr-namespace:PaintDotNet.UI.Media;assembly=PaintDotNet.Framework"
xmlns:ps="clr-namespace:PaintDotNet.Shapes;assembly=PaintDotNet.Framework"
DisplayName="Untitled">
<GeometryGroup FillRule="EvenOdd">
<PathGeometry>
<PathFigure IsClosed="False" IsFilled="True" StartPoint="237.5,225">
<LineSegment Point="275,225" />
<LineSegment Point="300,200" />
<LineSegment Point="237.5,200" />
<LineSegment Point="250,200" />
<LineSegment Point="250,150" />
<LineSegment Point="300,150" />
<LineSegment Point="300,100" />
<LineSegment Point="250,100" />
<LineSegment Point="250,50" />
<LineSegment Point="200,50" />
<LineSegment Point="200,100" />
<LineSegment Point="150,100" />
<LineSegment Point="150,150" />
<LineSegment Point="200,150" />
<LineSegment Point="200,200" />
<LineSegment Point="212.5,200" />
<LineSegment Point="150,200" />
<LineSegment Point="175,225" />
<LineSegment Point="212.5,225" />
<LineSegment Point="212.5,298.75" />
<LineSegment Point="237.5,298.75" />
<LineSegment Point="237.5,225" />
</PathFigure>
 
 
</PathGeometry>
</GeometryGroup>
 
</ps:SimpleGeometryShape>
 
----------------------------------------------------------------------------------------------------------------------------------------------------------
This is the Copy Path Stream result :
----------------------------------------------------------------------------------------------------------------------------------------------------------
 
 
M 237.5,225 L 275,225,300,200,237.5,200,250,200,250,150,300,150,300,100,250,100,250,50,200,50,200,100,150,100,150,150,200,150,200,200,212.5,200,150,200,175,225,212.5,225,212.5,298.75,237.5,298.75 L 237.5,225
Link to comment
Share on other sites

The internal details are doubling back on themselves. Better to do the closed shape as an outline and add in the internal details as paths completely separate from the closed outline.

 

yhsjjie_92.png

 

yhsjjie_93.png

<ps:SimpleGeometryShape xmlns="clr-namespace:PaintDotNet.UI.Media;assembly=PaintDotNet.Framework"
                        xmlns:ps="clr-namespace:PaintDotNet.Shapes;assembly=PaintDotNet.Framework"                 
                        DisplayName="Untitled"
                        Geometry="M 237.5,225 L 275,225,300,200,250,200,250,150,300,150,300,100,250,100,250,50,200,50,200,100,150,100,150,150,200,150,200,200,150,200,175,225,212.5,225,212.5,298.75,237.5,298.75 Z 
                        M 220,200 L 200,200 
                        M 250,200 L 230,200
"/>
  • Upvote 1
Link to comment
Share on other sites

Eli,

 

This is what I thought happened, you doubled-back on the line and made it angle. WPF adds decorative pointy finials to angles. The coordinates are correct it's just that WPF likes to make angles pointy,  the sharper the angle the longer the point!

 

Since you doubled back it rendered the longest finial possible.

 

WPF embellishes straight lines too. It's designed makes fancy shapes not CAD drawings. So don't expect WPF to give you architectural accuracy.  The finial disappears as the angles get to greater than 90°. 

 

In the example below the corners beneath the straight lines and the double-backed angles have the exact same coordinated.

 

 

Here's the SVG:

Hidden Content:
M 277.5,365 L 315,365,340,340,277.5,340,290,340,290,327.5,240,327.5,240,340,252.5,340,190,340,215,365,252.5,365,252.5,342.5,277.5,342.5 Z M 277.5,305 L 315,305,340,280,277.5,280,290,272.5,290,267.5,240,267.5,240,272.5,252.5,280,190,280,215,305,252.5,305,252.5,282.5,277.5,282.5 Z M 277.5,245 L 315,245,340,220,290,220,290,207.5,240,207.5,240,220,190,220,215,245,252.5,245,252.5,222.5,277.5,222.5 Z M 240,220 L 252.5,220 Z M 290,220 L 277.5,220 Z M 252.5,252.5 L 252.5,2555
  • Upvote 1

Go out there and be amazing. Have Fun, TR
TRsSig.png?raw=1
Some Pretty Pictures Some Cool Plugins

Link to comment
Share on other sites

Thanks for the information TR. I will try as suggested. Thanks EER too.

 

EDIT: Is there a way to draw dashed lines.  :) I am trying to make a foldable pattern.

Edited by Eli
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...