Rotate the 3D object around the X, Y or Z axes.
Syntax: |
---|
Dlx3DObject.Rotate(rotX, rotY, rotZ) |
Parameters
Parameter | Description |
---|---|
rotX | Rotation angle around the X axis. |
rotY | Rotation angle around the Y axis. |
rotZ | Rotation angle around the Z axis. |
Return Value
If an error occurs it returns false otherwise it returns true.
Example
Copy code | |
---|---|
function OnBuild3DModel()
{
var ctx = FWiz.Get3DModelCtx();
var style = FWiz.Get3DStyle(0);
style.SetStyle("silver");
var pin = new DlxLead();
pin.Pin(style, 0.5, 3.3, 0.28, 1.4, 3.14, 0.51);
pin.Rotate(0, 0, 90);
ctx.Add(pin);
pin = new DlxLead();
pin.Pin(style, 0.5, 3.3, 0.28, 1.4, 3.14, 0.51);
pin.Rotate(0, 0, 90);
pin.Move(-2.54, 0, 0);
ctx.Add(pin);
pin = new DlxLead();
pin.Pin(style, 0.5, 3.3, 0.28, 1.4, 3.14, 0.51);
pin.Rotate(0, 0, 90);
pin.Move(2.54, 0, 0);
ctx.Add(pin);
}
|