CreateObjectSphere

Description

Creates a 3D sphere with the given diameter, and an optional number of polygons. The rows parameter determines how many rows of polygons make up the sphere and must be at least 2. The columns parameter determines how many columns of polygons make up the sphere and must be at least 3. The formula for calculating the total number of polygons used in the sphere is 2*columns*(rows-1). Returns an ID you can use to reference this object in other commands.

Definition

integer CreateObjectSphere( diameter, rows, columns )

CreateObjectSphere( objID, diameter, rows, columns )

Parameters