mymesh.mesh.mesh.Mirror#
- mesh.Mirror(x=None, y=None, z=None, InPlace=False)[source]#
Mirror the mesh across Cartesian planes. At least one of x, y, or z must be specified to mirror the mesh. If multiple planes are specified, the mesh will first be mirrored across the x plane, then the y, then the z - for example, given x=0, y=0, z=None, a point at (-1,-1,0) would be mirrored to (1,-1,0) and then to (1,1,0). Note that reflections across planes parallel to the Cartesian planes are commutative, so the order of reflections don’t matter.
- Parameters:
x (float, optional) – YZ plane at X = x. The default is None.
y (float, optional) – XZ plane at Y = y. The default is None.
z (float, optional) – XY plane at Z = z. The default is None.
InPlace (bool, optional) – If True, the original mesh will be modified in place, otherwise a copy will be made and modified, leaving the original mesh unaltered. By default False
- Returns:
M – Cropped mesh. If InPlace=True, the output will be a reference to the same mesh instance as the input.
- Return type: