*ellipsoid

Creates a solid in the shape of an ellipsoid.

Syntax

*ellipsoid center=<value> a_dir=<value> b_dir=<value> a=<value> b=<value> c=<value>

Type

HyperMesh Tcl Modify Command

Description

Consider the general equation of an ellipsoid centered at x 0 ,   y 0 ,   z 0 MathType@MTEF@5@5@+= feaahGart1ev3aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaaeaaaaaaaaa8 qacaWG4bWaaSbaaSqaaiaaicdaaeqaaOGaaiilaiaabccacaWG5bWa aSbaaSqaaiaaicdaaeqaaOGaaiilaiaabccacaWG6bWaaSbaaSqaai aaicdaaeqaaaaa@3E7D@ as

(x x 0 ) 2 / a 2  +  (y y 0 ) 2 / b 2  +  (z z 0 ) 2 / c 2  = 1 MathType@MTEF@5@5@+= feaahGart1ev3aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaaiikaabaaa aaaaaapeGaamiEaiabgkHiTiaadIhadaWgaaWcbaGaaGimaaqabaGc paGaaiykamaaCaaaleqabaWdbiaaikdaaaGccaGGVaGaamyya8aada ahaaWcbeqaa8qacaaIYaaaaOGaaiiOaiabgUcaRiaacckapaGaaiik a8qacaWG5bGaeyOeI0IaamyEamaaBaaaleaacaaIWaaabeaak8aaca GGPaWaaWbaaSqabeaapeGaaGOmaaaakiaac+cacaWGIbWdamaaCaaa leqabaWdbiaaikdaaaGccaGGGcGaey4kaSIaaiiOa8aacaGGOaWdbi aadQhacqGHsislcaWG6bWaaSbaaSqaaiaaicdaaeqaaOWdaiaacMca daahaaWcbeqaa8qacaaIYaaaaOGaai4laiaadogapaWaaWbaaSqabe aapeGaaGOmaaaakiaacckacqGH9aqpcaqGGaGaaGymaaaa@5B01@

This ellipsoid’s principal axes are aligned with x, y and z directions. In this command, an ellipsoid is created whose principal axes are aligned in any specified direction. User defined directions are given for the principal axis that is associated with a value in a_dir, and the principal axis for b value in b_dir values. The principal axis for c value is determined by the other two directions.

Inputs

center=<value>
The center location of the ellipsoid.
a_dir=<value>
The principal axis direction associated with ‘a’ value. A vector input is expected.
b_dir=<value>
The principal axis direction associated with ‘b’ value. A vector input is expected.
a=<value>
The ‘a’ value in the ellipsoid equation.
b=<value>
The ‘b’ value in the ellipsoid equation.
c=<value>
The ‘c’ value in the ellipsoid equation.

Examples

To create an ellipsoid solid centered at (1,1,1) with principal axis for ‘a’ as (1,1,0), with principal axis for ‘b’ as (0,0,1), a=4, b=5, and c=6 values:
*ellipsoid center="1.0 1.0 1.0" a_dir="1.0 1.0 0.0" b_dir="0.0 0.0 1.0" a=4 b=5 c=6

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

2025