Create a circular or elliptical fence.
Syntax: |
|
DlxFence.Ellipse(cx, cy, rx, ry, zMin, height, bBrightinside)
|
Parameters
| Parameter |
Description |
| cx |
X position of the center of the ellipse. |
| cy |
Y position of the center of the ellipse. |
| rx |
A positive value that defines the radius of the circle or the half length of the horizontal axis of the ellipse. |
| ry |
A positive value defining the half length of the vertical axis of the ellipse. If zero is specified, ry is set equal to rx. |
| zMin |
Value of the Z coordinate of extrusion start. |
| height |
Height of the extruded surface. |
| bBrightinside |
Specify true if the bright face is the inner face. |
Return Value
If the operation ends correctly it returns true otherwise it returns false.
Example
|
|
Copy code
|
function OnBuild3DModel()
{
var ctx = FWiz.Get3DModelCtx();
var style = FWiz.Get3DStyle(0);
style.SetStyle("gold");
var obj = new DlxFence(style);
obj.Ellipse(0, 0, 5, 5, -5, 10, false);
ctx.Add(obj);
}
|
See also