std::string aFeatureError = "Multitranslation builder ";
aFeatureError+=":: the number of copies for the first direction is null or negative.";
setError(aFeatureError);
+ return;
}
// Moving each object.
std::string aFeatureError = "Multitranslation builder ";
aFeatureError+=":: the number of copies for the first direction is null or negative.";
setError(aFeatureError);
+ return;
}
if (aSecondNbCopies <=0) {
std::string aFeatureError = "Multitranslation builder ";
aFeatureError+=":: the number of copies for the second direction is null or negative.";
setError(aFeatureError);
+ return;
}
// Coord aFirstAxis
const double theStep,
const int theNumber) throw (GeomAlgoAPI_Exception)
{
- if (theNumber <=0) {
+ if (!theAxis) {
std::string aError = "Multitranslation builder ";
- aError+=":: the number of copies for the first direction is null or negative.";
+ aError+=":: the first axis is not valid";
throw GeomAlgoAPI_Exception(aError);
}
- if (!theAxis) {
+ if (theNumber <=0) {
std::string aError = "Multitranslation builder ";
- aError+=":: the first axis is not valid";
+ aError+=":: the number of copies for the first direction is null or negative.";
throw GeomAlgoAPI_Exception(aError);
}
const double theSecondStep,
const int theSecondNumber) throw (GeomAlgoAPI_Exception)
{
- if (theFirstNumber <=0) {
+ if (!theFirstAxis) {
std::string aError = "Multitranslation builder ";
- aError+=":: the number of copies for the first direction is null or negative.";
+ aError+=":: the first axis is not valid";
throw GeomAlgoAPI_Exception(aError);
}
- if (theSecondNumber <=0) {
+ if (!theSecondAxis) {
std::string aError = "Multitranslation builder ";
- aError+=":: the number of copies for the second direction is null or negative.";
+ aError+=":: the second axis is not valid";
throw GeomAlgoAPI_Exception(aError);
}
- if (!theFirstAxis) {
+ if (theFirstNumber <=0) {
std::string aError = "Multitranslation builder ";
- aError+=":: the first axis is not valid";
+ aError+=":: the number of copies for the first direction is null or negative.";
throw GeomAlgoAPI_Exception(aError);
}
- if (!theSecondAxis) {
+ if (theSecondNumber <=0) {
std::string aError = "Multitranslation builder ";
- aError+=":: the second axis is not valid";
+ aError+=":: the number of copies for the second direction is null or negative.";
throw GeomAlgoAPI_Exception(aError);
}