Torus.getData Method

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

Description

Gets all of the data defining the torus.

Syntax

"torus_var" is a variable referencing a Torus object.

(returnValue, origin, axis, majorRadius, minorRadius) = torus_var.getData()

#include <Core/Geometry/Torus.h

// Declare the output arguments.
Ptr<Point3D> origin;
Ptr<Vector3D> axis;
double majorRadius;
double minorRadius;
boolean returnValue = torus_var->getData(origin, axis, majorRadius, minorRadius);

Return Value

Type Description
boolean Returns true if successful.

Parameters

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

Version

Introduced in version August 2014