TemporaryBRepManager.createSphere Method

Parent Object: TemporaryBRepManager
Defined in namespace "adsk::fusion" and the header file is <Fusion/BRep/TemporaryBRepManager.h>

Description

Creates a temporary spherical BRepBody object.

Syntax

"temporaryBRepManager_var" is a variable referencing a TemporaryBRepManager object.

returnValue = temporaryBRepManager_var.createSphere(center, radius)
"temporaryBRepManager_var" is a variable referencing a TemporaryBRepManager object.

#include <Fusion/BRep/TemporaryBRepManager.h>

returnValue = temporaryBRepManager_var->createSphere(center, radius);
"temporaryBRepManager_var" is a variable referencing a TemporaryBRepManager object.

returnValue = temporaryBRepManager_var.createSphere(center, radius);

Return Value

Type Description
BRepBody Returns the newly created temporary BRepBody object or null in the case of failure.

Parameters

Name Type Description
center Point3D The center point of the sphere.
radius double The radius of the sphere in centimeters.

Samples

Name Description
TemporaryBRepManager API Sample

Demonstrates TemporaryBRepManager-related API functions.

Before running: No open document is required; the script creates a new design (or additional documents) as it runs.

Version

Introduced in version December 2017