## Center of a Rectangle

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules

demackison
Posts: 67
Joined: Mon Nov 24, 2014 7:54 pm

### Center of a Rectangle

Is there a way to constrain the center of a rectangle (or other symmetrical non-arc/circle)?
jmaustpc
Posts: 10377
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

### Re: Center of a Rectangle

demackison wrote:Is there a way to constrain the center of a rectangle (or other symmetrical non-arc/circle)?

If so, use symmetry constraint with two diagonally opposed vertices.
demackison
Posts: 67
Joined: Mon Nov 24, 2014 7:54 pm

### Re: Center of a Rectangle

Yes.
jmaustpc wrote:If so, use symmetry constraint with two diagonally opposed vertices.
I looked at http://www.freecadweb.org/wiki/index.ph ... _Symmetric and I don't see how to let the program know which of the three points is the center.
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm

### Re: Center of a Rectangle

The third selected point will be considered the center.

From the command page you linked:
The documentation wrote:Alternatively it can constrain two points to be symmetric with respect to a third one.
jmaustpc
Posts: 10377
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

### Re: Center of a Rectangle

if you put the mouse pointer over the toll it pops up a tool tip that tells you how to use the tool, as with the other tools. Are your tool tips not working?
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm

### Re: Center of a Rectangle

I just remembered I recorded a quick video a year ago. Starting at 1:40 I'm adding a symmetric constraint between diagonally opposed filleted corners of a rectangle and the origin point.
http://youtu.be/w2HGxWmMr-A
cox
Posts: 963
Joined: Wed Nov 26, 2014 11:37 pm

### Re: Center of a Rectangle

While reading this post i tried some constraints on rectangles and I found some strange behavior.

In the attached file, select first the two most left vertices, then the lower line of the right most rectangle(or one of its vertices). After selecting symmetry constraint on these selections all geometry bunches up in a vertical line.

Could this be a bug?

OS: "Arch Linux"
Word size of OS: 64-bit
Version: 0.15.4199 (Git)
Branch: master
Hash: 3904d0a8ee63b67979e9e71e61e423cfe331926a
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 3.1.3
OCC version: 6.7.1
Attachments
centerconstr.fcstd
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm

### Re: Center of a Rectangle

I can't reproduce on the current latest release on Windows. The symmetric constraint gets added as expected.

OS: Windows 7
Word size: 64-bit
Version: 0.14.3700 (Git)
Hash: 32f5aae0a64333ec8d5d160dbc46e690510c8fe1
Python version: 2.7.6
Qt version: 4.8.5
Coin version: 4.0.0a
SoQt version: 1.6.0a
OCC version: 6.6.0

I will test on the Daily Build tonight.
bejant
Posts: 6076
Joined: Thu Jul 11, 2013 3:06 pm

### Re: Center of a Rectangle

Works as expected for me using:

OS: Ubuntu 14.04.1 LTS
Word size of OS: 32-bit
Version: 0.15.4236 (Git)
Branch: master
Hash: f5a4e680681f30bb9396f1968ec3f9f82d175837
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.1
cox
Posts: 963
Joined: Wed Nov 26, 2014 11:37 pm

### Re: Center of a Rectangle

Could you please post a file with the final constraint applied so i can test.