mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-27 14:30:34 +05:00
Added a check on orientation input parameter
This commit is contained in:
parent
67c0072721
commit
b10aa2d603
@ -2287,7 +2287,14 @@ Handle(GEOM_Object) GEOMImpl_IAdvancedOperations::MakeDividedDisk (double theR,
|
|||||||
int theOrientation, int thePattern)
|
int theOrientation, int thePattern)
|
||||||
{
|
{
|
||||||
SetErrorCode(KO);
|
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
|
//Add a new object
|
||||||
Handle(GEOM_Object) aShape = GetEngine()->AddObject(GetDocID(), GEOM_DIVIDEDDISK);
|
Handle(GEOM_Object) aShape = GetEngine()->AddObject(GetDocID(), GEOM_DIVIDEDDISK);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user