---
name: "sc_SphereShape"
section: "3"
platform: "linux"
package: "libsc-doc"
version: "2.3.1-22"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_SphereShape"
---

# sc\_SphereShape(3)

## NAME

sc::SphereShape

## SYNOPSIS

Inherits **sc::Shape**.

### Public Member Functions

**SphereShape** (const **SCVector3** &, double)\
 **SphereShape** (const **Ref**\< **KeyVal** \> &)\
 **SphereShape** (const **SphereShape** &)\
 void **boundingbox** (double minvalue, double maxvalue, **SCVector3** &p1, **SCVector3** &p2)\
 double **radius** () const\
 const **SCVector3** & **origin** () const\
 double **distance\_to\_surface** (const **SCVector3** &r, **SCVector3** \*grad=0) const\
 void **print** (std::ostream &o=**ExEnv::out0**()) const\
 Print information about the object.  double **radius** (double r)\
 const **SCVector3** & **origin** (const **SCVector3** &o)\
 int **gradient\_implemented** () const\

### Additional Inherited Members

## Member Function Documentation

### void sc::SphereShape::boundingbox (double minvalue, double maxvalue, SCVector3 & p1, SCVector3 & p2)` [virtual]`

Implements **sc::Volume**.

### double sc::SphereShape::distance\_to\_surface (const SCVector3 & r, SCVector3 \* grad = `0`) const` [virtual]`

Implements **sc::Shape**.

### int sc::SphereShape::gradient\_implemented () const` [virtual]`

Reimplemented from **sc::Function**.

### void sc::SphereShape::print (std::ostream & = ExEnv::out0`()`) const` [virtual]`

Print information about the object.

Reimplemented from **sc::Function**.

## Author

Generated automatically by Doxygen for MPQC from the source code.
