Jump to content
How to Install Plugins ×

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


Recommended Posts

Yeah I see it it appears to be a windows rounding error when it strokes a path. Change the brush size to 1 and the Rounding error disappears.

 

Post Edit - Confirmed this happens with other software (KAXAML) -Windows GDI+ bug.

 

If you have KAXAML try this and the same effect is evident. 

<Page
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
   <Canvas Width="1000">
      <Path
         Width="800"
         Height="600"
         Canvas.Left="0"
         Canvas.Top="0"
         Data="M 10,10 L 250,490,490,10 Q 250,230,10,10"
          StrokeThickness ="3"
         Fill ="#FF999999"
         Stroke="#FF000000"
         Stretch=" None"/>
   </Canvas>
</Page>

Post Edit - With the Brush size as 1 effect diminishes but doesn't disappear.

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

You are right. When I increase the brush size to 20 looks even worst.

-----------

Sorry TR but I am alergic to code  :D.

-----------

BoltBait has a Zolution.

 

Can this be integrated to the effect?

Edited by Eli
Link to comment
Share on other sites

You can fix it by putting a Z at the end of the shape.

<Page
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
   <Canvas Width="1000">
      <Path
         Width="800"
         Height="600"
         Canvas.Left="0"
         Canvas.Top="0"
         Data="M 10,10 L 250,490,490,10 Q 250,230,10,10 Z"
          StrokeThickness ="3"
         Fill ="#FF999999"
         Stroke="#FF000000"
         Stretch=" None"/>
   </Canvas>
</Page>
Link to comment
Share on other sites

Windows GDI+ bug.

Nope. This is a bug in how the shape is designed.

 

BoltBait has a Zolution.

 

Can this be integrated to the effect?

The reason this works is that the way you originally designed the shape, the renderer doesn't know that the curve should attach to the first point. The Z causes the curve shape to attach to the line shape. Now that the renderer knows the shapes are attached the proper connection is drawn.

TR's solution also works as well. By drawing your shape starting at the bottom point it forces the curve and line to be joined. Of course, then the tip won't be drawn correctly unless you add a Z again.

Link to comment
Share on other sites

TR's workaround works but I think it would be best to let the effect add the Zolution to the shape.

 

Z is already defined to individual Paths. That's the "Closed Path" button. The reason it wasn't included as a separate command for a group of Paths is because the Paths can be rearranged and regrouped and the "Z" relationship would change. This would have added a level of confusion. The question is how often would this "Group Z" be required?

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

IMHO the main confusion is because XAML uses the path definition of SVG and adds its own specification around. The path in SVG (and therefore XAML) consists of subpaths defined by M and Z markers. Each subpath can be open or closed. This definition is important to use the fillmode (evenodd or nonzero) in the right way. Grouping of paths is different.

midoras signature.gif

Link to comment
Share on other sites

Ouff... I did it. Thanks TR. I kept rearranging the lines and everytime I managed to put two or more line ends together. I wish there was something that would diferenciate the beginning from the end of a line. (Now that I have my glasses it seems that the beginning is a dark green circle, I am not sure... It is hard to see even when I zoom it)

Link to comment
Share on other sites

That's a feature (not a bug) in my rocket :lol:

Link to comment
Share on other sites

  • 2 weeks later...

Shapemaker 


Version 1.2.0+


 


Ready for download


 


Version 1.2.0+ adds


 


Updated Manuals


New Grid for easier alignment.


Cubic Spline Macro Button


 Close Individual Path & Close Contiguous Paths 


2 new WYSIWYG handle markers:


Triangle marker forcontiguous lines link


Box marker for Paths closure


Path List prefixes:


"Z"  and "MZ" indications for Close Path


Node (nub) and Path count in Status Bar


4X & 8X Zoom


  • Upvote 6

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

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