CopyEdge
Copy an edge mesh.
Syntax
model.component(<ctag>).mesh(<tag>).create(<ftag>,"CopyEdge");
model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection(property);
model.component(<ctag>).mesh(<tag>).feature(<ftag>).set(property,<value>);
model.component(<ctag>).mesh(<tag>).feature(<ftag>).getType(property);
Description
Use model.component(<ctag>).mesh(<tag>).create(<ftag>,"CopyEdge") to copy mesh between edges in a 2D or 3D geometry.
The following properties are available:
auto | same | opposite
auto | singlecopy | arraycopy
on | off
Use the properties source and destination to specify the source and destination edges. The copymethod property determines if many-to-one or many-to-many copying is used. The direction property controls the orientation of the copied mesh, and is relative the direction of the source edge with smallest number and the direction of the destination edge.
Copying a mesh is only possible if the destination edge is not adjacent to a meshed domain. The copy feature overwrites any existing mesh on the destination edge.
Example
Mesh Edge 1 and copy the mesh to Edges 2, 3, and 4.
Code for Use with Java
Model model = ModelUtil.create("Model");
model.component().create("comp1");
GeomSequence g = model.component("comp1").geom().create("geom1", 2);
MeshSequence m = model.component("comp1").mesh().create("mesh1", "geom1");
 
g.create("sq1", "Square");
g.run();
 
m.create("edg1", "Edge");
m.feature("edg1").selection().set(new int[]{1});
m.create("cpe1", "CopyEdge");
m.feature("cpe1").selection("source").set(new int[]{1});
m.feature("cpe1").selection("destination").set(new int[]{2, 3, 4});
m.run();
Code for Use with MATLAB
model = ModelUtil.create('Model');
model.component.create('comp1');
g = model.component('comp1').geom.create('geom1', 2);
m = model.component('comp1').mesh.create('mesh1', 'geom1');
 
g.create('sq1', 'Square');
g.run;
 
m.create('edg1', 'Edge');
m.feature('edg1').selection().set(1);
m.create('cpe1', 'CopyEdge');
m.feature('cpe1').selection('source').set(1);
m.feature('cpe1').selection('destination').set(2:4);
m.run;
See Also
CopyFace, CopyDomain, Copy