Cylinder.create Method

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

Description

Creates a transient cylinder object.

Syntax

This is a static method.

returnValue = adsk.core.Cylinder.create(origin, axis, radius)
This is a static method.

#include <Core/Geometry/Cylinder.h>

returnValue = adsk::core::Cylinder::create(origin, axis, radius);

Return Value

Type Description
Cylinder Returns the new Cylinder object or null if the creation failed.

Parameters

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

Version

Introduced in version August 2014