nodes
Nodes
Bases: Serializable
Core object representing nodes. Each node is defined by two properties - coords (np.ndarray[N, 3]): node coordinates - scalars (np.ndarray[N]): node scalars
coords = np.array(coords, dtype=np.float64)
instance-attribute
indices = np.arange(len(scalars))
instance-attribute
scalars = np.array(scalars, dtype=np.float64)
instance-attribute
__init__(coords, scalars, indices=None)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
coords |
ndarray
|
node coordinates |
required |
scalars |
ndarray
|
node scalars |
required |
append(other)
Add nodes of a second Nodes object by appending the coordinates and scalars.