TwoPointMap
Specify a two-point map for the copy operations and the IdenticalMesh feature to control the orientation of the source mesh on the destination.
Syntax
model.component(<ctag>).mesh(<tag>).feature(<ftag>).create(<ftag1>,"TwoPointMap")
model.component(<ctag>).mesh(<tag>).feature(<ftag>).feature(<ftag1>).selection(property)
Description
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).create(<ftag1>,"TwoPointMap") to define a two-point map for the CopyFace or CopyDomain feature <ftag>.
The following properties are available:
Use the TwoPointMap feature if you need to control how the source and destination faces/domains are matched in a copy mesh operation and in an IdenticalMesh feature. When this feature is present, the source mesh is transformed so that srcpoint1 is mapped to dstpoint1 and srcpoint2 is mapped to dstpoint2.
Example
Create a block and mesh face 2. Copy this mesh onto the opposite face 5 and ensure that point 6 is mapped to point 4 and point 5 is mapped to Point 8.
Code for Use with Java
Model model = ModelUtil.create("Model");
model.component().create("comp1");
GeomSequence g= model.component("comp1").geom().create("geom1", 3);
MeshSequence m = model.component("comp1").mesh().create("mesh1", "geom1");
 
g.create("blk1", "Block");
g.run();
 
m.create("ftri1", "FreeTri");
m.feature("ftri1").selection().set(new int[]{2});
m.feature("ftri1").create("size1", "Size");
m.feature("ftri1").feature("size1").selection().geom("geom1", 1).set(new int[]{9});
m.feature("ftri1").feature("size1").set("hmax", "0.01");
m.create("cpf1", "CopyFace");
m.feature("cpf1").selection("source").geom("geom1", 2).set(new int[]{2});
m.feature("cpf1").selection("destination").geom("geom1", 2).set(new int[]{5});
m.feature("cpf1").create("ppm1", "TwoPointMap");
m.feature("cpf1").feature("ppm1").selection("srcpoint1").set(new int[]{6});
m.feature("cpf1").feature("ppm1").selection("dstpoint1").set(new int[]{4});
m.feature("cpf1").feature("ppm1").selection("srcpoint2").set(new int[]{5});
m.feature("cpf1").feature("ppm1").selection("dstpoint2").set(new int[]{8});
m.run();
Code for Use with MATLAB
model = ModelUtil.create('Model');
model.component.create('comp1');
g = model.component('comp1').geom.create('geom1', 3);
m = model.component('comp1').mesh.create('mesh1', 'geom1');
 
g.create('blk1', 'Block');
g.run;
 
m.create('ftri1', 'FreeTri');
m.feature('ftri1').selection().set(2);
m.feature('ftri1').create('size1', 'Size');
m.feature('ftri1').feature('size1').selection().geom('geom1', 1).set(9);
m.feature('ftri1').feature('size1').set('hmax', '0.01');
m.create('cpf1', 'CopyFace');
m.feature('cpf1').selection('source').geom('geom1', 2).set(2);
m.feature('cpf1').selection('destination').geom('geom1', 2).set(5);
m.feature('cpf1').create('ppm1', 'TwoPointMap');
m.feature('cpf1').feature('ppm1').selection('srcpoint1').set(6);
m.feature('cpf1').feature('ppm1').selection('dstpoint1').set(4);
m.feature('cpf1').feature('ppm1').selection('srcpoint2').set(5);
m.feature('cpf1').feature('ppm1').selection('dstpoint2').set(8);
m.run;
See Also
Copy, CopyFace, CopyDomain, EdgeMap, OnePointMap, IdenticalMesh