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.9.6.12 IfcGetBasisSurface

8.9.6.12.1 Semantic definition

{ .extDef}

8.9.6.12.2 Formal representation

FUNCTION IfcGetBasisSurface
(C : IfcCurveOnSurface) : SET[0:2] OF IfcSurface;
LOCAL
Surfs : SET[0:2] OF IfcSurface;
N : INTEGER;
END_LOCAL;
Surfs := [];
IF 'IFC4X4_DEV_20260525.IFCPCURVE' IN TYPEOF (C) THEN
Surfs := [C\IfcPCurve.BasisSurface];
ELSE
IF 'IFC4X4_DEV_20260525.IFCSURFACECURVE' IN TYPEOF (C) THEN
N := SIZEOF(C\IfcSurfaceCurve.AssociatedGeometry);
REPEAT i := 1 TO N;
Surfs := Surfs + IfcAssociatedSurface(C\IfcSurfaceCurve.AssociatedGeometry[i]);
END_REPEAT;
END_IF;
END_IF;
IF 'IFC4X4_DEV_20260525.IFCCOMPOSITECURVEONSURFACE' IN TYPEOF (C) THEN
(* For an IfcCompositeCurveOnSurface the BasisSurface is the intersection of the BasisSurface of all the segments. *)
N := SIZEOF(C\IfcCompositeCurve.Segments);
IF ('IFC4X4_DEV_20260525.IFCCURVESEGMENT' IN TYPEOF(C\IfcCompositeCurve.Segments[1])) THEN
Surfs := IfcGetBasisSurface(C\IfcCompositeCurve.Segments[1]\IfcCurveSegment.ParentCurve);
END_IF;
IF ('IFC4X4_DEV_20260525.IFCCOMPOSITECURVESEGMENT' IN TYPEOF(C\IfcCompositeCurve.Segments[1])) THEN
Surfs := IfcGetBasisSurface(C\IfcCompositeCurve.Segments[1]\IfcCompositeCurveSegment.ParentCurve);
END_IF;
IF N > 1 THEN
REPEAT i := 2 TO N;
IF ('IFC4X4_DEV_20260525.IFCCURVESEGMENT' IN TYPEOF(C\IfcCompositeCurve.Segments[i])) THEN
Surfs := Surfs * IfcGetBasisSurface(C\IfcCompositeCurve.Segments[i]\IfcCurveSegment.ParentCurve);
END_IF;
IF ('IFC4X4_DEV_20260525.IFCCOMPOSITECURVESEGMENT' IN TYPEOF(C\IfcCompositeCurve.Segments[i])) THEN
Surfs := Surfs * IfcGetBasisSurface(C\IfcCompositeCurve.Segments[i]\IfcCompositeCurveSegment.ParentCurve);
END_IF;
END_REPEAT;
END_IF;
END_IF;
RETURN(Surfs);
END_FUNCTION;

8.9.6.12.3 References

Edit on Github

3 contributor(s): ArturTomczakDion MoultbSI-Bot
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.9.6.12.4 Changelog

8.9.6.12.4.1 IFC4

  • New resource

8.9.6.12.4.2 IFC4.3_ADD2

  • ,