Mirror with any plane (part wb)
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
Mirror with any plane (part wb)
How to mirror an object with any plane (or datum plane) in part wb?
Or this feature is missing?
Or this feature is missing?
- Attachments
-
- Capture.JPG (32.43 KiB) Viewed 1364 times
Re: Mirror with any plane (part wb)
You can change the Normal of the plane in the properties later. Or use Draft_Mirror.
Re: Mirror with any plane (part wb)
Not easy to get the normal vector.
Re: Mirror with any plane (part wb)
I agree.
Re: Mirror with any plane (part wb)
hi
Macro_Normal_Vector
mario
Macro_Normal_Vector
Code: Select all
Gui.Selection.getSelectionEx()[0].SubObjects[0].Faces[0].normalAt(0,0)
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.
My macros on Gist.github here complete macros Wiki and forum.
Re: Mirror with any plane (part wb)
While I can use an expression for the placement, I didn's succeed with the normal vector. Does anyone know how to do that?mario52 wrote: ↑Mon Jun 21, 2021 8:20 amCode: Select all
Gui.Selection.getSelectionEx()[0].SubObjects[0].Faces[0].normalAt(0,0)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
-
- Veteran
- Posts: 3193
- Joined: Thu Sep 24, 2020 10:31 pm
- Location: Hawaii
- Contact:
Re: Mirror with any plane (part wb)
If you have an xy plane, then Placement.Rotation(Vector(0,0,1), NormalVector) will rotate it into the NormalVector direction.
Re: Mirror with any plane (part wb)
Makes me think to this old topic : https://forum.freecadweb.org/viewtopic. ... 88#p325356
Re: Mirror with any plane (part wb)
I failed to use this as an Expression for the normal vector, probably due to the function call. How is it possible - if at all?edwilliams16 wrote: ↑Mon Jun 21, 2021 8:56 am If you have an xy plane, then Placement.Rotation(Vector(0,0,1), NormalVector) will rotate it into the NormalVector direction.
Edit: Have to check openBrain's/GlouGlou's example.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Mirror with any plane (part wb)
Thanks for the trick with the line indicating the directionopenBrain wrote: ↑Mon Jun 21, 2021 9:16 am Makes me think to this old topic : https://forum.freecadweb.org/viewtopic. ... 88#p325356
As a simplification it is possible to use for the Base of the mirror a single expression: plane.Placement.Base.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.