Skip to content

Commit

Permalink
Merge pull request #867 from bSI-InfraRoom/fix/AlignmentRepresentation
Browse files Browse the repository at this point in the history
Fix/alignment representation
  • Loading branch information
SergejMuhic authored Jul 25, 2024
2 parents de228bd + 6875e64 commit 0322422
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@

(* one representation is either Curve2D or 3D *)
IF SIZEOF(AlignmentRepresentations) = 1 THEN
IF SIZEOF(AlignmentRepresentations.Items) <> 1 THEN
IF SIZEOF(AlignmentRepresentations[1].Items) <> 1 THEN
RETURN (FALSE);
END_IF;
IF SIZEOF(QUERY(twoDee <* AlignmentRepresentations | twoDee.RepresentationType = 'Curve2D')) = 1 THEN
CASE TRUE OF
'IFCGEOMETRYRESOURCE.IFCCOMPOSITECURVE' IN TYPEOF(AlignmentRepresentations[1].Items[1]):
RETURN(TRUE);
'IFCGEOMETRYRESOURCE.IFCOFFSETCURVEBYDISTANCE' IN TYPEOF(AlignmentRepresentations[1].Items[1]):
'IFCGEOMETRYRESOURCE.IFCOFFSETCURVEBYDISTANCES' IN TYPEOF(AlignmentRepresentations[1].Items[1]):
RETURN(TRUE);
'IFCGEOMETRYRESOURCE.IFCPOLYLINE' IN TYPEOF(AlignmentRepresentations[1].Items[1]):
RETURN(TRUE);
Expand All @@ -35,7 +35,7 @@
CASE TRUE OF
'IFCGEOMETRYRESOURCE.IFCGRADIENTCURVE' IN TYPEOF(AlignmentRepresentations[1].Items[1]):
RETURN(TRUE);
'IFCGEOMETRYRESOURCE.IFCOFFSETCURVEBYDISTANCE' IN TYPEOF(AlignmentRepresentations[1].Items[1]):
'IFCGEOMETRYRESOURCE.IFCOFFSETCURVEBYDISTANCES' IN TYPEOF(AlignmentRepresentations[1].Items[1]):
RETURN(TRUE);
'IFCGEOMETRYRESOURCE.IFCSEGMENTEDREFERENCECURVE' IN TYPEOF(AlignmentRepresentations[1].Items[1]):
RETURN(TRUE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

IF (EXISTS(RelPlacement)) THEN
IF ('IFCGEOMETRICCONSTRAINTRESOURCE.IFCGRIDPLACEMENT' IN TYPEOF(RelPlacement)) THEN
RETURN(TRUE);
RETURN(?);
END_IF;
IF ('IFCGEOMETRICCONSTRAINTRESOURCE.IFCLOCALPLACEMENT' IN TYPEOF(RelPlacement)) THEN
IF ('IFCGEOMETRYRESOURCE.IFCAXIS2PLACEMENT2D' IN TYPEOF(AxisPlacement)) THEN
Expand Down

0 comments on commit 0322422

Please sign in to comment.