Updates helmert curve business2geometry mapping

This commit is contained in:
Richard Brice
2025-07-18 09:47:44 -07:00
parent e318cbd9e6
commit 913076de94
2 changed files with 20 additions and 10 deletions
@@ -260,8 +260,15 @@ def _map_helmert_curve(file: ifcopenshell.file, design_parameters: entity_instan
Transition=transition,
Placement=file.create_entity(
type="IfcAxis2Placement2D",
Location=file.createIfcCartesianPoint((x1, y1)),
RefDirection=file.createIfcDirection((math.cos(angle1), math.sin(angle1))),
Location=file.createIfcCartesianPoint(
(
start_point.Coordinates[0] + x1 * math.cos(start_direction) + y1 * math.sin(start_direction),
start_point.Coordinates[1] + x1 * math.sin(start_direction) - y1 * math.cos(start_direction),
)
),
RefDirection=file.createIfcDirection(
(math.cos(start_direction + angle1), math.sin(start_direction + angle1))
),
),
SegmentStart=file.createIfcLengthMeasure(length / 2),
SegmentLength=file.createIfcLengthMeasure(length / 2),