Model.nodecreatebetweennodes#
- Model.nodecreatebetweennodes(entity, node_list, num_intervals_array, biasstyle, biasintensity, options)#
Creates nodes or points at points on given line or surface, between given nodes. The input nodes are first projected onto the line or surface. The nodes/points are created between these projected points.
- Parameters:
entity (Entity) – The object describing the entity on which nodes are going to be created. Valid entities are lines and surfaces.
node_list (EntityList) – The list of nodes, between which additional nodes are going to be created.
num_intervals_array (hwIntList) – The list containing the number of intervals to be created between each node in the
node_list.biasstyle (int) –
The type of biasing to use:
0 - Linear biasing
1 - Exponential biasing
2 - Bell-curve biasing
biasintensity (double) – The biasing intensity value. This value must be between -20 and 20.
options (int) –
Parameter specifying whether nodes or points are created. Valid values are:
0 - Nodes created.
1 - Points created.
Example#
Create nodes on line with ID 12 , between nodes with IDs 8 , 10 and 11 , such that you want 20 intervals between the nodes with IDs 8 and 10 , and 5 intervals between the nodes with IDs 10 and 11#import hm import hm.entities as ent model = hm.Model() model.nodecreatebetweennodes( entity=ent.Line(model, 12), node_list=[ent.Node(model, 8), ent.Node(model, 10), ent.Node(model, 11)], num_intervals_array=[20, 5], biasstyle=0, biasintensity=0.0, options=0, )