Creates a three-dimensional solid pipe.

syntaxSyntax:
DlxRevolve.Pipe(diameter, length, thickness)

Parameters

Parameter Description
diameter Cylinder diameter.
length Cylinder length.
thickness Pipe wall thickness.

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.Pipe(5, 10, 1);
  ctx.Add(obj);
}

See also