Torus.set Method

Parent Object: Torus
Defined in namespace "adsk::core" and the header file is <Core/Geometry/Torus.h>

Description

Sets all of the data defining the torus.

Syntax

"torus_var" is a variable referencing a Torus object.
returnValue = torus_var.set(origin, axis, majorRadius, minorRadius)
"torus_var" is a variable referencing a Torus object.

#include <Core/Geometry/Torus.h>

returnValue = torus_var->set(origin, axis, majorRadius, minorRadius);

Return Value

Type Description
boolean Returns true if successful.

Parameters

Name Type Description
origin Point3D The origin point (center) of the torus.
axis Vector3D The center axis of the torus.
majorRadius double The major radius of the torus.
minorRadius double The minor radius of the torus.

Version

Introduced in version August 2014