How I can get two curves intersection points and line/curve intersection point RRS feed

  • Question

  • Hi

    I have in my code many bezier curves(drawn by 4 points) and lines

    I need to get the intersection points between two curves and

    betwen line/curve

    I already did the line-line intersection part

    and I can get that two curves are intersected but I can not get the points of the


    I try to follow the below link:


    but I could not get them and there is no errors

    can you please help me to do that

    I am using visual studio 2010 c++ for MFC project

    thanks a lot


    Tuesday, November 27, 2012 7:53 PM


  • for the curve intersection point. that you have to know or you should have that how the curve has been plot. if you are using GDI function to draw curve. then i can't say. but if you have make your own function to plot Curve then you will know how you plot and how to get intersection point.

    i think in that link. they have their own curve plot algo. so if you are using Curve Intersection function from geomtools you have to use Curve Class also. so it will have all necessary function and plotting method also.

    • Proposed as answer by Bordon Wednesday, November 28, 2012 5:21 AM
    • Marked as answer by Damon ZhengModerator Thursday, December 6, 2012 12:17 PM
    Wednesday, November 28, 2012 2:50 AM