Cylinder.getData Method

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

Description

Gets the data that defines the cylinder.

Syntax

"cylinder_var" is a variable referencing a Cylinder object.

(returnValue, origin, axis, radius) = cylinder_var.getData()

#include <Core/Geometry/Cylinder.h

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

Return Value

Type Description
boolean Returns true if successful.

Parameters

Name Type Description
origin Point3D The output origin point (center) of the base of the cylinder.
axis Vector3D The output center axis (along the length) of the cylinder that defines its normal direction.
radius double The output radius of the cylinder.

Version

Introduced in version August 2014