Creates a Bézier spline.
Syntax: |
FWizAssembly.DrawBezier(p1, pc1, pc2, p2)
|
Parameters
Parameter |
Description |
p1 |
A DlxPoint object with the coordinates of the starting point of the Bézier spline. |
pc1 |
A DlxPoint object with the coordinates of the first control point of the Bézier spline. |
pc2 |
A DlxPoint object with the coordinates of the second control point of the Bézier spline. |
p2 |
A DlxPoint object with the coordinates of the ending point of the Bézier spline. |
Return Value
If an error occurs it returns false otherwise it returns true.
Example
|
Copy code
|
function OnBuildAssembly()
{
var ctx = FWiz.GetAssemblyCtx();
var style = FWiz.GetPenStyle(0);
style.SetStyle("Marker pen blue");
ctx.SetPenStyle(0);
ctx.DrawBezier(new DlxPoint(-5, 0), new DlxPoint(-2.5, 5), new DlxPoint(2.5, -5), new DlxPoint(5, 0));
}
|
See also