OCaml Forge
Bugs
Search the entire project
This project's trackers
This project's forums
This project's tasks
This project's releases
This project's documents
This project's news
Project
People
Advanced search
Log In
New Account
Home
My Page
Projects
Code Snippets
Mlpost
Summary
Activity
Forums
Tracker
Lists
Tasks
Docs
Surveys
News
SCM
Files
Detail: [#230] "curl" direction does not do anything and bugs if used at the left of a knot
Bugs: Browse
|
Download .csv
|
Monitor
[#230] "curl" direction does not do anything and bugs if used at the left of a knot
Date:
2009-06-22 11:11
Priority:
2
State:
Open
Submitted by:
Romain Bardou (
doomeer
)
Assigned to:
Nobody (None)
Operating System:
Linux
Version:
v0.7
Severity:
normal
Resolution:
Accepted As Bug
URL:
Summary:
"curl" direction does not do anything and bugs if used at the left of a knot
Detailed description
Example :
If we do not use ~l, then the program compiles but we get a rectangle instead of a curve. If we do use ~l, then Metapost complains about a syntax error.
let patatoid width height =
let wmin,wmax = -0.5 *./ width, 0.5 *./ width in
let hmin,hmax = -0.5 *./ height, 0.5 *./ height in
let ll = pt (wmin,hmin) in
let lr = pt (wmax,hmin) in
let ur = pt (wmax,hmax) in
let ul = pt (wmin, hmax) in
let f p =
let r = curl (Random.float 10.) in
let l = curl (Random.float 10.) in
knotp ~r ~l p
in
pathk ~cycle: jCurve (List.map f [ ul; ur; lr; ll ])
This is MetaPost, Version 0.993 (Web2C 7.5.6)
(patate.mp (/usr/share/texmf/metapost/context/base/mp-tool.mp)
(/usr/share/texmf/metapost/context/base/mp-spec.mp)
! An expression can't begin with `{'.
<inserted text>
0
<to be read again>
{
l.38 draw {
curl 0.0799198}(-42.5197,14.1732){curl 0.00127961} ..
>> 0
! Improper `addto'.
...
Followup
No Followups Have Been Posted
Attached Files:
Changes:
Field
Old Value
Date
By
Resolution
None
2009-06-22 11:12
doomeer
summary
"curl" direction does not do anything and bugs if used at the left of a knot
2009-06-22 11:12
doomeer