Set rounded edges.

syntaxSyntax:
DlxICBody.SetRoundedEdges(width, bTop, bBot)

Parameters

Parameter Description
width Rounding size.
bTop If true the top edges are rounded.
bBot If true the bottom edges are rounded.

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, 1);
  obj.SetRoundedEdges(0.4, true, true);
  obj.SetRoundedCorners(0.2, FWiz.ICBODY_CORNERALL);
  obj.SetPin1Marker(0.6, 0.3, FWiz.ICBODY_CORNERFRONTLEFT);
  obj.Build();
  ctx.Add(obj);
}

See also