Create the DlxFence object.

syntaxSyntax:
new DlxFence(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.

Example

  Copy codeCopy code
function OnBuild3DModel()
{
  var ctx = FWiz.Get3DModelCtx();
  var style = FWiz.Get3DStyle(0);
  style.SetStyle("gold");

  var shape = new DlxFigure();
  shape.SetZ(0);
  shape.SetRectangle(0, 0, 20, 20, -25, -25, 30, 30);
  shape.EndShape();

  var shape1 = new DlxFigure();
  shape1.SetZ(10);
  shape1.SetRectangle(0, 0, 10, 10, -25, -25, 30, 30);
  shape1.EndShape();

  var obj = new DlxFence(style);
  obj.DShape(shape, shape1, -5, 10, false);
  ctx.Add(obj);
}

See also