Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000273graphvizOutput Generationpublic2003-09-01 19:272011-04-28 04:02
ReporterAndrew Sadler3 
Assigned Toellson 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*-*-OS Version
Summary0000273: FIG format output has broken bezier splines
Description



dot -Tfig ... gives FIG v3.2 files but the spline model used by xFig is
different to that user by "dot" (X-spline vs Cubic-Bezier?)
the points emitted give a poor approximation to the intended curve.



Attached is a patch to figgen.c which gives significantly better results.



In the attached example note the line from "z1 -> z4".
Steps To Reproduce

digraph partition {
        alpha [label="$\\Alpha$"];

        z4 [label="$s_4$"];
        z1 [label="$s_1$"];
        z2 [label="$s_2$"];
        z3 [label="$s_3$"];

        z1 -> z1 [label="$\\{abc\\}$"];
        z2 -> z2 [label="$\\{dgh\\}$"];
        z3 -> z3 [label="$\\{eij\\}$"];
        z4 -> z4 [label="$\\{fkl\\}$"];

        z2 -> z1 [label="$\\{d\\}$"];
        z4 -> z2 [label="$\\{f\\}$"];
        z3 -> z1 [label="$\\{e\\}$"];
        z4 -> z3 [label="$\\{k\\}$"];
        z1 -> z4 [label="$\\{a\\}$"];

}
Additional Information

The patch is against the 1.8.10 release version of figgen.c
in dotneato/common, though the problem exists in the current release
(1.10) but I don't have this source to hand.

TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT 
<CD>
32,34d31
< /* Number of points to split splines into */
< #define BEZIERSUBDIVISION 6
<
119,134d115
<
< static point
< figfpt(pointf p)
< {
< point rv;
<
< if (Rot == 0) {
< rv.x = (int)(Scale * p.x);
< rv.
FORMER-ID346
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (2 Sept 2003)
VERSION     1.8.10
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:02 user1 New Issue
2011-04-28 04:02 user1 Assigned To => user695


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker