The ProjectionGroup feature now rotates the secondary views to match the primary view:
wf
Also SectionViews based on a subview in a ProjectionGroup should now be drawn with the correct SectionNormal.
This new code includes a large number of special cases, so sharpen your bug-reporting pencils. TechDraw - Multiview Projection Group
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- wandererfan
- Veteran
- Posts: 6326
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: TechDraw - Multiview Projection Group
Cool! I'll try to find some time to test.
-
- Posts: 19
- Joined: Tue May 31, 2016 9:23 am
Re: TechDraw - Multiview Projection Group
Amazing, I'll have to look into the code to see how you achieved that!
Two things I noticed:
1) The "Match 3D" button doesn't work anymore - it did work at some point, did it?
2) The section View calculates NaNs for the isometric projections. I'm not sure, how useful that is anyway but still. For some odd reasons, it works for detail views of isometric projections, but I'm not sure if the values are correct.
Another two simple bugs that have been in the code for some time:
1) When you delete a section view (or cancel the creation of one), the section arrows on the base view are still there until you recompute the view.
2) When you add a section view, the arrows indicate a "looking right" default value, but the section view doesn't show anything until you click one of the four buttons.
And I noticed another thing: When you rotate a view, and then create a section view, the arrows not rotated with the view, while the section is in an unrotated state.
Two things I noticed:
1) The "Match 3D" button doesn't work anymore - it did work at some point, did it?
2) The section View calculates NaNs for the isometric projections. I'm not sure, how useful that is anyway but still. For some odd reasons, it works for detail views of isometric projections, but I'm not sure if the values are correct.
Another two simple bugs that have been in the code for some time:
1) When you delete a section view (or cancel the creation of one), the section arrows on the base view are still there until you recompute the view.
2) When you add a section view, the arrows indicate a "looking right" default value, but the section view doesn't show anything until you click one of the four buttons.
And I noticed another thing: When you rotate a view, and then create a section view, the arrows not rotated with the view, while the section is in an unrotated state.
- wandererfan
- Veteran
- Posts: 6326
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: TechDraw - Multiview Projection Group
Pure, ugly brute force.CluelessJunk wrote:Amazing, I'll have to look into the code to see how you achieved that!
This should be the first version that ever worked. But this version only matches the nearest of the 6 cardinal directions (top/bottom/left/right/front/back) Think it does right side up and up side down, too.CluelessJunk wrote:1) The "Match 3D" button doesn't work anymore - it did work at some point, did it?
Not surprised, don't think I ever tried this. I'll look into the NaN's.CluelessJunk wrote:2) The section View calculates NaNs for the isometric projections. I'm not sure, how useful that is anyway but still. For some odd reasons, it works for detail views of isometric projections, but I'm not sure if the values are correct.
Or move the BaseView, or zoom or anything else that causes a screen redraw. Maybe some onDelete code in SectionView...CluelessJunk wrote:1) When you delete a section view (or cancel the creation of one), the section arrows on the base view are still there until you recompute the view.
I think we're stuck with this one.CluelessJunk wrote: 2) When you add a section view, the arrows indicate a "looking right" default value, but the section view doesn't show anything until you click one of the four buttons.
Cool. Not sure how to rotate only some of the things in a view. Will have to look into how this happens.CluelessJunk wrote:And I noticed another thing: When you rotate a view, and then create a section view, the arrows not rotated with the view, while the section is in an unrotated state.
wf
-
- Posts: 19
- Joined: Tue May 31, 2016 9:23 am
Re: TechDraw - Multiview Projection Group
Do you think with the current design its possible to get arbitrarily rotated projections? You told me earlier that the rotation matrix was replaced with simple code, I get the feeling that the "Pure, ugly brute force" could be replaced with elegant, complicated math if the rotation matrix was available.wandererfan wrote:Pure, ugly brute force.
I don't need arbitrarily rotated secondary views from one front view, but I sometimes need the front view projection to be rotated (and the other of course accordingly).
The Match 3D button works as you described. Locking to a given axis is actually more useful then an arbitrarily rotated view (because just with the mouse, I wouldn't perfectly match my object anyway).wandererfan wrote:But this version only matches the nearest of the 6 cardinal directions
I'm not sure, if a section of the Isometric projection has a use case. But generating an error Message is better then creating a not-working view.wandererfan wrote:I'll look into the NaN's.
Hmm, I need a recompute. Moving, zooming, even creating new dimensions doesn't remove the arrows.wandererfan wrote:... or anything else that causes a screen redraw
edit Is this the supposed Thread for these reports or should I continue in The Big Techdraw Thread?
- wandererfan
- Veteran
- Posts: 6326
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: TechDraw - Multiview Projection Group
No, the ugly version won't support arbitrary directions. It is my admission that I wasn't any closer to an arbitrary direction solution after 3 weeks of working at it. An 80% solution if you will.CluelessJunk wrote:Do you think with the current design its possible to get arbitrarily rotated projections? You told me earlier that the rotation matrix was replaced with simple code, I get the feeling that the "Pure, ugly brute force" could be replaced with elegant, complicated math if the rotation matrix was available.
I don't need arbitrarily rotated secondary views from one front view, but I sometimes need the front view projection to be rotated (and the other of course accordingly).
I haven't necessarily given up on it, I was just spending too much time going in circles.
As a workaround, try rotating/spinning the object in the 3D space to your arbitrary orientation, then make your ProjectionGroup.
This was just an announcement. The big thread is probably best for ongoing discussions.CluelessJunk wrote:Is this the supposed Thread for these reports or should I continue in The Big Techdraw Thread?