imat_node/add


Purpose

Add nodes.

Syntax

node=add(node,id,cs,color,coord,type)
node=node.add(id,cs)
node=node.add(id,cs,color)
node=node.add(newnode)

Description

ADD will add a node or nodes to the IMAT_NODE object.

ID is a vector containing the node IDs. They must be unique.

CS is an Nx3 matrix containing the coordinate system IDs. If not supplied, or it is empty, the default ([0 0 0]) will be used.

COLOR is a numeric vector containing the node colors. If not supplied, or it is empty, the default color of 11 is used.

COORD is an Nx3 matrix containing the node coordinates. If not supplied, or it is empty, the global origin will be used.

TYPE is a numeric vector containing the entity types (1=node, 2=spoint). If not supplied, ADD assumes that the entities are nodes.

An alternate calling sequence is to supply an IMAT_NODE object NEWNODE to add.

See Also

imat_node/keep, imat_node/remove