Polyline spline oriented equation

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    2 posts
    Member since:
    Jun 2015

    Posted 01 Jul 2015 Link to this post

    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

  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 03 Jul 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top