Bare with me if this is a stupid question (and it probably is), but what is the most elegant way to shrink/extend an object so its outline is by a certain amount larger/smaller than the current one?
I can achieve this either by scaling, but calculating the factor can be tricky and I'm concerned that the resulting coordinates are not precise (i.e. 2.9998 instead of three). I also helped myself by constructing the new outline with parallel lines etc., which results in an exact outline but is a lot of work.
As a background: I'm creating outlines for laser cutting (not cutting myself though but sending them to Formulor where they accept only SVG). Since I now that the kerf will be e.g. 0.2mm for a certain thickness, I want to compensate this by increasing/decreasing the ideal outline by this amount.
Increasing/decreasing outline size by a specific offset
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
-
- Active Member
- Posts: 31
- Joined: Sun Aug 10, 2014 11:58 am
Re: Increasing/decreasing outline size by a specific offset
Hi Oxdeadbeef - welcome in the forum!
Just to be sure that we are talking about the same thing: You are looking do create something like this "red dash" line around the white given shape for a CnC job?
If not - could you please attach an example dxf. Thanks.
Just to be sure that we are talking about the same thing: You are looking do create something like this "red dash" line around the white given shape for a CnC job?
If not - could you please attach an example dxf. Thanks.
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
-
- Active Member
- Posts: 31
- Joined: Sun Aug 10, 2014 11:58 am
Re: Increasing/decreasing outline size by a specific offset
Yep. Just not on both sides.
Simplest example: I want to cut a circle from e.g. a transparent material (layer 1) and insert it in a hole in an opaque material (layer 2). Since I know that the CO2 laser will create an kerf of ~0.2mm, I want to reduce either the hole size or increase the circle size by by 0.2mm to compensate the kerf.
Now for a circle this is easy. For a complex object though, I didn't find an elegant way to do this yet.
Simplest example: I want to cut a circle from e.g. a transparent material (layer 1) and insert it in a hole in an opaque material (layer 2). Since I know that the CO2 laser will create an kerf of ~0.2mm, I want to reduce either the hole size or increase the circle size by by 0.2mm to compensate the kerf.
Now for a circle this is easy. For a complex object though, I didn't find an elegant way to do this yet.
Re: Increasing/decreasing outline size by a specific offset
Ok - understood. For simple entities like a line or a circle the "Line tool" / "Parallel with distance" would do the job.0xdeadbeef wrote:For a complex object though, I didn't find an elegant way to do this yet.
For more complex objects I would recommend to get familiar with the use of Polylines. You can create a shape in first place as a Polyline or you can create a Polyline based on a Selection. The nice thing about a Polyline shape is - you can use the Polyline Offset Tool to handle easily the needed offset to compensate the kerf of a CO2 Laser etc. etc. etc.
Check this out (yes I know - it's ugly!): Try this for yourself:
Load this drawing and play around with the Polyline / Offset tool (Menu -> Draw -> Polyline -> Offset). An additional Option-bar will pop up and you can put in the correct value for the kerf. Will this suits your needs?
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
-
- Active Member
- Posts: 31
- Joined: Sun Aug 10, 2014 11:58 am
Re: Increasing/decreasing outline size by a specific offset
Ah, that's exactly what I searched for - but the "polyline from segment" thing was hidden to deep and located in a menu (draw) where I didn't expect it.
But ok, that seems to work just great. Thanks!
[Edit]
Sorry for bugging, but while converting shapes into polylines something weird happened in one case. See appended screenshot. The outline and the rectangular section where merged into one polyline. I don't quite understand how this could have happened as obviously this can't be one polygon and I understood a polyline can't contain intersections!?
But ok, that seems to work just great. Thanks!
[Edit]
Sorry for bugging, but while converting shapes into polylines something weird happened in one case. See appended screenshot. The outline and the rectangular section where merged into one polyline. I don't quite understand how this could have happened as obviously this can't be one polygon and I understood a polyline can't contain intersections!?
- Attachments
-
- polyline.png (3.45 KiB) Viewed 6492 times