Model.markintersectplane#

Model.markintersectplane(entitycollection, plane_normal, plane_base, elemoutcollection, nodeoutcollection)#

Selects a chain of elements and nodes cut by a given section plane.

Parameters:
  • entitycollection (Collection) – The collection containing the entities to be intersected. Valid entities are elements and components.

  • plane_normal (hwTriple) – The hwTriple object defining the components of the normal of the section plane. User can also supply a Python list of three doubles.

  • plane_base (hwTriple) – The hwTriple object defining the base point components of the section plane. User can also supply a Python list of three doubles.

  • elemoutcollection (Collection) – The collection containing the entities of the intersected elements.

  • nodeoutcollection (Collection) – The collection containing the entities of one row of nodes along the intersected elements.

Example#

Find the nodes and elements inside of the components collection cut by a user - defined plane , and place these nodes / elems into collections#
import hm
import hm.entities as ent

model = hm.Model()

Entity_Collection = hm.CollectionByDisplayed(model, ent.Component)
ElemOutCollection = hm.Collection(model, ent.Element, populate=False)
NodeOutCollection = hm.Collection(model, ent.Node, populate=False)
model.markintersectplane(
    entitycollection=Entity_Collection,
    plane_normal=[0.0002 -0.3832 0.0004],
    plane_base=[850.3620 237.5095 349.0000],
    elemoutcollection=ElemOutCollection,
    nodeoutcollection=NodeOutCollection,
)