Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. please help : how to draw BSpline by using mouse ???

please help : how to draw BSpline by using mouse ???

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphicsgame-devhelptutorial
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    a04 lqd
    wrote on last edited by
    #1

    my teacher give an exercise: -Outline a picture by using Bspline curve. -Ex: Outline character 'S' , use mouse define points, these points will define Bspline curve, this curve is boundary of 'S'. -then save the curve. it is hard exercise for me .... !! X| please help! language is visual C++ 2005, openGL,openCV thank you verry much.

    L CPalliniC _ 3 Replies Last reply
    0
    • A a04 lqd

      my teacher give an exercise: -Outline a picture by using Bspline curve. -Ex: Outline character 'S' , use mouse define points, these points will define Bspline curve, this curve is boundary of 'S'. -then save the curve. it is hard exercise for me .... !! X| please help! language is visual C++ 2005, openGL,openCV thank you verry much.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      a04.lqd wrote:

      my teacher give an exercise:

      And that was to help you learn to do things for yourself, not to get someone else to do it for you. Read your course notes.

      A 1 Reply Last reply
      0
      • L Lost User

        a04.lqd wrote:

        my teacher give an exercise:

        And that was to help you learn to do things for yourself, not to get someone else to do it for you. Read your course notes.

        A Offline
        A Offline
        a04 lqd
        wrote on last edited by
        #3

        my teacher only introduce what is Bspline and give this exercise to me... each student in my class is the same. they have another exercise, different from my exercise , ex: use surface to draw a face, draw a car by benzier curve... it is realy hard.... all informations i must find out help me... thank you very much.

        L C 2 Replies Last reply
        0
        • A a04 lqd

          my teacher give an exercise: -Outline a picture by using Bspline curve. -Ex: Outline character 'S' , use mouse define points, these points will define Bspline curve, this curve is boundary of 'S'. -then save the curve. it is hard exercise for me .... !! X| please help! language is visual C++ 2005, openGL,openCV thank you verry much.

          CPalliniC Offline
          CPalliniC Offline
          CPallini
          wrote on last edited by
          #4

          a04.lqd wrote:

          how to draw BSpline by using mouse ???

          Just press the left button and move the mouse following a BSpline shape (remember to choose the pen tool). :-D

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          In testa che avete, signor di Ceprano?

          L 1 Reply Last reply
          0
          • A a04 lqd

            my teacher only introduce what is Bspline and give this exercise to me... each student in my class is the same. they have another exercise, different from my exercise , ex: use surface to draw a face, draw a car by benzier curve... it is realy hard.... all informations i must find out help me... thank you very much.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            a04.lqd wrote:

            all informations i must find out

            Yep, life is hard :sigh:

            1 Reply Last reply
            0
            • A a04 lqd

              my teacher only introduce what is Bspline and give this exercise to me... each student in my class is the same. they have another exercise, different from my exercise , ex: use surface to draw a face, draw a car by benzier curve... it is realy hard.... all informations i must find out help me... thank you very much.

              C Offline
              C Offline
              Cedric Moonen
              wrote on last edited by
              #6

              Please read the posting guidelines. There's even no clear question in your message. You don't believe that somebody here will just provide you with the code, do you ? Ask a precise question. Explain what you have tried and where you are stuck exactly.

              Cédric Moonen Software developer
              Charting control [v2.0] OpenGL game tutorial in C++

              1 Reply Last reply
              0
              • CPalliniC CPallini

                a04.lqd wrote:

                how to draw BSpline by using mouse ???

                Just press the left button and move the mouse following a BSpline shape (remember to choose the pen tool). :-D

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                [My articles]

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                CPallini wrote:

                Just press the left button and move the mouse

                Now why didn't I think of that?

                1 Reply Last reply
                0
                • A a04 lqd

                  my teacher give an exercise: -Outline a picture by using Bspline curve. -Ex: Outline character 'S' , use mouse define points, these points will define Bspline curve, this curve is boundary of 'S'. -then save the curve. it is hard exercise for me .... !! X| please help! language is visual C++ 2005, openGL,openCV thank you verry much.

                  _ Offline
                  _ Offline
                  _Superman_
                  wrote on last edited by
                  #8

                  GDI has a function called PolyBezier that can be used to draw b-splines.

                  «_Superman_» I love work. It gives me something to do between weekends.
                  Microsoft MVP (Visual C++)

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups