home *** CD-ROM | disk | FTP | other *** search
- /*
- This genie converts curve points to corner points. Click on the points you want to convert, then on a blank place to stop.
-
- Written by Don Cox, Jan. '94. Copyright. Not Public Domain.
- */
-
- trace n
-
- call pdm_AutoUpdate(0)
-
- do i = 1 to 200 /* safety limit */
- clickpos = pdm_ClickOnPoint(" Click on the Points to be changed...")
- if clickpos = "0 0" then exit_msg()
-
- object = word(clickpos, 1)
- point = word(clickpos, 2)
- pointinfo = pdm_GetPoint(object,point)
- newradius = 0
- if word(pointinfo,3)=0 & word(pointinfo,4)=0 & word(pointinfo,5)=0 & word(pointinfo,6)=0 then newradius = 1.0
- call pdm_SmoothPoint(object, point, newradius)
- call pdm_UpdateScreen(1)
-
- end
-
- exit_msg()
-
- /* +++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++ */
-
- exit_msg: procedure expose units
- do
- parse arg message
-
- if message ~= '' then call pdm_Inform(1,message,)
- call pdm_AutoUpdate(1)
- exit
- end
-