cylinder_space

Produces a cylinder space centered on the local z axis.

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

  • Works with GeometryViewer: Yes.

An XML example is as follows:

<cylinder_space name="cylinder_space" z1="-0.4" z2="0.4" r="0.3" longitudinal_mesh_count="32" longitudinal_mesh_power="2." radial_mesh_count="24" radial_mesh_power="1.5" axial_mesh_count="32"/>
The parameters are:
  • z1: the first z coordinate in meters

  • z2: the second z coordinate in meters

  • r: the radius in meters

  • longitudinal_mesh_count: longitudinal mesh parameter (default is 1)

  • longitudinal_mesh_power: longitudinal meshing power (default is 1.)

  • radial_mesh_count: radial mesh parameter (default is 1)

  • radial_mesh_power: radial meshing power (default is 1.)

  • axial_mesh_count: axial mesh parameter (default is 16)

XML element: <cylinder_space>
C++ type: KGCylinderSpace
Attributes

Attribute

Type

Description

axial_mesh_count

unsigned int

length

double

longitudinal_mesh_count

unsigned int

longitudinal_mesh_power

double

name

string

r

double

radial_mesh_count

unsigned int

radial_mesh_power

double

z1

double

z2

double

Used as:

More information

Explained in: Basic Shapes in KGeoBag

Appears in the documentation:

Used in example configurations: