mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-27 14:50:33 +05:00
Added a check on orientation input parameter
This commit is contained in:
parent
67c0072721
commit
b10aa2d603
@ -2288,6 +2288,13 @@ Handle(GEOM_Object) GEOMImpl_IAdvancedOperations::MakeDividedDisk (double theR,
|
||||
{
|
||||
SetErrorCode(KO);
|
||||
|
||||
if (theOrientation != 1 &&
|
||||
theOrientation != 2 &&
|
||||
theOrientation != 3)
|
||||
{
|
||||
SetErrorCode("theOrientation must be 1(=OXY), 2(=OYZ) or 3(=OZX)");
|
||||
return NULL;
|
||||
}
|
||||
//Add a new object
|
||||
Handle(GEOM_Object) aShape = GetEngine()->AddObject(GetDocID(), GEOM_DIVIDEDDISK);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user