This is a migrated thread and some comments may be shown as answers.

Polyline spline oriented equation

1 Answer 105 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 01 Jul 2015, 08:41 AM

Hi There, I've a tricky question about connector and connection.

I need to develop a GUI where I can let the user define a connector based upon a polyline (or directly a polyline) by 3 points : A-start, C-end and a third one (B) to adapt the resulting curve to a set of points (to match the more it can the shape see the attached file).

In fact, the main problem is to determine how to retrieve parameters setup by the user when moving the connector.

Once done, how can I access polyline parameters between A and B, B and C. The main goal is to retrieve the equation between the three points. I know it can be done through an equation system solving, but do the TELERIK object is providing any useful attributes or methods?

I mean by example : tension value between points for the spline, factors of the cubic equation, ...

 
Let me know please

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 03 Jul 2015, 07:07 AM
Hi Jeff,

In Telerik.Windows.Controls.Diagrams.GeometryExtensions class you can find the public methods:
-- GetSplineFigureTangents - accepts  the connection points (usually they are 3 for spline connection) and outputs two points - startTangentPoint and endTangentPoint
-- CreateSplineFigures - Creates a canonical spline figure.
-- other methods for building bezier / spline

If you have a UI for WPF licence you will be able to download the full source code of our products and check exactly which functions will suit your needs.

Regards,
Petar Mladenov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Diagram
Asked by
Jeff
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or