mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 13:28:19 +00:00
black .
This commit is contained in:
@@ -302,7 +302,9 @@ class DumbSlabPlaner:
|
|||||||
existing_x_angle = 0 if tool.Cad.is_x(existing_x_angle, pi, tolerance=0.001) else existing_x_angle
|
existing_x_angle = 0 if tool.Cad.is_x(existing_x_angle, pi, tolerance=0.001) else existing_x_angle
|
||||||
existing_x_angle = 0 if tool.Cad.is_x(existing_x_angle, 2 * pi, tolerance=0.001) else existing_x_angle
|
existing_x_angle = 0 if tool.Cad.is_x(existing_x_angle, 2 * pi, tolerance=0.001) else existing_x_angle
|
||||||
direction_ratios = Vector(extrusion.ExtrudedDirection.DirectionRatios)
|
direction_ratios = Vector(extrusion.ExtrudedDirection.DirectionRatios)
|
||||||
offset_direction = Vector((abs(direction_ratios.x), abs(direction_ratios.y), abs(direction_ratios.z))) # The offset direction doesn't change with direction sense
|
offset_direction = Vector(
|
||||||
|
(abs(direction_ratios.x), abs(direction_ratios.y), abs(direction_ratios.z))
|
||||||
|
) # The offset direction doesn't change with direction sense
|
||||||
perpendicular_depth = thickness * abs(1 / cos(existing_x_angle))
|
perpendicular_depth = thickness * abs(1 / cos(existing_x_angle))
|
||||||
perpendicular_offset = layer_params["offset"] * abs(1 / cos(existing_x_angle)) / self.unit_scale
|
perpendicular_offset = layer_params["offset"] * abs(1 / cos(existing_x_angle)) / self.unit_scale
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user