Extrude Offset Ellipse is invalid geometry

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!
Post Reply
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Extrude Offset Ellipse is invalid geometry

Post by DeepSOIC »

Hi!
Seems like OCC bug.
1. Skecther. Ellipse.
2. Part Offset2D
3. Part Extrude.
4. Part CheckGeometry -> lots of errors "BOPAlgo_InvalidCurveOnSurface"
extrude-offset-ellipse.FCStd
(8.35 KiB) Downloaded 51 times
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.8361 (Git)
Build type: Release
Branch: DeepSOIC10
Hash: 4ac7673e543274bcae856872033a114c7b60481b
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
ickby
Veteran
Posts: 3116
Joined: Wed Oct 05, 2011 7:36 am

Re: Extrude Offset Ellipse is invalid geometry

Post by ickby »

I wanted to reproduce this in occ draw and encountered this bug: https://tracker.dev.opencascade.org/view.php?id=27876 So sorry, I don't think there is a way to properly test this for occ problems and to possibly report it right now.
wmayer
Founder
Posts: 20324
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Extrude Offset Ellipse is invalid geometry

Post by wmayer »

Even in Python it fails:

Code: Select all

s=App.ActiveDocument.Offset2D.Shape
s.Edges
e=s.Edge1
e.Curve
Traceback (most recent call last):
File "<input>", line 1, in <module>
TypeError: undefined curve type
EDIT:
A new enum type for curves has been added with a recent occ version:
GeomAbs_CurveType.hxx

Code: Select all

enum GeomAbs_CurveType
{
GeomAbs_Line,
GeomAbs_Circle,
GeomAbs_Ellipse,
GeomAbs_Hyperbola,
GeomAbs_Parabola,
GeomAbs_BezierCurve,
GeomAbs_BSplineCurve,
GeomAbs_OffsetCurve, // <<== that's new
GeomAbs_OtherCurve
};
ickby
Veteran
Posts: 3116
Joined: Wed Oct 05, 2011 7:36 am

Re: Extrude Offset Ellipse is invalid geometry

Post by ickby »

This is quite old, but as OCC has finally fixed the bug I mentioned in the earlier post and updated the documentation. I was now able to report the bug mentioned by DeepSOIC: https://tracker.dev.opencascade.org/view.php?id=28982
User avatar
Jimidi
Posts: 535
Joined: Wed Jul 26, 2017 3:53 pm

Re: Extrude Offset Ellipse is invalid geometry

Post by Jimidi »

Hello,

Using strictly the data of your "sketch", I applied constraints on the drawing (for a sketch entirely constrained). Then, the extrusion proceeds normally without any bug ...
(Sorry for my approximate English because I am French) :oops:

Here for you :
ExtrudeEllipse.FCStd
(5.1 KiB) Downloaded 32 times

Greetings, Jean-Michel ;)

OS : Windows 8.1 - 64bits
PC : ASUS N751 JK-T7118H – 17.3" IPS
µP : Intel Core i7-4710HQ - RAM : 16Go DDR3-1600
CG : NVIDIA Geforce GTX850 4Go dédiés
DD : 1To 7200t/mn - SSD : 128Go
FreeCAD :
64-bit Version : 0.16.6704 (Git)
Build type : Release
Branch : releases/FreeCAD-0-16
Hash : 0c449d7e8f9b2b1fb93e3f8d1865e2f59d7ed253
Python version : 2.7.8 - Qt version : 4.8.7 - Coin version : 4.0.0a - OCC version : 6.8.0.oce-0.17
Post Reply