Model.meshutils_cutelements_2points#
- Model.meshutils_cutelements_2points(element_collection, c1x, c1y, c1z, c2x, c2y, c2z, spc_collector_name, box_collector_name, dof_array=s_defaultDoubleList)#
Cut elements with a box defined by 2 diagonal points.
- Parameters:
element_collection (Collection) – The collection containing the element entities that needs to be cut.
c1x (double) – The x-coordinate of point 1.
c1y (double) – The y-coordinate of point 1.
c1z (double) – The z-coordinate of point 1.
c2x (double) – The x-coordinate of point 2.
c2y (double) – The y-coordinate of point 2.
c2z (double) – The z-coordinate of point 2.
spc_collector_name (hwString) –
The name of the collector in which the spcs will be created for constraining cut elements.
No entities will be created if the name is an empty string.
box_collector_name (hwString) –
The name of the collector in which a hexa might be created to show the cutbox.
No entities will be created if the name is an empty string.
dof_array (hwDoubleList) – Reserved for future development. Do not set anything different from the default value.
Example#
Cut elements 2D quads and trias elements with a box defined by 2 points#import hm import hm.entities as ent model = hm.Model() element_collection = hm.Collection(model, ent.Element, "config=103,104") model.meshutils_cutelements_2points( element_collection=element_collection, c1x=0, c1y=0, c1z=0, c2x=1, c2y=0, c2z=0, spc_collector_name="", box_collector_name="", )