Model.reflectmark#

Model.reflectmark(collection, plane_normal, plane_base)#

Reflects a selection of entities about a plane.

Parameters:
  • collection (Collection) – The collection containing the entities to reflect.

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

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

Example#

Reflect the element with ID 15 about a plane normal to the x-axis with its base at the origin#
import hm
import hm.entities as ent

model = hm.Model()

model.reflectmark(
    collection=hm.Collection(model, ent.Element, [15]),
    plane_normal=[1.0, 0.0, 0.0],
    plane_base=[0.0, 0.0, 0.0],
)