Model.splitelementbyedges#
- Model.splitelementbyedges(coordinates)#
Splits shell element edges that are intersected by a line joining the input points. The user can provide x-coordinate and y-coordinate of the mouse click on the screen. The number of input points must be ≥ 2.
- Parameters:
coordinates (hwIntList) – The list that contains the screen coordinates of the points 1 and 2 with the according order [x coordinate of point 1, y coordinate of point 1, x coordinate of point 2, y coordinate of point 2]
Example#
Split shell elements by the line connect the points ( 354.0 , 379.0 ) and ( 694.0 , 385.0 )#import hm import hm.entities as ent model = hm.Model() model.splitelementbyedges(coordinates=[354.0, 379.0, 694.0, 385.0])