Sets the reference notch.

syntaxSyntax:
DlxICBody.SetNotch(width, length, depth, bRound=true)

Parameters

Parameter Description
width Notch width.
length Notch length.
depth Depth of the notch.
bRound If you specify true the notch is 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, 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