SoPreferencesGetVec3f Method |
Returns the value of the specified environment variable in the Open Inventor environment, interpreted as an SbVec3f.
Namespace: OIV.InventorAssembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 9.9.13.0 (9.9.13.0)
Syntaxpublic static SbVec3f GetVec3f(
string name,
SbVec3f defaultValue
)
Public Shared Function GetVec3f (
name As String,
defaultValue As SbVec3f
) As SbVec3f
public:
static SbVec3f GetVec3f(
String^ name,
SbVec3f defaultValue
)
static member GetVec3f :
name : string *
defaultValue : SbVec3f -> SbVec3f
Parameters
- name
- Type: SystemString
- defaultValue
- Type: OIV.InventorSbVec3f
Return Value
Type:
SbVec3f
RemarksThe search process is the same as for getValue.
If the environment variable is not defined in the Open Inventor environment, or if its value cannot be interpreted as an SbVec3f, the specified default value will be returned.
To be correctly interpreted, the environment value must be a series of 3 floats separated by spaces.
See Also