CutPlane
Create a cut plane dataset.
Syntax
model.result().dataset().create(<dtag>,"CutPlane");
model.result().dataset(<dtag>).set(property,<value>);
Description
model.result().dataset().create(<dtag>,"CutPlane") creates a cut plane dataset with the name <dtag>.
The following properties are available:
none | dataset name
on | off
Active when genparaactive is on, this property contains the distances from the extra parallel planes to the base plane.
threepoint | pointnormal
Active when planetype equals general, this property indicates whether the plane should be specified by three points or through one point and a normal.
Active when method equals threepoint, this property contains the coordinates of the three points in the rows of the matrix.
Active when genmethod equals pointnormal, this property contains the coordinates of the point.
Active when genmethod equals pointnormal, this property contains the normal vector.
quick | general
xy | yz | zx | yx | zy | xz
Examples
This example creates a cut plane and plots a surface plot and a contour plot on it.
Create a solution dataset and set it to point to the named solution Sol1 from a solver sequence:
Code for Use with Java
DatasetFeature ds = model.result().dataset().create("dset1", "Solution");
ds.set("solution", "sol1");
Code for Use with MATLAB
ds = model.result.dataset.create('dset1', 'Solution');
ds.set('solution', 'sol1');
Create 3D plot group:
Code for Use with Java
ResultFeature pg = result().create("pg1",3);
DatasetFeature ds = result().dataset().create("cutp1","CutPlane");
ds.set("data", "dset1");
pg.create("surf1","Surface");
pg.feature("surf1").set("data","cutp1");
pg.create("cont1","Contour");
pg.feature("cont1").set("data","cutp1");
Code for Use with MATLAB
pg = result.create('pg1',3);
ds = result.dataset.create('cutp1','CutPlane');
ds.set('data', 'dset1');
pg.create('surf1','Surface');
pg.feature('surf1').set('data','cutp1');
pg.create('cont1','Contour');
pg.feature('cont1').set('data','cutp1');
Attribute
Selection (Dataset Attribute)
See Also
Surface (Plot)