Adds alignment as offset curve

This commit is contained in:
Richard Brice
2025-07-17 10:47:13 -07:00
parent 728f9e2c04
commit a392a1fbfb
9 changed files with 407 additions and 12 deletions
@@ -86,6 +86,10 @@ def add_stationing_referent(
settings = ifcopenshell.geom.settings()
fn = ifcopenshell_wrapper.map_shape(settings, basis_curve.wrapped_data)
if basis_curve.is_a("IfcPolyline") or basis_curve.is_a("IfcIndexedPolyCurve"):
fn = ifcopenshell_wrapper.convert_loop_to_function_item(fn)
evaluator = ifcopenshell_wrapper.function_item_evaluator(settings, fn)
p = evaluator.evaluate(distance_along * unit_scale)
p = np.array(p)