// If the curve to be closed - remove last point if it is too close to the first one
bool isClose = aPoints->First().Distance(aPoints->Last()) <= gp::Resolution();
if (isClose && theIsClosed) {
aPoints->Resize(aPoints->Lower(), aPoints->Upper() - 1, Standard_True);
}
// If the curve to be closed - remove last point if it is too close to the first one
bool isClose = aPoints->First().Distance(aPoints->Last()) <= gp::Resolution();
if (isClose && theIsClosed) {
aPoints->Resize(aPoints->Lower(), aPoints->Upper() - 1, Standard_True);
}