This commit is contained in:
Andrej730
2025-08-13 10:37:31 +05:00
parent 61fff3d2b4
commit 9e5b667380
3 changed files with 5 additions and 3 deletions
@@ -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,
@@ -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)
@@ -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.