transform_zonelets#
- Transform.transform_zonelets(part_id, zonelets, params)#
Transforms given zonelets using provided transform parameters.
- Parameters:
- part_id
int
Part id of zonelets to be transformed.
- zonelets
Iterable
[int
] Ids of zonelets.
- params
TransformParams
Transform parameters.
- part_id
- Returns:
- :
TransformResults
Returns the transform results.
- Return type:
Examples
>>> params = prime.TransformParams(model=model) >>> # scale by a factor of 2 using a 4x4 transformation matrix >>> params.transformation_matrix = [ >>> 2, 0, 0, 0, >>> 0, 2, 0, 0, >>> 0, 0, 2, 0, >>> 0, 0, 0, 1, >>> ] >>> part = model.get_part_by_name("part_name") >>> zonelets = part.get_face_zonelets() >>> result = prime.SurfaceUtilities(model).transform_zonelets(part.id, zonelets, params)