Ticket #4018 - Projecting an ellipse on an inclined plane

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!
berka
Posts: 88
Joined: Sat Aug 22, 2015 9:08 pm

Ticket #4018 - Projecting an ellipse on an inclined plane

Post by berka »

I'm working with a model that requires me to constrain to projections of an ellipse to faces in different planes.
I've confirmed with some Googling that the projections are ellipses as well. However, FreeCAD projects these as B-Splines. This is in Sketcher, as external geometry. That's not all that helpful.

I can easily make an ellipse as construction geometry on the Sketcher plane. I have the end points; I just need third point on the original geometry: e.g. the end point of the minor axis would be a good addition. (I may need the center as well, but that problem hasn't come up in my cases yet.)

Question: What is a good way to allow me to get the minor axis end point on my Sketcher plane as external geometry?
The best I can come up with is: break up the original ellipse segments into two segments each. It's just going to be unnecessarily cumbersome all over my parts.

An example demonstrating the issue is attached.

Overall Part:
Screen Shot 2019-06-08 at 06.43.55.png
Screen Shot 2019-06-08 at 06.43.55.png (32.37 KiB) Viewed 1690 times
External Geometry as spline:
Screen Shot 2019-06-08 at 06.44.58.png
Screen Shot 2019-06-08 at 06.44.58.png (13.82 KiB) Viewed 1690 times
My ellipse construction geometry to work around: I need that third point:
Screen Shot 2019-06-08 at 06.47.51.png
Screen Shot 2019-06-08 at 06.47.51.png (28.74 KiB) Viewed 1690 times

OS: macOS 10.14
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16117 (Git)
Build type: Release
Branch: (HEAD detached at 0.18.2)
Hash: dbb4cc6415bac848a294f03b80f65e888d531742
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Attachments
ellipseprojection.FCStd
(52.56 KiB) Downloaded 41 times
Last edited by Kunda1 on Thu Jun 13, 2019 2:52 pm, edited 1 time in total.
Reason: Updated thread title with bug tracker ticket number
User avatar
meme2704
Veteran
Posts: 2926
Joined: Sat Apr 01, 2017 2:47 pm
Location: Vosges

Re: Projecting an ellipse on an inclined plane

Post by meme2704 »

Hi
You have to try to find a straight segment to avoid a projection in B-spline
In this case make a cross section "provisional"
Attachments
elipse.FCStd
(48.8 KiB) Downloaded 39 times
elipse.PNG
elipse.PNG (5.99 KiB) Viewed 1682 times
Last edited by meme2704 on Sat Jun 08, 2019 2:04 pm, edited 1 time in total.
berka
Posts: 88
Joined: Sat Aug 22, 2015 9:08 pm

Re: Projecting an ellipse on an inclined plane

Post by berka »

meme2704 wrote: Sat Jun 08, 2019 11:40 am In this case make a cross section "provisional"
Thank you. This sounds promising. Can you elaborate on how?
The "clipping plane" view option is greyed out in Sketcher. The only other related thing I found was "Sketcher->View Section" which is the wrong plane.
User avatar
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Projecting an ellipse on an inclined plane

Post by Vincent B »

Use a datumplane and datumpoint with proximity attachment mode between the sketch and edge. Then use the point for external geometry and hook the ellipse on it. ;)
Attachments
aa.FCStd
(46.38 KiB) Downloaded 43 times
Capture2.JPG
Capture2.JPG (22.39 KiB) Viewed 1638 times
berka
Posts: 88
Joined: Sat Aug 22, 2015 9:08 pm

Re: Projecting an ellipse on an inclined plane

Post by berka »

GlouGlou wrote: Sat Jun 08, 2019 5:34 pm Use a datumplane and datumpoint with proximity attachment mode between the sketch and edge. Then use the point for external geometry and hook the ellipse on it. ;)
Thanks. That works beautifully since I know and can define the line along the top of my part.

Of course, I took two steps forward and hit another snag. I wanted to use the same idea for line/plane intersection. The plane is offset from the face a few mm.
Screen Shot 2019-06-10 at 06.18.45.png
Screen Shot 2019-06-10 at 06.18.45.png (47.2 KiB) Viewed 1591 times
The Line/Plane proximity point fails with:

Code: Select all

PositionBySupport: AttachEnginePoint::calculateAttachedPlacement: proximity calculation failed.
I've seen this before, and It's changed the way I model. Finding intersections of two planes or line to plane seem like pretty simple operations I should be able to do. Does anyone know how to achieve that?
User avatar
Vincent B
Veteran
Posts: 4713
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: Projecting an ellipse on an inclined plane

Post by Vincent B »

the proximity between datumline and datumplane works.
Attachments
Capture2.JPG
Capture2.JPG (76.14 KiB) Viewed 1575 times
berka
Posts: 88
Joined: Sat Aug 22, 2015 9:08 pm

Re: Projecting an ellipse on an inclined plane

Post by berka »

Odd. It's never worked for me.
Screen Shot 2019-06-10 at 09.00.36.png
Screen Shot 2019-06-10 at 09.00.36.png (111.11 KiB) Viewed 1569 times
berka
Posts: 88
Joined: Sat Aug 22, 2015 9:08 pm

Re: Projecting an ellipse on an inclined plane

Post by berka »

If there are no objections, I'll start a bug report on this. It's possible it's a platform-dependent issue (MacOS).
chrisb
Veteran
Posts: 53945
Joined: Tue Mar 17, 2015 9:14 am

Re: Projecting an ellipse on an inclined plane

Post by chrisb »

I will try to reproduce on the Mac. What are the exact steps?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
berka
Posts: 88
Joined: Sat Aug 22, 2015 9:08 pm

Re: Projecting an ellipse on an inclined plane

Post by berka »

chrisb wrote: Tue Jun 11, 2019 8:30 am I will try to reproduce on the Mac. What are the exact steps?
You can try this file:
ellipseprojection.FCStd
FCStd file from earlier in conversation, extended to show the plane/line intersection issue.
(52.91 KiB) Downloaded 45 times
1) Create a datum point
2) Select "DatumPlane Offset Incline" as a reference
3) Select "DatumLine Ridge" as a second reference
4) Try "Proximity Point 1" as Attachment mode.

The order of references doesn't matter. Proximity point 2 also does the same.

Alternately, you can start from a new file:
1) Create body
2) Create a Datum Plane (I used detached)
3) Create a Datum Line
4) Create a Datum point and try proximity point as above.
Post Reply