[metapost] accessing control points

Hans Hagen pragma at wxs.nl
Mon Nov 27 02:05:05 CET 2006


Stephan Hennig wrote:
> Hi,
>
> is there a way to access control points of a bezier curve segment in
> MetaPost other that "show"ing a path on the console?
>   
in mp-tool in the metapost/context/base path you will find numerous example of path decomposition, like 

def do_drawcontrollines text t =
  for _i_=0 upto length(_c_) :
    normaldraw point _i_ of _c_ -- precontrol  _i_ of _c_ _lin_opt_ t ;
    normaldraw point _i_ of _c_ -- postcontrol _i_ of _c_ _lin_opt_ t ;
  endfor ;
enddef;

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------




More information about the metapost mailing list