torusType

complexType · extension complexBaseType · all

Torus

The torus is defined in its own coordinate system, centered at the origin, with its axis along the z-axis. The center line of the tube is a circle of radius <majorRadius> in the plane z = 0, and the tube has the radius <minorRadius>.

<revolutionAngle> limits the torus to a sector about the z-axis, starting at the x-axis and turning towards the y-axis; without it the torus is complete. Unlike the other angles in CPACS, which are given in degrees, <revolutionAngle> is given in radians; it lies between 0, excluded, and 2π.

Oblique views of a torus about the z-axis: (a) the complete torus; (b) the half with revolutionAngle π on the side of the positive y-axis, with majorRadius from the origin to the centre of the tube and minorRadius on the end face in the x-z plane

Figure (a) shows the complete torus in its coordinate system. Figure (b) shows a sector with a revolution angle of π, the half on the side of the positive y-axis; its end face in the x-z plane shows the two radii.

Attributes

NameTypeConstraintsUseDefaultDescription
@externalDataDirectoryxsd:stringoptionalDirectory of the external file the element was read from, as URI
@externalDataNodePathxsd:stringoptionalPath of the parent element in the merged dataset, at which the element was inserted from an external file
@externalFileNamexsd:stringoptionalName of the external file the element was read from

Child elements

NameTypeConstraintsOccurrenceHow often the element may appear at this place. The schema writes it as minOccurs and maxOccurs on the declaration.DefaultDescription
allThe children below may appear in any order. Each may appear at most once.
majorRadiusdoubleBaseType[1..1] requiredDistance from the z-axis to the center line of the tube [m]
minorRadiusdoubleBaseType[1..1] requiredRadius of the tube [m]
revolutionAngledoubleBaseType[0..1] optionalRevolution angle about the z-axis, starting at the x-axis; in radians, unlike the other angles in CPACS (if not defined: equals 2*pi) [rad]
transformationtransformationSE3Type[0..1] optionalRotation and translation that place the primitive in the element coordinate system

Used by

In a dataset · 160 paths

In the schema · 1 declaration

TypeName
toriTypetorus