Sets the slope of the vertical faces.

syntaxSyntax:
DlxICBody.SetSlopeAngle(angle)

Parameters

Parameter Description
angle Slope angle.

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 DlxICBody(style, 3.9, 8.65, 1.6, 0.25, 0.15);
  obj.SetSlopeAngle(10);
  obj.SetRoundedCorners(0.2, FWiz.ICBODY_CORNERALL);
  obj.SetNotch(1, 1, 0.3, true);
  obj.Build();
  ctx.Add(obj);
}

See also