If you have a straight horizontal line, e.g. length 200mm, Stroke 100mm
The size of this object, i.e. the bounding box, Width x Height depends logically on the end caps.
Butt cap: 200 x 100 (as expected)
Round cap: 301.424 x 100.01 (Why ???)
Square cap: 300 x 100 (as expected)
What is the reason? Can anybody explain? Why such strange numbers?
I thought the round caps are just two added half circles with a diameter identical to the stroke width.
If I believe the manual the bounding box width should always be like the round one.
Quote: "Note The bounding box is determined by assuming the Cap style is Round. "
http://tavmjong.free.fr/INKSCAPE/MANUAL ... troke.html
What changes the length and thickness of rounded strokes?
What changes the length and thickness of rounded strokes?
Win7/64, Inkscape 0.92.2
Re: What changes the length and thickness of rounded strokes?
The way I interpret that quote, is it applies to the bevels. Although that doesn't make much sense either. Maybe that's one of the many parts of the manual which are outdated?
Does this happen with geometric bounding box?
Does this happen with geometric bounding box?
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: What changes the length and thickness of rounded strokes?
What do you mean with geometric bounding box?
It's the width and height in the tool controls bar which changes unexpectedly when you go to "Rounded Cap".
It's the width and height in the tool controls bar which changes unexpectedly when you go to "Rounded Cap".
Win7/64, Inkscape 0.92.2
Re: What changes the length and thickness of rounded strokes?
I can't confirm the change of line width with different cap styles (0.92.1). Well, not with geometric bounding box.
But it does change if you use the visual bounding box, as it should.
The bounding box options are not just about the bounding box. They are about whether the stroke width (and a few other things like miter or bevel style, cap style, etc.) are included in both the bounding box and object size or dimensions. For visual bounding box, those things are included. For geometric bb, they are not included.
To be honest, I was too lazy to test for myself, when I read your message the first time. So I was asking you which kind of bounding box you saw these things, mostly to make sure what you were seeing wasn't a bug (or maybe a new feature that I didn't know about).
But it does change if you use the visual bounding box, as it should.
The bounding box options are not just about the bounding box. They are about whether the stroke width (and a few other things like miter or bevel style, cap style, etc.) are included in both the bounding box and object size or dimensions. For visual bounding box, those things are included. For geometric bb, they are not included.
To be honest, I was too lazy to test for myself, when I read your message the first time. So I was asking you which kind of bounding box you saw these things, mostly to make sure what you were seeing wasn't a bug (or maybe a new feature that I didn't know about).
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: What changes the length and thickness of rounded strokes?
OK, to make sure that we are talking about the same thing... Yes, the miter is another thing.
The lines in the GIF-demo have a length of 100 mm and a stroke width of 100 mm.
For the square cap I understand and expect the addition of a half square (stroke width x stroke width) on each end. This gives a new line length (here: bounding box WIDTH) of 200 mm, whereas the (stroke) width (here: bounding box "HEIGHT") stays the same. All fine!
For the round cap I understand and expect the addition of a half circle on each end with a diameter of stroke width. Which should give the same bounding box width (200 mm) and height (100 mm) as in the square cap case.
However, it changes to width 201.424 and height 100.010. My question is why?
The lines in the GIF-demo have a length of 100 mm and a stroke width of 100 mm.
For the square cap I understand and expect the addition of a half square (stroke width x stroke width) on each end. This gives a new line length (here: bounding box WIDTH) of 200 mm, whereas the (stroke) width (here: bounding box "HEIGHT") stays the same. All fine!
For the round cap I understand and expect the addition of a half circle on each end with a diameter of stroke width. Which should give the same bounding box width (200 mm) and height (100 mm) as in the square cap case.
However, it changes to width 201.424 and height 100.010. My question is why?
Win7/64, Inkscape 0.92.2
Re: What changes the length and thickness of rounded strokes?
...to say it in another image:
top: expected rounded cap
bottom: exaggerated rounded cap
Maybe the complete path gets thicker, but that's contradictory because the stroke width is still 100 mm not 100.010 mm
top: expected rounded cap
bottom: exaggerated rounded cap
Maybe the complete path gets thicker, but that's contradictory because the stroke width is still 100 mm not 100.010 mm
Win7/64, Inkscape 0.92.2
-
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: What changes the length and thickness of rounded strokes?
Looks like a bounding box error, the stroke seems to be the correct size.
Tested with a 2000px line having a red 1000px stroke.
Duplicated the line and put a round cap on green copy, moved behind red original.
Tested with a 2000px line having a red 1000px stroke.
Duplicated the line and put a round cap on green copy, moved behind red original.
- Attachments
-
- BigRoundCap.svg
- (2.33 KiB) Downloaded 247 times
Have a nice day.
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
Re: What changes the length and thickness of rounded strokes?
Thanks, @tylerdurden, for checking.
When you use stroke to path afterwards it takes the wrong values from the bounding box and you don't get the originally intended object size. I will check/file a bug report on launchpad.
When you use stroke to path afterwards it takes the wrong values from the bounding box and you don't get the originally intended object size. I will check/file a bug report on launchpad.
Win7/64, Inkscape 0.92.2
Re: What changes the length and thickness of rounded strokes?
I agree, the change in height is totally unexpected, and probably, if not a bug itself, then bug-related.
My best guess is that the change in width (beyond what is expected) is probably related to the the same problem or bug as the height change.
My best guess is that the change in width (beyond what is expected) is probably related to the the same problem or bug as the height change.
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: What changes the length and thickness of rounded strokes?
...just for your information:
https://bugs.launchpad.net/inkscape/+bug/1680179
https://bugs.launchpad.net/inkscape/+bug/1680179
Win7/64, Inkscape 0.92.2