Create the DlxRevolve object.

syntaxSyntax:
new DlxRevolve(style)

Parameters

Parameter Description
style A Dlx3DStyle object or the index of the style. There are 10 styles available with indexes from 0 to 9.

Remarks

You can add colored rings with AddRing. To finish the construction of the solid call one of: Cylinder, Pipe, Molded, Shape.

Example

  Copy codeCopy code
function OnBuild3DModel()
{
  var ctx = FWiz.Get3DModelCtx();
  var style = FWiz.Get3DStyle(0);
  style.SetStyle("gold");
  var obj = new DlxRevolve(style);
  obj.Cylinder(5, 10, 1, 0.2);
  ctx.Add(obj);
}

See also