aSphere.SetLocation(gp_Pnt(theOrigin[0], theOrigin[1], theOrigin[2]));
aSphere.SetRadius(theRadius);
}
+ else
+ aSphere.SetRadius(1.0);
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
bool aResult = false;
try {
gp_Ax3 aAx3(aLoc, gp_Dir(theAxis[0], theAxis[1], theAxis[2]));
aCone.SetPosition(aAx3);
}
+ else
+ aCone.SetRadius(1.0);
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
bool aResult = false;
try {
aCylinder.SetPosition(aAx3);
aCylinder.SetRadius(theRadius);
}
+ else
+ aCylinder.SetRadius(1.0);
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
bool aResult = false;
try {
aCircle.SetPosition(aAx2);
aCircle.SetRadius(theRadius);
}
+ else
+ aCircle.SetRadius(1.0);
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
bool aResult = false;
try {
gp_Dir(theDirX[0], theDirX[1], theDirX[2]));
aElips = gp_Elips(aAx2, theMajorRadius, theMinorRadius);
}
+ else
+ aElips.SetMajorRadius(1.0);
ShapeAnalysis_CanonicalRecognition aRecognition(aShape);
bool aResult = false;
try {