Model.createcirclefrompoints#
- Model.createcirclefrompoints(entitylist, circle_flag)#
Creates a circle or arc from 3 nodes.
- Parameters:
entitylist (EntityList) – A list containing the node entity objects that define the circle. The order of the nodes is important if creating an arc.
circle_flag (int) –
1 - Create a circle.
2 - Create an arc.
Example#
Create a circle through nodes with IDs 100, 200 and 300#import hm import hm.entities as ent model = hm.Model() model.createcirclefrompoints( entitylist=[ent.Node(model, 100), ent.Node(model, 200), ent.Node(model, 300)], circle_flag=1, )