myModel.createPrimitive( primitiveType, subType, resolution, dummy ) in Anark Studio 2.5

Create primitive geometry in the model.

Arguments

nametypedescription
primitiveType Number Type of primitive (see below)<
subType Number Texture mapping for primitive<
resolution Number Number of faces (see below)
dummy Number Placeholder; must always be "0
Return Type
(none)

Description

Creates a simple geometric object. This method can only be used with "empty" models (i.e., a model created without specifying a Library asset name). Primitives are created with dimensions of 100x100x100 units. To alter the dimensions, use the scale property.

Valid values for primitiveType:

Valid values for subType:

For the resolution parameter: