copypts

Copy a point distribution. There are two distinct forms of this command. The first format is designed to copy points from one mesh object into another. The second form duplicates points within a mesh object including all the attributes of the points.

Format

copypts / sink_cmo / source_cmo / 1st_sink_pt / sink_stride / 1st_source_pt / last_source_pt / source_stride / sink_attribute / source_attribute / copy

copypts / 1st_source_point / last_source_point / source_stride [ / 1st_sink_point / sink_stride / copy ]

copyts / 1st_point / last_point / stride

 

copypts Parameters

Parameters

Type/Value

Description/Default

sink_cmo

char*32

If omitted, current mesh object will be used.

source_cmo

char*32

If omitted, current mesh object will be used.

1st_sink_pt, sink stride

reals

Used to restrict the copy to a subset of points. Points in the sink mesh object will be overwritten if sink_stride is not zero. If no sink points or sink stride are specified, then the copied points are placed at the end of the data arrays otherwise the copied points are written over the existing points starting at the 1st sink point.

1st_source pt, last source pt, source stride

reals

 

sink_attribute, source attribute

char*32

Specify attribute fields. Attribute values will be copied from the source mesh object to the sink mesh object. For example the x-coordinate field in the source mesh object (xic) may be placed in the y-coordinate field of the sink mesh object. The user is warned that these values might not make sense in their new context.

copy

copy

 

1st_point, last_point, stride

reals

 

Note

The first form of the command gives the arguments sink first then source whereas the second form gives the source then the sink.

Examples

copypts / 3dmesh / 2dmesh /

Copy all points in 2dmesh to the end of the 3dmesh point list.

 

copypts / 3dmesh / 2dmesh / 0, 0/ pset, get, mypoints /

Copy the point set named mypoints from 2dmesh to the end of 3dmesh point list.

 

copypts / 3dmesh / 2dmesh / 100, 4 / pset, get, mypoints / boron / arsenic /

Copy the arsenic field from the point set named mypoints from 2dmesh replacing the boron field at every fourth point beginning at point 100 in 3dmesh.

 

copypts / pset, get, mypoints / 0, 0 /

Duplicate the point set named mypoints from the current mesh object and place the duplicated points at the end of the point list.

 

copypts / / / 0, 0 / pset, get, mypoints /

Duplicate the point set named mypoints from the current mesh object and place the duplicated points at the end of the point list. Same effect as the example directly above. The current mesh object is used since the fields are blank on the command line