ifcpatch.recipes.SetWorldCoordinateSystem

Module Contents

class ifcpatch.recipes.SetWorldCoordinateSystem.Patcher(src, file, logger, x=None, y=None, z=None, ax=None, ay=None, az=None)

Sets the world coordinate system of the geometric representation context

Sets the world coordinate system to whatever you want.

Parameters:
  • x (float) – The X coordinate.

  • y (float) – The Y coordinate.

  • z (float) – The Z coordinate.

  • ax (float) – An angle to rotate by for 3D rotations along the X axis. Angles are in decimal degrees and positive is anticlockwise.

  • ay (float) – An angle to rotate by for 3D rotations along the Y axis. Angles are in decimal degrees and positive is anticlockwise.

  • az (float) – An angle to rotate by for 3D rotations along the Z axis. Angles are in decimal degrees and positive is anticlockwise.

Example:

# Set the world coordinate system back to 0, 0, 0
ifcpatch.execute({"input": "input.ifc", "file": model, "recipe": "SetWorldCoordinateSystem", "arguments": [0,0,0,0,0,0]})
identity_matrix()
patch()
x_rotation_matrix(angle, transformation)
y_rotation_matrix(angle, transformation)
z_rotation_matrix(angle, transformation)