Set the cut corners.

syntaxSyntax:
DlxICBody.SetCutCorners(size, corners)

Parameters

Parameter Description
size Size of the cut.
corners Specify the angle at which to apply the cut. Specify a combination of the following values:
FWiz.ICBODY_CORNERFRONTLEFT The cut is applied to the left front corner of the package.
FWiz.ICBODY_CORNERFRONTRIGHT The cut is applied to the front right corner of the package.
FWiz.ICBODY_CORNERBACKLEFT The cut is applied to the back left corner of the package.
FWiz.ICBODY_CORNERBACKRIGHT The cut is applied to the back right corner of the package.
FWiz.ICBODY_CORNERALL The cut is applied to all corners of the package.

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, 9, 9, 1.6, 0.25, 0.15);
  obj.SetSlopeAngle(15);
  obj.SetCutCorners(1, FWiz.ICBODY_CORNERFRONTLEFT);
  obj.Build();
  ctx.Add(obj);
}

See also