Geometry > Geometry Commands > ECone

ECone
Create a solid or surface eccentric oblique cone or frustum in 3D.
Syntax
model.geom(<tag>).create(<ftag>,"ECone");
model.geom(<tag>).feature(<ftag>).set(property,<value>);
model.geom(<tag>).feature(<ftag>).getType(property);
Description
Use model.geom(<tag>).create(<ftag>,"ECone") to create an eccentric oblique cone. The following properties are available:
Direction of the normal to the bottom ellipse. 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>,"econe3") creates a solid eccentric cone.
model.geom(<tag>).create(<ftag>,"econe2") creates a surface eccentric cone.
The following properties are also available:
a, b
Alias for semiaxes.
Alias for axis when axistype is spherical.
Alias for axis when axistype is cartesian.
x, y, z
The property const is no longer available.
Examples
Create a truncated eccentric cone with the base face in the xy-plane:
Code for use with Java
Model model = ModelUtil.create("Model1");
GeomSequence g = model.geom().create("geom1",3);
g.create("e1","ECone");
g.feature("e1").set("semiaxes","10 40");
g.feature("e1").set("h",20);
Code for use with MATLAB
model = ModelUtil.create('Model1');
g = model.geom.create('geom1',3);
g.create('e1','ECone');
g.feature('e1').set('semiaxes','10 40');
g.feature('e1').set('h',20);
Create an eccentric cone with an apex, that is, a singular patch, on top:
Code for use with Java
g.create("e2","ECone");
g.feature("e2").set("semiaxes","1 2");
g.feature("e2").set("h",4);
g.feature("e2").set("rat",0);
g.feature("e2").set("displ","1 1");
g.feature("e2").set("pos","100 100 100");
g.feature("e2").set("axis","0 1 4");
g.feature("e2").set("rot",45);
g.run();
Code for use with MATLAB
g.create('e2','ECone');
g.feature('e2').set('semiaxes','1 2');
g.feature('e2').set('h',4);
g.feature('e2').set('rat',0);
g.feature('e2').set('displ','1 1');
g.feature('e2').set('pos','100 100 100');
g.feature('e2').set('axis','0 1 4');
g.feature('e2').set('rot',45);
g.run;
See Also
 Cone, Cylinder