Sphere.create Method

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

Description

Creates a transient sphere object.

Syntax

This is a static method.

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

#include <Core/Geometry/Sphere.h>

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

Return Value

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

Parameters

Name Type Description
origin Point3D The origin point (center) of the sphere.
radius double The radius of the sphere.

Version

Introduced in version August 2014