IFC 4.4.0.0 build 20261005 (IFC4X4_DEV_20260525) ⚠ buildingSMART Working Draft. All content is under development.

  • Help suggest improvements
  • Get user or developer support

8.18.6.1 IfcConvertDirectionInto2D

8.18.6.1.1 Semantic definition

The function returns a two-dimensional direction, using the x/y ratios of a two or three-dimensional direction as input.

8.18.6.1.2 Formal representation

FUNCTION IfcConvertDirectionInto2D
(Direction : IfcDirection)
: IfcDirection;
LOCAL
Direction2D : IfcDirection := IfcRepresentationItem() || IfcGeometricRepresentationItem () || IfcDirection([0.,1.]);
END_LOCAL;
Direction2D.DirectionRatios[1] := Direction.DirectionRatios[1];
Direction2D.DirectionRatios[2] := Direction.DirectionRatios[2];
RETURN (Direction2D);
END_FUNCTION;

Edit on Github

3 contributor(s): ArturTomczakbSI-BotDion Moult
Last change: Improve definition split (#876) * bring back headers headers were previously removed by mistake, now bringing them back * add new lines and rename the tag add the word 'short' in it * unify newlines make exactly one newline before and two after the tag * resolving typos Because bringing back headers required to go back in time to previous version, I'm now re-resolving the issues: #861, #860, #856 by ArturTomczak on 2024-07-16T16:07:28+02:00

Is this page difficult to understand? Let us know!

8.18.6.1.3 Changelog

8.18.6.1.3.1 IFC4

  • New resource