Model.linear1delements_byprojections#
- Model.linear1delements_byprojections(collection1, collection2, config, type, density)#
Creates 1D elements between selected elements.
- Parameters:
collection1 (Collection) – The collection containing the element entities defining the first boundary.
collection2 (Collection) – The collection containing the element entities defining the second boundary.
config (int) – The configuration of the 1D elements.
type (int) – The type of the 1D elements.
density (int) – The number of 1D elements created between the elements on
collection1andcollection2.
Example#
Create four 1D elements between elements with IDs 5 , 6 , 7 and elements with IDs 10 , 23 , 34 , with configuration 61 and type 2 and use element normal as the projection direction#import hm import hm.entities as ent model = hm.Model() model.linear1delements_byprojections( collection1=hm.Collection(model, ent.Element, [5, 6, 7]), collection2=hm.Collection(model, ent.Element, [10, 23, 24]), config=61, type=2, density=4, )