[TD]handle cut profiles with only a single edge

This commit is contained in:
wandererfan
2024-10-23 09:24:26 -04:00
committed by Chris Hennes
parent 58426c243a
commit aa2c77faef

View File

@@ -506,13 +506,6 @@ void DrawComplexSection::makeAlignedPieces(const TopoDS_Shape& rawShape)
return;
}
int pieceCount = pieces.size();
if (pieceCount < 2) {
//no need to space out the pieces
m_alignResult = TopoDS::Compound(pieces.front());
return;
}
//space the pieces "horizontally" or "vertically" in OXYZ
double movementReverser = isProfileVertical ? verticalReverser : horizReverser;
gp_Vec movementAxis = gp_Vec(gp::OX().Direction());