Adds a new object to the 3D model.

syntaxSyntax:
FWiz3DModel.Add(object)

Parameters

Parameter Description
object A Dlx3DObject object.

Return Value

If an error occurs it returns false otherwise it returns true.

Example

  Copy codeCopy code
function OnBuild3DModel()
{
  var ctx = FWiz.Get3DModelCtx();
  var style = FWiz.Get3DStyle(0);
  style.SetStyle("gold");
  var cube = new DlxCube(10, 20, 30, style);
  ctx.Add(cube);
}

See also