torus_space

Produces a torus centered on the local z axis.

../../_images/kgeobag_torus_space_model.png
  • Works with MeshViewer: Yes.

  • Works with GeometryViewer: Yes.

XML element: <torus_space>
C++ type: KGTorusSpace
Attributes

Attribute

Type

Description

axial_mesh_count

unsigned int

axial mesh parameter (default is 64)

name

string

r

double

r coordinate of the center in meters

radius

double

the toroidal radius in meters

toroidal_mesh_count

unsigned int

toroidal mesh parameter (default is 64)

z

double

z coordinate of the center in meters

Example:

<torus_space name="torus_space" z="0.2" r="0.5" radius="0.35" toroidal_mesh_count="256" axial_mesh_count="512"/>

Used as:

More information

Explained in: Basic Shapes in KGeoBag

Appears in the documentation:

Used in example configurations: