cut_torus_surface

Produces an angularly limited toroidal section centered on the z axis.

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

  • Works with GeometryViewer: Yes.

XML element: <cut_torus_surface>
C++ type: KGCutTorusSurface
Attributes

Attribute

Type

Description

axial_mesh_count

unsigned int

axial mesh parameter (default is 64)

name

string

r1

double

the first r coordinate in meters

r2

double

the second r coordinate in meters

radius

double

the toroidal radius in meters

right

bool

is the arc on the right side of the directed line connecting point 1 to point 2?

short

bool

does the arc subtend less than pi radians?

toroidal_mesh_count

unsigned int

toroidal mesh parameter (default is 64)

z1

double

the first z coordinate in meters

z2

double

the second z coordinate in meters

Example:

<cut_torus_surface name="cut_torus_surface" z1="0.3" r1="0.1" z2="-0.1" r2="0.2" radius="0.3" right="true" short="true" toroidal_mesh_count="128" axial_mesh_count="256"/>

Used as:

More information

Explained in: Basic Shapes in KGeoBag

Appears in the documentation:

Used in example configurations: