mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
black .
This commit is contained in:
+1
-1
@@ -158,7 +158,7 @@ def _map_circular_arc(file: ifcopenshell.file, design_parameters: entity_instanc
|
||||
|
||||
parent_curve = file.createIfcCircle(
|
||||
Position=file.createIfcAxis2Placement2D(
|
||||
Location=file.createIfcCartesianPoint((0.0,0.0)),
|
||||
Location=file.createIfcCartesianPoint((0.0, 0.0)),
|
||||
RefDirection=file.createIfcDirection((1.0, 0.0)),
|
||||
),
|
||||
Radius=radius,
|
||||
|
||||
+1
-1
@@ -30,4 +30,4 @@ def _update_curve_segment_transition_code(prev_segment: entity_instance, segment
|
||||
Updates IfcCurveSegment.Transition of prev_segment based on a comparison of
|
||||
the position, ref. direction, and curvature at the end of the prev_segment and the start of segment.
|
||||
"""
|
||||
prev_segment.Transition = ifcopenshell.api.alignment.get_curve_segment_transition_code(prev_segment,segment)
|
||||
prev_segment.Transition = ifcopenshell.api.alignment.get_curve_segment_transition_code(prev_segment, segment)
|
||||
|
||||
+3
-1
@@ -25,7 +25,9 @@ import numpy as np
|
||||
import math
|
||||
|
||||
|
||||
def get_curve_segment_transition_code(prev_segment: entity_instance, segment: entity_instance, tolerance:float = 5.0e-4) -> str:
|
||||
def get_curve_segment_transition_code(
|
||||
prev_segment: entity_instance, segment: entity_instance, tolerance: float = 5.0e-4
|
||||
) -> str:
|
||||
"""
|
||||
Returns the IfcCurveSegment.Transition of prev_segment based on a comparison of
|
||||
the position, ref. direction, and curvature at the end of the prev_segment and the start of segment.
|
||||
|
||||
Reference in New Issue
Block a user