Mirror with any plane (part wb)

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!
mario52
Veteran
Posts: 4690
Joined: Wed May 16, 2012 2:13 pm

Re: Mirror with any plane (part wb)

Post by mario52 »

Hi

make request :

Plane mirror:

Plane XY
Plane XZ
Plane YZ
Plane on selected face

volunter ?

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Mirror with any plane (part wb)

Post by openBrain »

chrisb wrote: Mon Jun 21, 2021 9:37 am Thanks for the trick with the line indicating the direction
As a simplification it is possible to use for the Base of the mirror a single expression: plane.Placement.Base.
Indeed. As a further improvement, you can use :
For base : '<<MirrorPlane>>.Base.Placement' -- as stated by chrisb
For normal : '<<MirrorAxis>>.Shape.Curve.Direction'

EDIT : attach improved file
Attachments
multisection _OB.fcstd
(591.74 KiB) Downloaded 22 times
chrisb
Veteran
Posts: 54143
Joined: Tue Mar 17, 2015 9:14 am

Re: Mirror with any plane (part wb)

Post by chrisb »

openBrain wrote: Mon Jun 21, 2021 9:47 am For base : '<<MirrorPlane>>.Base.Placement' -- as stated by chrisb
For normal : '<<MirrorAxis>>.Shape.Curve.Direction'
Thanks!

For those not knowing how to set an expression for a compound property:
- Right click in the property panel, select "Show all"
- Right click on the property name (not the value) and select "Expression ..."
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Roy_043
Veteran
Posts: 8537
Joined: Thu Dec 27, 2018 12:28 pm

Re: Mirror with any plane (part wb)

Post by Roy_043 »

... Or click in the field and then click the f(x) button.
UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: Mirror with any plane (part wb)

Post by UR_ »

Or simply


- select Part object to mirror (cube in your example)
- select Part:plane
- hit

Screenshot 001.png
Screenshot 001.png (19.15 KiB) Viewed 971 times

from Lattice2 WB ... Done!


Full parametric mirror object is created.
edwilliams16
Veteran
Posts: 3179
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: Mirror with any plane (part wb)

Post by edwilliams16 »

Screen Shot 2021-06-21 at 12.00.00 PM.png
Screen Shot 2021-06-21 at 12.00.00 PM.png (78.95 KiB) Viewed 945 times
Screen Shot 2021-06-21 at 12.02.14 PM.png
Screen Shot 2021-06-21 at 12.02.14 PM.png (56.49 KiB) Viewed 945 times
For others wondering just how this all worked, <<MirrorAxis>> is a construction line created to provide the normal direction to <<MirrorPlane>> attached to the object to be mirrored. Expressions were then used to locate the mirror plane for the mirroring operation.
chrisb
Veteran
Posts: 54143
Joined: Tue Mar 17, 2015 9:14 am

Re: Mirror with any plane (part wb)

Post by chrisb »

Roy_043 wrote: Mon Jun 21, 2021 12:39 pm ... Or click in the field and then click the f(x) button.
:oops: You are right. I was still thinking of Placement, which doesn't have this button.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Vincent B
Veteran
Posts: 4731
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Mirror with any plane (part wb)

Post by Vincent B »

draft mirror like this. :D
Attachments
mirror.FCStd
(45.36 KiB) Downloaded 14 times
DraftMirror.FCStd
(48.01 KiB) Downloaded 17 times
Post Reply