ifcopenshell.api.alignment.util

Module Contents

ifcopenshell.api.alignment.util.evaluate_representation(shape_rep: ifcopenshell.entity_instance, dist_along: float) numpy.ndarray

Calculate the 4x4 geometric transform at a point on an alignment segment

Parameters:
  • shape_rep – The representation shape (composite curve, gradient curve, or segmented reference curve) to evaluate

  • dist_along – The distance along this representation at the point of interest (point to be calculated)

ifcopenshell.api.alignment.util.evaluate_segment(segment: ifcopenshell.entity_instance, dist_along: float) numpy.ndarray

Calculate the 4x4 geometric transform at a point on an alignment segment

Parameters:
  • segment – The segment containing the point that we would like to

  • dist_along – The distance along this segment at the point of interest (point to be calculated)

ifcopenshell.api.alignment.util.generate_vertices(rep_curve: ifcopenshell.entity_instance, distance_interval: float = 5.0) numpy.ndarray

Generate vertices along an alignment

Parameters:
  • rep_curve – The alignment’s representation curve to use to generate vertices.

  • distance_interval – The distance between points along the alignment at which to generate the points

ifcopenshell.api.alignment.util.print_alignment(alignment, indent=0)

Debugging function to print alignment decomposition

ifcopenshell.api.alignment.util.print_composite_curve(curve)

Debugging function to print composite curve segments