OnePointMap
Specify a one-point map for a face copy or a domain copy operation.
Syntax
model.component(<ctag>).mesh(<tag>).feature(<ftag>).create(<ftag1>,"OnePointMap");
model.component(<ctag>).mesh(<tag>).feature(<ftag>).feature(<ftag1>).selection(property);
Description
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).create(<ftag1>,"OnePointMap") to define a one-point map for CopyFace or CopyDomain feature <ftag>.
The following properties are available:
Use the OnePointMap feature if you need to control how the source and destination faces/domains are matched in a copy face or a copy domain mesh operation. When this feature is present, the source mesh is transformed so that srcpoint1 is mapped to dstpoint1.
Example
Create a block and mesh face 4 with a fine mesh near point 8. Copy this mesh onto face 3 and ensure that the fine mesh near point 8 ends up near point 3:
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[]{4});
m.feature("ftri1").create("size1", "Size");
m.feature("ftri1").feature("size1").selection().geom("geom1", 0).set(new int[]{8});
m.feature("ftri1").feature("size1").set("hmax", "0.01");
m.create("cpf1", "CopyFace");
m.feature("cpf1").selection("source").geom("geom1", 2).set(new int[]{4});
m.feature("cpf1").selection("destination").geom("geom1", 2).set(new int[]{3});
m.feature("cpf1").create("pm1", "OnePointMap");
m.feature("cpf1").feature("pm1").selection("srcpoint1").set(new int[]{8});
m.feature("cpf1").feature("pm1").selection("dstpoint1").set(new int[]{3});
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(4);
m.feature('ftri1').create('size1', 'Size');
m.feature('ftri1').feature('size1').selection().geom('geom1', 0).set(8);
m.feature('ftri1').feature('size1').set('hmax', '0.01');
m.create('cpf1', 'CopyFace');
m.feature('cpf1').selection('source').geom('geom1', 2).set(4);
m.feature('cpf1').selection('destination').geom('geom1', 2).set(3);
m.feature('cpf1').create('pm1', 'OnePointMap');
m.feature('cpf1').feature('pm1').selection('srcpoint1').set(8);
m.feature('cpf1').feature('pm1').selection('dstpoint1').set(3);
m.run();
See Also
CopyFace, CopyDomain, EdgeMap, TwoPointMap