IFC 4.3.2.20240904 (IFC4X3_ADD2) under development

8.9.6.5 IfcConsecutiveSegments

8.9.6.5.1 Semantic definition

This function validates if a list of segment indices are connected to represent a concecutive curve. The last index of any, but the last, segment shall be identical with the first index of the next segment.

8.9.6.5.2 Formal representation

FUNCTION IfcConsecutiveSegments
  (Segments : LIST [1:?] OF IfcSegmentIndexSelect)
  : BOOLEAN;

 LOCAL
  Result : BOOLEAN := TRUE;
 END_LOCAL;

  REPEAT i := 1 TO (HIINDEX(Segments)-1);
    IF Segments[i][HIINDEX(Segments[i])] <> Segments[i+1][1] THEN
      BEGIN
        Result := FALSE;
        ESCAPE;
      END;
 END_IF;
  END_REPEAT;

  RETURN (Result);

END_FUNCTION;

8.9.6.5.3 References

Edit on Github


Is this page difficult to understand? Let us know!

8.9.6.5.4 Changelog

8.9.6.5.4.1 IFC4

  • New resource