daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Mar 26th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. GV_ShellSolid* FXObjectUtilityFuncs::GetProjectionBoost(FXGroup nodeGroup, double fPosZ)
  2. {
  3.     std::vector<Boost_MultiPolygon *> vProjection;
  4.  
  5.     for (const auto& pNode : nodeGroup)
  6.     {
  7.         Boost_MultiPolygon* projectionPolygon = new Boost_MultiPolygon(pNode->GetProjectionFromMeshPolygon(fPosZ));
  8.         if (projectionPolygon) vProjection.push_back(projectionPolygon);
  9.  
  10.         for (const auto& iter : pNode->GetDescendants())
  11.         {
  12.             if (iter->GetType() == Dynamic || iter->GetType() == VirtualOpening)
  13.             {
  14.                 Boost_MultiPolygon * projectionPolygon2 = new Boost_MultiPolygon(iter->GetProjectionFromMeshPolygon(fPosZ));
  15.                 if (projectionPolygon2) vProjection.push_back(projectionPolygon2);
  16.             }
  17.         }
  18.     }
  19.     GV_ShellSolid * pSolid = GEO2BOOST::MergeProjectionBoostPolygon(vProjection, fPosZ);
  20.     return pSolid;
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top