3ds Max C++ API Reference
NURBS Results

These results are returned when one is modifiying existing objects. More...

Enumerations

enum  NURBSResult {
  kNOk , kNInvalidObject , kNInvalidId , kNInvalidParameter ,
  kNBad
}
 

Detailed Description

These results are returned when one is modifiying existing objects.

See also
~{ Working With NURBS }~.

Enumeration Type Documentation

◆ NURBSResult

Enumerator
kNOk 

The function succeeded.

kNInvalidObject 

The specified object was invalid.

For example, if you use the SetSurfaceApprox() function and specify a non-NURBS object as input, you get this error.

kNInvalidId 

The specified ID was invalid.

For example, if you use the Transform() function and pass an invalid NURBSId, you get this error.

kNInvalidParameter 

A specified parameter was invalid.

For example, if you try to create a cone using GenNURBSConeSurface() with a radius <=0, you get this error.

kNBad 

The function failed.

This is a catch-all for any kind of unwanted result not covered above.

46  {
48  kNOk,
59  kNBad
60 };
@ kNInvalidParameter
A specified parameter was invalid.
Definition: surf_api.h:57
@ kNInvalidObject
The specified object was invalid.
Definition: surf_api.h:51
@ kNInvalidId
The specified ID was invalid.
Definition: surf_api.h:54
@ kNBad
The function failed.
Definition: surf_api.h:59
@ kNOk
The function succeeded.
Definition: surf_api.h:48