| 221 | } |
| 222 | |
| 223 | void ImportOCAFAssembly::createShape( |
| 224 | const TDF_Label& label, |
| 225 | const TopLoc_Location& loc, |
| 226 | const std::string& name |
| 227 | ) |
| 228 | { |
| 229 | Base::Console().log("-create Shape\n"); |
| 230 | const TopoDS_Shape& aShape = aShapeTool->GetShape(label); |
| 231 | if (!aShape.IsNull() && aShape.ShapeType() == TopAbs_COMPOUND) { |
| 232 | TopExp_Explorer xp; |
| 233 | int ctSolids = 0, ctShells = 0; |
| 234 | for (xp.Init(aShape, TopAbs_SOLID); xp.More(); xp.Next(), ctSolids++) { |
| 235 | createShape(xp.Current(), loc, name); |
| 236 | } |
| 237 | for (xp.Init(aShape, TopAbs_SHELL, TopAbs_SOLID); xp.More(); xp.Next(), ctShells++) { |
| 238 | createShape(xp.Current(), loc, name); |
| 239 | } |
| 240 | if (ctSolids > 0 || ctShells > 0) { |
| 241 | return; |
| 242 | } |
| 243 | } |
| 244 | createShape(aShape, loc, name); |
| 245 | } |
| 246 | |
| 247 | void ImportOCAFAssembly::createShape( |
| 248 | const TopoDS_Shape& aShape, |
nothing calls this directly
no test coverage detected