GEM111 No duplicated points within a polyloop or polyline - v1

001 | @implementer-agreement
002 | @GEM
003 | @version1
004 | Feature: GEM111 - No duplicated points within a polyloop or polyline
005 | The rule verifies, that all the polyloops and polylines will have no duplicate points, unless it's the first and last point of a closed polyline.
006 | In that case, it must be identical by reference (referencing the same instance), not just having the same coordinates.
007 | Two points are considered to be duplicates if the distance between them is less than
008 | the Precision factor of the applicable geometric context.
009 |
010 |   Scenario: Agreement on no duplicated points within a polyloop
011 |
012 |       Given An .IfcPolyLoop.
013 |       Then It must have no duplicate points including first and last point
014 |
015 |   Scenario: Agreement on no duplicated points within a polyline
016 |
017 |     Given An .IfcPolyLine.
018 |     Given It forms an open curve
019 |
020 |     Then It must have no duplicate points including first and last point
021 |
022 |   Scenario: Agreement on no duplicated points within a polyline
023 |
024 |     Given An .IfcPolyLine.
025 |     Given It forms a closed curve
026 |
027 |     Then It must have no duplicate points excluding first and last point
028 |
029 |   Scenario: Agreement on first and last point of IfcPolyline being identical by reference (referencing the same instance of IfcCartesianPoint)
030 |
031 |     Given An .IfcPolyline.
032 |     Given It forms a closed curve
033 |
034 |     Then Its first and last point must be identical by reference

Version history

Version

Tag

Date

Commit

Rule link

v1

v0.6.6

2023-02-01

5b518b1c

view