<SphereIsoSurface />

Doxygen: SofaCaribou::topology::SphereIsoSurface

Implicit surface of a sphere to be used with level-set compatible components such as the <FictitiousGrid />.

Attribute

Format

Default

Description

radius

float

1.0

Radius of the sphere.

center

list

[0, 0, 0]

Coordinates at the center of the sphere.

Quick example

XML

<Node>
    <SphereIsoSurface radius="5" center="0 0 0" />
    <FictitiousGrid name="grid" template="Vec3d" n="4 4 4" min="-5 -5 -5" max="5 5 5" draw_boundary_cells="1" printLog="1" />
</Node>

Python

node.addObject('SphereIsoSurface', radius=5, center=[0, 0, 0])
node.addObject('FictitiousGrid',
               template='Vec3d',
               name='grid',
               n=[4, 4, 4],
               min=[-5, -5, -5],
               max=[+5, +5, +5],
               printLog=True,
               draw_boundary_cells=True,
               )

Available python bindings

None at the moment.