+ if (aNbPnts == 1)
+ {
+ gp_Pnt2d aP2d;
+ GEOMAlgo_AlgoTools::PntInFace(F, aPnt, aP2d);
+ }
+ else
+ {
+#if OCC_VERSION_LARGE < 0x07050304
+ Standard_NotImplemented::Raise("Point cloud creation aborted. Improper OCCT version: please, use OCCT 7.5.3p4 or newer.");
+#else
+ if (GEOMAlgo_AlgoTools::PointCloudInFace(F, aNbPnts, aCompound) < 0)
+ Standard_ConstructionError::Raise("Point cloud creation aborted : algorithm failed");
+ retCompound = true;
+#endif
+ }