Creates a three-dimensional modeled solid.

syntaxSyntax:
DlxRevolve.Molded(diameter, length, shapeType)

Parameters

Parameter Description
diameter Cylinder diameter.
length Cylinder length.
shapeType Identifies the shape. Specify a value from 1 to 3.

Return Value

If the operation ends correctly it returns true otherwise it returns false.

Example

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

See also