Create the DlxShell object.
Syntax: |
new DlxShell(style, baseStyle, width, length, height, thickness, baseUp, rounding=0.05)
new DlxShell(style, width, length, height, thickness, baseUp, rounding=0.05)
|
Parameters
Parameter |
Description |
style |
A Dlx3DStyle object or the index of the shell style. There are 10 styles available with indexes from 0 to 9. |
baseStyle |
A Dlx3DStyle object or the index of the base style. There are 10 styles available with indexes from 0 to 9. If the base style is not specified the shell is closed. |
width |
Shell width. |
length |
Shell length. |
height |
Shell height. |
thickness |
Shell thickness. |
baseUp |
Value by which to raise the base. |
rounding |
Rounding of edges. |
Example
|
Copy code
|
function OnBuild3DModel()
{
var ctx = FWiz.Get3DModelCtx();
var style = FWiz.Get3DStyle(0);
style.SetStyle("gold");
var style1 = FWiz.Get3DStyle(1);
style1.SetStyle("silver");
var obj = new DlxShell(style, style1, 5, 10, 8, 0.2, 1, 0.1);
ctx.Add(obj);
}
|
See also