Set rounded corners.
Syntax: |
DlxICBody.SetRoundedCorners(radius, corners) |
Parameters
Parameter |
Description |
radius |
Size of rounding. |
corners |
Specify the angle at which to apply rounding. Specify a combination of the following values:
FWiz.ICBODY_CORNERFRONTLEFT |
Rounding is applied to the left front corner of the package. |
FWiz.ICBODY_CORNERFRONTRIGHT |
Rounding is applied to the front right corner of the package. |
FWiz.ICBODY_CORNERBACKLEFT |
Rounding is applied to the back left corner of the package. |
FWiz.ICBODY_CORNERBACKRIGHT |
Rounding is applied to the back right corner of the package. |
FWiz.ICBODY_CORNERALL |
Rounding is applied to all corners of the package. |
|
Return Value
If the operation ends correctly it returns true otherwise it returns false.
Example
|
Copy 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