Model.reflectmarkwithoption#
- Model.reflectmarkwithoption(collection, plane_normal, plane_base, option)#
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 used 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 used for the reflection. User can also supply a Python list of three doubles.
option (int) –
0 - Maintain the z-axis of bar elements during reflection.
1 - Maintain bar element connectivity during reflection.
Examples#
Reflect the element with ID 15 about a plane normal to the x-axis with its base at the origin by maintain the z-axis#import hm import hm.entities as ent model = hm.Model() model.reflectmarkwithoption( collection=hm.Collection(model, ent.Element, [15]), plane_normal=[1.0, 0.0, 0.0], plane_base=[0.0, 0.0, 0.0], option=0, )
Reflect the element with ID 15 about a plane normal to the x-axis with its base at the origin by maintaining the element connectivity#import hm import hm.entities as ent model = hm.Model() model.reflectmarkwithoption( collection=hm.Collection(model, ent.Element, [15]), plane_normal=[1.0, 0.0, 0.0], plane_base=[0.0, 0.0, 0.0], option=1, )