Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [GEF4] geometry intersection not found
[GEF4] geometry intersection not found [message #1719718] Mon, 11 January 2016 16:35 Go to next message
Sylvain Bi is currently offline Sylvain BiFriend
Messages: 10
Registered: May 2015
Junior Member
Hello, I am trying to find an intersection between a BezierCurve and a Line

But it fails with this code :

Line line = new Line(new Point(14.5428, -10000.0), new Point(14.5428, 10000.0));

BezierCurve curve = new BezierCurve(new Point(24.200000000000077, -2.3727936609778726), new Point(17.56250052131255, -2.372947931952322), new Point(13.137498435758783, -2.3730630604781013), new Point(6.499999999999994, -2.372678596158668));

Point[] intersectionPoint = line.getIntersections(curve);


No intersections are found (empty array returned, length = 0)

if I decrease my line Y bounds (1000.0 instead of 10000.0) :
Line line = new Line(new Point(14.5428, 1000.0), new Point(14.5428, 1000.0));


the intersection is found

[Updated on: Mon, 11 January 2016 16:39]

Report message to a moderator

Re: [GEF4] geometry intersection not found [message #1719731 is a reply to message #1719718] Mon, 11 January 2016 17:48 Go to previous messageGo to next message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: Lünen
Senior Member
Sylvain, please open a bugzilla for this. We will investigate it then.
Re: [GEF4] geometry intersection not found [message #1719807 is a reply to message #1719731] Tue, 12 January 2016 08:45 Go to previous messageGo to next message
Sylvain Bi is currently offline Sylvain BiFriend
Messages: 10
Registered: May 2015
Junior Member
ok it's done
Re: [GEF4] geometry intersection not found [message #1720581 is a reply to message #1719807] Tue, 19 January 2016 13:42 Go to previous message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: Lünen
Senior Member
This has been fixed: https://bugs.eclipse.org/bugs/show_bug.cgi?id=485607.
Previous Topic:[Zest] Use Swt Widget for rendering nodes
Next Topic:[GEF4] geometry intersection computation duration
Goto Forum:
  


Current Time: Thu Apr 25 11:10:13 GMT 2024

Powered by FUDForum. Page generated in 0.02891 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top