How do we Shear a Sketch in FreeCAD?

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
FC-1
Posts: 8
Joined: Mon May 02, 2016 3:26 pm

How do we Shear a Sketch in FreeCAD?

Postby FC-1 » Mon May 02, 2016 4:07 pm

Hi,

First of all, thanks for FreeCAD. I'm really impressed with this program, and love the workflow 8-)

As you've guessed from the title, I have the question : How do we 'Shear' a Sketch in FreeCAD?
I'm planning some custom lettering, and it will need to be sheared in order to make it italic.

Any advice on how to do this would be appreciated!
wandererfan
Posts: 2881
Joined: Tue Nov 06, 2012 5:42 pm

Re: How do we Shear a Sketch in FreeCAD?

Postby wandererfan » Wed May 04, 2016 12:30 pm

I don't think there is a Gui command to do a shear transformation.

You could make a custom font in Fontforge, then use Draft.ShapeString or Part.makeWireString.

In Python, you could use TopoShape.transformGeometry/transformShape with the appropriate matrix.

wf
User avatar
quick61
Posts: 3793
Joined: Sat Aug 24, 2013 2:49 am
Location: u.S.A.

Re: How do we Shear a Sketch in FreeCAD?

Postby quick61 » Wed May 04, 2016 1:57 pm

FC-1 wrote:Hi,

First of all, thanks for FreeCAD. I'm really impressed with this program, and love the workflow 8-)

As you've guessed from the title, I have the question : How do we 'Shear' a Sketch in FreeCAD?
I'm planning some custom lettering, and it will need to be sheared in order to make it italic.

Any advice on how to do this would be appreciated!
Hi FC-1, Welcome to FreeCAD and the forum,

What I would do would be to use a program like Inkscape to manipulate my text the way I want it and then save as SVG and import the file as geometry into FreeCAD, extrude it if I needed a 3D solid and go from there. Here is a quick example of doing just that and cutting the sheared text from a Part > Cube.
ShearedTxt.png
ShearedTxt.png (9.93 KiB) Viewed 1162 times
Inkscape is a good program to have along side FreeCAD. Most of FreeCAD's icons were/are made with Inkscape and it works great for converting drawing and are into geometry, sense it is a vector graphics program.

Mark
This post made with 0.0% Micro$oft products - GOT LINUX?
User avatar
bejant
Posts: 5803
Joined: Thu Jul 11, 2013 3:06 pm

Re: How do we Shear a Sketch in FreeCAD?

Postby bejant » Wed May 04, 2016 3:08 pm

FC-1 wrote:I'm planning some custom lettering, and it will need to be sheared in order to make it italic.
Hi FC-1, do you want to create a new font from scratch or do you want to use an existing font for your custom lettering? If you can use an existing font for your custom lettering, try using the Draft WB > ShapeString tool:
Image
Wiki page: Draft_ShapeString
FC-1
Posts: 8
Joined: Mon May 02, 2016 3:26 pm

Re: How do we Shear a Sketch in FreeCAD?

Postby FC-1 » Wed May 25, 2016 2:08 pm

Thanks all for the suggestions, but none would work for me.

I'm torn because I don't like switching programs all the time, but what I really like about FreeCAD is the abillity to specify and work with it's constraints system. Take the capital letter 'T' for example. Before I shear it, the vertical stem might be 1.0 in width, but after shearing, the width of that stem becomes narrower. In FreeCAD, using the constraints system, I could constrain the width of the stem before I shear, ensuring the width of the stem keeps it's width. But without being able to shear, it's pointless me even working in FreeCAD because shear is something used a lot in CAD, I use it myself a heck of a lot.

It's hard to believe a CAD program exists without the ability to shear, I've never known it before, but apparently FreeCAD is such a program, so I can't use it. I have no room to complain, I realise that, but nevertheless I hope they add the ability to shear sketches in the future, because lack of shearing is quite a serious limitation for a CAD program.

I'll just have to check back now and then and hope they add shearing.
Thanks again.
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: How do we Shear a Sketch in FreeCAD?

Postby NormandC » Wed May 25, 2016 2:18 pm

FC-1 wrote: But without being able to shear, it's pointless me even working in FreeCAD because shear is something used a lot in CAD, I use it myself a heck of a lot.
I've been working with CAD for almost 20 years and I've never heard of a shearing function in any of the CAD software I've used. In fact I have no clue what you mean by shearing.

So please do not assume that because you desperately need it everybody does.
FC-1
Posts: 8
Joined: Mon May 02, 2016 3:26 pm

Re: How do we Shear a Sketch in FreeCAD?

Postby FC-1 » Wed May 25, 2016 2:51 pm

NormandC wrote:I've been working with CAD for almost 20 years and I've never heard of a shearing function in any of the CAD software I've used. In fact I have no clue what you mean by shearing.
I find it positively absurd that you can work with CAD for 20 years and not know what shearing is :shock:
NormandC wrote:So please do not assume that because you desperately need it everybody does.
Please do not assume that all designers are as unaware of vital CAD functions as you have just proven yourself to be. The function is not there, therefore I can't use the program, therefore the only option I have is "to check back now and then and hope they add shearing".

Which is exactly what I said :roll:

My post was written in plain English and was easy to comprehend, but your completely pointless rant has added nothing useful to the discussion. Please refrain from doing this in the future.
User avatar
DeepSOIC
Posts: 6844
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: How do we Shear a Sketch in FreeCAD?

Postby DeepSOIC » Wed May 25, 2016 2:53 pm

shear-a-sketch.png
shear-a-sketch.png (26.82 KiB) Viewed 1071 times
shear-a-sketch.FCStd
(4.34 KiB) Downloaded 17 times
Now the question is - who's going to bother writing a feature :P
ickby
Posts: 2912
Joined: Wed Oct 05, 2011 7:36 am

Re: How do we Shear a Sketch in FreeCAD?

Postby ickby » Wed May 25, 2016 2:57 pm

Most likely there is a missunderstanding here. I'm also not aware of any mechanical CAD that provides shear tools, for example solid works (one of the most used ones out there) provides stretch and scale, but not shear: http://help.solidworks.com/2015/English ... ls_top.htm

FC-1 could you explain your background? I suppose you come from the artistic or 2d side of CAD tools? I could imagine a shear ool to be usefull there.
FC-1
Posts: 8
Joined: Mon May 02, 2016 3:26 pm

Re: How do we Shear a Sketch in FreeCAD?

Postby FC-1 » Wed May 25, 2016 2:59 pm

Cool stuff, DeepSOIC!
And doesn't that green-coloured username suggest that you should write it? :mrgreen: