Create a solid 3D sphere. The center of the sphere is at coordinates 0,0,0.
Syntax: |
---|
new DlxSphere(radius, style) |
Parameters
Parameter | Description |
---|---|
radius | The radius of the sphere. |
style | A Dlx3DStyle object or the index of the style. There are 10 styles available with indexes from 0 to 9. |
Example
Copy code | |
---|---|
function OnBuild3DModel()
{
var ctx = FWiz.Get3DModelCtx();
var style = FWiz.Get3DStyle(0);
style.SetStyle("gold");
var obj = new DlxSphere(20, style);
ctx.Add(obj);
}
|