Torus.create Method

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

Description

Creates a transient torus object.

Syntax

This is a static method.

returnValue = adsk.core.Torus.create(origin, axis, majorRadius, minorRadius)
This is a static method.

#include <Core/Geometry/Torus.h>

returnValue = adsk::core::Torus::create(origin, axis, majorRadius, minorRadius);

Return Value

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

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