Skip to content
Snippets Groups Projects

Fix CFI code following SciTech work

Files

@@ -101,7 +101,8 @@ bool CADSystemCFI::LoadCAD()
{
if (m_verbose)
{
cout << "\tHas multibodies and instructions to mesh, this is not "
cout << "\tHas multibodies and instructions to mesh, this is "
"not "
"possible"
<< endl;
}
@@ -125,7 +126,7 @@ bool CADSystemCFI::LoadCAD()
m_scal = 1.0;
if (model->getUnits() == cfi::UNIT_INCHES)
{
if(m_verbose)
if (m_verbose)
{
cout << "\tModel is in inches, scaling accordingly" << endl;
}
@@ -134,7 +135,7 @@ bool CADSystemCFI::LoadCAD()
else if (model->getUnits() == cfi::UNIT_MILLIMETERS ||
model->getUnits() == cfi::UNIT_MILLIMETRES)
{
if(m_verbose)
if (m_verbose)
{
cout << "\tModel is in mm, scaling accordingly" << endl;
}
@@ -155,6 +156,12 @@ bool CADSystemCFI::LoadCAD()
for (int i = 0; i < bodies.size(); i++)
{
// check that it is not a group of bodies
if (bodies[i]->getTopoSubtype() == cfi::SUBTYPE_COMBINED)
{
continue;
}
vector<cfi::Oriented<cfi::TopoEntity *>> *faceList =
bodies[i]->getChildList();
Loading