Geometry > Geometry Commands > Ellipsoid

Ellipsoid
Create a solid or surface ellipsoid in 3D.
Syntax
model.geom(<tag>).create(<ftag>,"Ellipsoid");
model.geom(<tag>).feature(<ftag>).set(property,<value>);
model.geom(<tag>).feature(<ftag>).getType(property);
Description
Use model.geom(<tag>).create(<ftag>,"Ellipsoid") to create an ellipsoid. The following properties are available:
Direction of the local z-axis. Vector has length 3 if axistype is cartesian, and length 2 if axistype is spherical.
x | y | z | cartesian | spherical
solid | surface
on | off
all | obj | dom | bnd | edg | pnt | off
Show selections, if selresult is on, of resulting objects in physics, materials, and so on, or in part instances. obj is not available in a component’s geometry. dom, bnd, and edg are not available in all features.
For information about the selresult and contributeto properties, see Selections of Geometric Entities.
Compatibility
model.geom(<tag>).create(<ftag>,"ellipsoid3") creates a solid ellipsoid.
model.geom(<tag>).create(<ftag>,"ellipsoid2") creates a surface ellipsoid.
The following properties are also available:
a, b, c
Alias for semiaxes.
Alias for axis when axistype is spherical.
Alias for axis when axistype is cartesian.
The property const is no longer available.
Example
The following commands create a surface and solid ellipsoid, where the position and semi-axes are defined in two alternative ways:
Code for use with Java
Model model = ModelUtil.create("Model1");
GeomSequence g = model.geom().create("geom1",3);
g.create("e2","Ellipsoid");
g.feature("e2").set("type","surface");
g.feature("e2").set("pos","0 1 0");
 
g.create("e3","Ellipsoid");
g.feature("e3").set("semiaxes","12 10 8");
 
g.run();
Code for use with MATLAB
model = ModelUtil.create('Model1');
g = model.geom.create('geom1',3);
g.create('e2','Ellipsoid');
g.feature('e2').set('type','surface');
g.feature('e2').set('pos','0 1 0');
 
g.create('e3','Ellipsoid');
g.feature('e3').set('semiaxes','12 10 8');
g.run;
See Also
 Sphere