Geometry > Geometry Commands > Tetrahedron

Tetrahedron
Create a solid or surface tetrahedron in 3D.
Syntax
model.geom(<tag>)create(<ftag>,"Tetrahedron");
model.geom(<tag>).feature(<ftag>).set(property,<value>);
model.geom(<tag>).feature(<ftag>).getType(property);
Description
Use model.geom(<tag>).create(<ftag>,"Tetrahedron") to create a tetrahedron. The following properties are available:
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>,"tetrahedron3") creates a solid tetrahedron.
model.geom(<tag>).create(<ftag>,"tetrahedron2") creates a surface tetrahedron.
Example
The following commands generate a solid tetrahedron object:
Code for use with Java
Model model = ModelUtil.create("Model1");
GeomSequence g = model.geom().create("geom1",3);
g.create("t1","Tetrahedron");
g.feature("t1").set("p", new double[][]{{0,0,1,0},{0,0.8,1,0},{0,0.1,0,0.2}});
g.run();
Code for use with MATLAB
model = ModelUtil.create('Model1');
g = model.geom.create('geom1',3);
g.create('t1','Tetrahedron');
g.feature('t1').set('p', [[0,0,1,0];[0,0.8,1,0];[0,0.1,0,0.2]]);
g.run;
See Also
Hexahedron, Pyramid