Hexahedron
Create a solid or surface hexahedron bounded by bilinear faces.
Syntax
model.component(<ctag>).geom(<tag>).create(<ftag>,"Hexahedron");
model.component(<ctag>).geom(<tag>).feature(<ftag>).set(property,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).getType(property);
model.component(<ctag>).geom(<tag>).feature(<ftag>).setAttribute(attribute,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).getAttribute(attribute);
Description
Use model.component(<ctag>).geom(<tag>).create(<ftag>,"Hexahedron") to create a general hexahedron. The following properties are available:
none | custom | integer between 1 and the number of colors in the current theme
The color to use. Active when color is set to custom.
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.
solid | surface
this | part-instance feature
xyplane | work-plane feature
Work-plane feature that defines the coordinate system. The default, xyplane, is the global Cartesian coordinate system.
For a hexahedron approximately aligned to the coordinate planes, the points in p are ordered as follows:
The first four points and the last four points projected down to the (xy)-plane defines two negatively oriented quadrangles (quadrilaterals).
Generally oriented hexahedra have the points of p ordered in a similar way, except for a rigid transformation of the defining point set.
For information about the selresult and contributeto properties, see Selections of Geometric Entities.
The following attributes are available:
Table 3-87: Valid attributes
on | off
Example
The following command generates a solid hexahedron object:
Code for Use with Java
Model model = ModelUtil.create("Model1");
model.component().create("comp1");
GeomSequence g = model.component("comp1").geom().create("geom1",3);
g.create("h1","Hexahedron");
g.feature("h1").set("p",new double[][]
      {{0,0.0,1,1.0,0,0,1.0,1},
       {0,0.8,1,0.0,0,1,1.2,0},
       {0,0.1,0,0.2,1,1,2.0,1}});
g.run();
Code for Use with MATLAB
model = ModelUtil.create('Model1');
model.component.create('comp1');
g = model.component('comp1').geom.create('geom1',3);
g.create('h1','Hexahedron');
g.feature('h1').set('p',...
   [[0,0.0,1,1.0,0,0,1.0,1];...
   [0,0.8,1,0.0,0,1,1.2,0];...
   [0,0.1,0,0.2,1,1,2.0,1]]);
g.run;
See Also
Block, Pyramid, Tetrahedron