ifcpatch.recipes.SetWorldCoordinateSystem
¶
Module Contents¶
- class ifcpatch.recipes.SetWorldCoordinateSystem.Patcher(src, file, logger, x: str | float = '0', y: str | float = '0', z: str | float = '0', ax: str | float = '0', ay: str | float = '0', az: str | float = '0')¶
Sets the world coordinate system of the geometric representation context
Sets the world coordinate system to whatever you want.
- Parameters:
x (Union[str, float]) – The X coordinate.
y (Union[str, float]) – The Y coordinate.
z (Union[str, float]) – The Z coordinate.
ax (Union[str, float]) – An angle to rotate by for 3D rotations along the X axis. Angles are in decimal degrees and positive is anticlockwise.
ay (Union[str, float]) – An angle to rotate by for 3D rotations along the Y axis. Angles are in decimal degrees and positive is anticlockwise.
az (Union[str, 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)¶
- ax¶
- ay¶
- az¶
- file¶
- logger¶
- src¶
- x¶
- y¶
- z¶