Mirror along plane, weird behaviour
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 along plane, weird behaviour
I'm using:
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/Canada (en_CA)
I have a sketch like so:
Then I pad it as normal, and I select mirror along the highlighted face:
That looks perfect. I then go to sketch on one of the faces:
As soon as I click "create sketch", this monstrosity is created:
Basically the same thing happens if I try to do anything, like create an additive box:
Not really sure what's going on here, so any clues would be appreciated. I can provide the file if that would be helpful.
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/Canada (en_CA)
I have a sketch like so:
Then I pad it as normal, and I select mirror along the highlighted face:
That looks perfect. I then go to sketch on one of the faces:
As soon as I click "create sketch", this monstrosity is created:
Basically the same thing happens if I try to do anything, like create an additive box:
Not really sure what's going on here, so any clues would be appreciated. I can provide the file if that would be helpful.
Re: Mirror along plane, weird behaviour
Hi and welcome to the forum!
Please upload the file. Maybe you have a cyclic dependency.
Please upload the file. Maybe you have a cyclic dependency.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Mirror along plane, weird behaviour
Drawing attached. I don't get any errors at this point, but if I follow the steps I outlined or try to create an additive box, I do see these messages like this in the report view:
I'm just not clear on what's circular. The mirror is defined on a reference plane that is a padded line from a sketch, so it seems like it should be a DAG, but maybe I'm just not clear on how FreeCAD tracks these. These errors don't happen if I choose a surface that's on the sketch plane.
Thanks for the help!
Code: Select all
10:46:37 126.801 <App> Document.cpp(3172): The graph must be a DAG.
10:46:39 128.933 <App> Document.cpp(3527): Modular_Drawers#Mirrored still touched after recompute
10:46:39 128.933 <App> Document.cpp(3527): Modular_Drawers#Pad still touched after recompute
Thanks for the help!
- Attachments
-
- Modular Drawers.FCStd
- (43.32 KiB) Downloaded 33 times
Re: Mirror along plane, weird behaviour
Unfortunately I can not reproduce the mess I see in your image. The weakest point in your approach is that you mirror on a face. The model is more stable when you mirror to X, Y or Z axis. The sketch can in that case be more simple. Here is my revised file
- Attachments
-
- Modular Drawers-Willem.FCStd
- (44.34 KiB) Downloaded 30 times
Re: Mirror along plane, weird behaviour
I am not sure what steps you are taking. I tried your file in both the release version 0.19 and a very recent version 0.20. I had no problem creating a sketch on the existing object and padding it.
Worked fine with no error messages. (Not recommended to sketch directly on an existing face, but I did so because it appeared that was your method.)
If you could explain step-by-step what you are doing it may clear up the mystery.
Gene
Worked fine with no error messages. (Not recommended to sketch directly on an existing face, but I did so because it appeared that was your method.)
If you could explain step-by-step what you are doing it may clear up the mystery.
Gene
Re: Mirror along plane, weird behaviour
Unfortunately your file does not match the desired output model. The mirroring has to take place along a diagonal plane orthogonal to the sketch surface for the interlocking to work as desired. Compare the position of the pockets and the pillars in my image and your model. See my upcoming reply to GeneFC to reproduce the messy image I posted about.
Re: Mirror along plane, weird behaviour
I tried this on another Windows 10 computer with FreeCAD 0.19, and I still see the problem [1]. I'll try explaining steps again to reproduce:
1. Open FreeCAD file
2. Switch to Part Design
3. Select the face that's highlighted here and select "Map sketch to face": 4. "TopLeft" should be selected, click OK.
5. "FlatFace (current)(suggested)" should be selected, click OK.
6. Click "Create a new sketch". Bizarreness ensues. Sometimes you have to click "close" to see the weirdness, but not always.
7. If you undo the creation of that sketch, then even adding an additive box or cylinder creates bizarre results, almost like FreeCAD or the model is now in an invalid state.
Hopefully that's clear enough.
[1] OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/Canada (en_CA)
-
- Veteran
- Posts: 5513
- Joined: Thu Apr 05, 2018 1:53 am
Re: Mirror along plane, weird behaviour
Rather than select a generated face add a construction line to your sketch and use Construction Line 1 as the reference.
This will protect you from topological naming issues, at least somewhat. It could be what is happening with your model is the face you used as the mirror reference is getting renamed and now the mirror is happening on a different plane. That construction line will never get renamed as long as you don't add another construction line to that sketch, and if you do you can always select a new reference for the mirror.
Another tip: try to avoid 0 length constraints if possible.
This will protect you from topological naming issues, at least somewhat. It could be what is happening with your model is the face you used as the mirror reference is getting renamed and now the mirror is happening on a different plane. That construction line will never get renamed as long as you don't add another construction line to that sketch, and if you do you can always select a new reference for the mirror.
Another tip: try to avoid 0 length constraints if possible.
Re: Mirror along plane, weird behaviour
Thanks, that does the trick!TheMarkster wrote: ↑Tue Sep 28, 2021 3:53 pm Rather than select a generated face add a construction line to your sketch and use Construction Line 1 as the reference.
What's best practice for specifying that a point should fall on the x or y axis?Another tip: try to avoid 0 length constraints if possible.
-
- Veteran
- Posts: 5513
- Joined: Thu Apr 05, 2018 1:53 am
Re: Mirror along plane, weird behaviour
I would use point on edge constraint or sometimes select the point and the origin and apply a horizontal/vertical constraint to both of them.